Lesson 4.7 · Probability, Random Variables and Distributions
Combining random variables
Real quantities are often built from other random quantities: a total time is the sum of several steps, a profit is revenue minus cost, and a fare is a fixed fee plus a charge per mile. This lesson shows how the mean and standard deviation change when you transform a random variable or combine two of them.
Linear transformations
Suppose . Adding a constant shifts every value, so it shifts the mean but doesn't change the spread. Multiplying by stretches every value and every distance between values, so it multiplies both the mean and the standard deviation.
Linear transformation of a random variable
If , then
The shape of the distribution stays the same (for ).
Worked example: Taxi fare
A taxi company charges a $3 pickup fee plus $2.50 per mile. The length of a randomly chosen trip has mean miles and standard deviation miles. Find the mean and standard deviation of the fare .
Solution.
The mean fare is $18, with a standard deviation of $6. The $3 fee raises every fare by the same amount, so it doesn't affect the spread.
Sums and differences
Now combine two random variables and .
Means always add or subtract. For any random variables,
Variances add, for both sums and differences, when and are independent. This surprises many students. Combining two sources of randomness always makes the result more variable, whether you add or subtract them.
Variances add for independent random variables
If and are independent,
So . Standard deviations do not add; only variances do.
Why does the difference have the larger spread? Think of the extremes. is largest when is big and is small, and smallest when is small and is big, so its range is the range of plus the range of .
Worked example: Getting ready in the morning
The time a student spends showering has mean minutes and standard deviation minutes. The time spent getting dressed has mean minutes and standard deviation minutes. Assume and are independent. Find the mean and standard deviation of the total time .
Solution.
Notice , not .
Sums of several independent copies
If are independent and each has mean and standard deviation , the total has mean and standard deviation . This is different from (one value multiplied by ), which has standard deviation . Several independent values partly cancel each other's randomness; one value multiplied does not.
Combining normal random variables
If and are independent and both normally distributed, then and are also normally distributed. That lets you compute probabilities with -scores.
Worked example: Which takes longer?
Using the morning routine above, suppose both times are approximately normal. Find the probability that the student spends less time showering than getting dressed on a randomly chosen morning.
Solution. Let . We want .
is normal, so
On about of mornings, dressing takes longer than showering.
Common mistake
The most common mistake is subtracting variances (or standard deviations) for a difference. Variances always add for independent random variables. A second mistake is adding standard deviations directly; add the variances, then take the square root. And the variance rule requires independence: state that assumption, and question it when it's doubtful.
Practice
A random variable has mean and standard deviation . Let . Find the mean of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For in the previous problem, find the standard deviation of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
and are independent random variables with and . Find the standard deviation of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
and are independent with , , and . Find the standard deviation of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A store's daily revenue has mean $2,000 and standard deviation $300. Its daily costs have mean $1,400 and standard deviation $200. Assuming and are independent, what are the mean and standard deviation of daily profit ?
The weight of a randomly chosen apple has mean ounces and standard deviation ounces. Three apples are chosen at random, independently. Find the standard deviation of their total weight. Round to 2 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A commuter's morning commute time is approximately normal with mean minutes and standard deviation minutes. The evening commute is approximately normal with mean minutes and standard deviation minutes. Assume the two times are independent. Find the probability that the total commuting time on a randomly chosen day is more than minutes. Round to 4 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.