1 Sums and differences of random variables

In some situations, we can specify a problem in terms of sums and differences of random variables. Here we confine ourselves to cases where the random variables are normally distributed. Typical situations may be understood by considering the following problems.

Problem 1

In a certain mass-produced assembly, a 3 cm shaft must slide into a cylindrical sleeve. Shafts are manufactured whose diameter S follows a normal distribution S N ( 3 , 0.00 4 2 ) and cylindrical sleeves are manufactured whose internal diameter C follows a normal distribution C N ( 3.010 , 0.00 3 2 ) . Assembly is performed by selecting a shaft and a cylindrical sleeve at random. In what proportion of cases will it be impossible to fit the selected shaft and cylindrical sleeve together?

Discussion

Clearly, the shaft and cylindrical sleeve will fit together only if the diameter of the shaft is smaller than the internal diameter of the cylindrical sleeve. We need the difference of the two random variables C and S to be greater than zero. We can take the difference C S and find its distribution. Once we do this we can then ask the question "What is the probability that the inside diameter of the cylindrical sleeve is greater than the outside diameter of the shaft, i.e. what is P ( C S > 0 ) ?" Essentially we are trying to ensure that the internal diameter of the cylindrical sleeve is larger than the external diameter of the shaft.

Problem 2

A manufacturer produces boxes of woodscrews containing a variety of sizes for a local DIY store. The weight W (in kilograms) of boxes of woodscrews manufactured is a normal random variable following the distribution W N ( 1.01 , 0.004 ) . Note that 0.004 is the variance . Find the probability that a customer who selects two boxes of screws at random finds that their combined weight is greater than 2.03 kilograms.

Discussion

In this problem we are looking at the effects of adding two random variables together. Since all boxes are assumed to have weights W which follow the distribution W N ( 1.01 , 0.004 ) , we are considering the effect of adding the random variable W to itself. In general, there is no reason why we cannot combine variables W 1 N ( μ 1 , σ 1 2 ) and W 2 N ( μ 2 , σ 2 2 ) . This might happen if the DIY store bought in two similar products from two different manufacturers.

Before we can solve such problems, we need to obtain some results concerning the behaviour of random variables.

1.1 Functions of several random variables

Note that we shall quote results only for the continuous case. The results for the discrete case are similar with integration replaced by summation. We will omit the mathematics leading to these results.

Key Point 4
  • If X 1 , X 2 , + X n are n random variables then

    E ( X 1 + X 2 + + X n ) = E ( X 1 ) + E ( X 2 ) + E ( X n )

  • If X 1 , X 2 , X n are n independent random variables then

    V ( X 1 + X 2 + + X n ) = V ( X 1 ) + V ( X 2 ) + + V ( X n ) and more generally

    V ( X 1 ± X 2 ± ± X n ) = V ( X 1 ) + V ( X 2 ) + + V ( X n )

Example 16

Solve Problem 1 from the previous page. You may assume that the sum and difference of two normal random variables are themselves normal.

Solution

Consider the random variable C S . Using the results above we know that

C S N ( 3.010 3.0 , 0.00 4 2 + 0.00 3 2 ) i.e, C S N ( 0.01 , 0.00 5 2 )

Hence P ( C S > 0 ) = P ( Z > 0 0.01 0.005 = 2 ) = 0.9772

This result implies that in 2.28% of cases it will be impossible to fit the shaft to the sleeve.

Task!

Solve Problem 2 from the previous page. You may assume that the sum and difference of two normal random variables are themselves normal.

If W 12 is the random variable representing the combined weight of the two boxes then

W 12 N ( 2.02 , 0.008 )

Hence

P ( W 12 > 2.03 ) = P ( Z > 2.03 2.02 0.008 = 0.1118 ) = 0.5 0.0445 = 0.4555

The result implies that the customer has about a 46% chance of finding that the weight of the two boxes combined is greater than 2.03 kilograms.

Exercises
  1. Batteries of type A have mean voltage 6.0 (volts) and variance 0.0225 ( volts 2 ). Type B batteries have mean voltage 12.0 and variance 0.04. If we form a series connection containing one of each type what is the probability that the combined voltage exceeds 17.4?
  2. Nuts and bolts are made separately and paired at random. The nuts’ diameters, in mm, are independently N ( 10 , 0.02 ) and the bolts’ diameters, in mm, are independently N ( 9.5 , 0.02 ) . Find the probability that a bolt is too large for its nut.
  3. Certain cutting tools have lifetimes, in hours, which are independent and normally distributed with mean 300 and variance 10000.
    1. Find the probability that
      1. the total life of three tools is more than 1000 hours.
      2. the total life of four tools is more than 1000 hours.
    2. In a factory each tool is replaced when it fails. Find the probability that exactly four tools are needed to accumulate 1000 hours of use.
    3. Explain why the first sentence in this question can only be approximately, not exactly, true.
  4. A firm produces articles whose length, X , in cm, is normally distributed with nominal mean μ = 4 and variance σ 2 = 0 . 1 . From time to time a check is made to see whether the value of μ has changed. A sample of ten articles is taken, the lengths are measured, the sample mean length X ̄ is calculated, and the process is adjusted if X ̄ lies outside the range (3.9, 4.1). Determine the probability, α , that the process is adjusted as a result of a sample taken when μ = 4. Find the smallest sample size n which would make α 0 . 05 .
  1. X A N ( 6 , 0.0225 ) X B N ( 12 , 0.04 )

    Series X = X A + X B N ( 18 , 0.0625 ) as variances always add P X > 17.4 = P Z > 0.6 0.25 = 0.5 + P 0 < Z < 0.6 0.25 = 0.5 + P ( 0 < Z < 2.4 ) = 0.5 + 0.4918 = 0.9918
  2. Let the diameter of a nut be N . Let the diameter of a bolt be B . A bolt is too large for its nut if N B < 0. E ( N B ) = 10 9.5 = 0.5 V ( N B ) = 0.02 + 0.02 = 0.04 N B N ( 0.5 , 0.04 ) P ( N B < 0 ) = P N B 0.5 0.2 < 0 0.5 0.2 = P ( Z < 2.5 ) = Φ ( 2.5 ) = 1 Φ ( 2.5 ) = 1 0.99379 = 0 . 00621 .

    The probability that a bolt is too large for its nut is 0.00621.

    1. Let the lifetime of tool i be T i .
      1. E ( T 1 + T 2 + T 3 ) = 900 V ( T 1 + T 2 + T 3 ) = 30000 ( T 1 + T 2 + T 3 ) N ( 900 , 30000 ) P ( T 1 + T 2 + T 3 > 1000 ) = P T 1 + T 2 + T 3 900 30000 = P ( Z > 0.57735 ) = 1 Φ ( 0.57735 ) = 1 0.7181 = 0.2819
      2. E ( T 1 + T 2 + T 3 + T 4 ) = 1200 V ( T 1 + T 2 + T 3 + T 4 ) = 40000 ( T 1 + T 2 + T 3 + T 4 ) N ( 1200 , 40000 ) P ( T 1 + T 2 + T 3 + T 4 > 1000 ) = P T 1 + T 2 + T 3 + T 4 1200 40000 > 1000 1200 40000 = P ( Z > 1 ) = 1 Φ ( 1 ) = Φ ( 1 ) = 0.8413
    2. Let the number of tools needed be N . P ( N 3 ) = P ( N = 1 ) + P ( N = 2 ) + P ( N = 3 ) = P ( T 1 + T 2 + T 3 > 1000 ) = 0.2819 P ( N 4 ) = P ( N = 1 ) + P ( N = 2 ) + P ( N = 3 ) + P ( N = 4 ) = P ( T 1 + T 2 + T 3 + T 4 > 1000 ) = 0 . 8413 .

      Hence P ( N = 4 ) = P ( N 4 ) P ( N 3 ) = 0.8413 0.2819 = 0 . 5594 .

    3. Lifetimes can not be negative. The normal distribution assigns non-zero probability density

      to negative values so it can only be an approximation in this case.

  3. X N ( 4 , 0.1 ) X 1 + + X 10 N ( 40 , 1 ) X ̄ = ( X 1 + + X 10 ) 10 N ( 4 , 0.01 )

    By symmetry P ( X ̄ < 3.9 ) = P ( X ̄ > 4.1 ) .

    P ( X ̄ < 3.9 ) = P X ̄ 4 0.1 < 3.9 4 0.1 = P ( Z < 1 ) = Φ ( 1 ) = 1 Φ ( 1 ) = 1 0.8413 = 0.1587

    More generally

    X 1 + + X n N ( 4 n , 0.1 n ) X ̄ = ( X 1 + + X n ) n N ( 4 , 0.1 n ) P ( X ̄ < 3.9 ) = P X ̄ 4 0.1 n < 3.9 4 0.1 n = P Z < 0.1 0.1 n = 0.1 n = Φ ( 0.1 n ) = 1 Φ ( 0.1 n ) α = 2 [ 1 Φ ( 0.1 n ) ]

    We require α 0 . 05 .

    2 [ 1 Φ ( 0.1 n ) ] 0.05 1 Φ ( 0.1 n ) 0.025 Φ ( 0.1 n ) 0.975 0.1 n 1.96 n 10 × 1.9 6 2 = 38.416

    The smallest sample size which satisfies this is n = 39.

No alt text was set. Please request alt text from the person who provided you with this resource.