16 Expected Values of Linear Combinations of Random Variables
16.1 Linear rescaling
If
16.2 Linearity of expected value
Example 16.1
Refer to the tables and plots in Example 5.29 here. Each scenario contains SAT Math (
- What is the mean of
in each scenario? How does it relate to the means of and ? Does the correlation affect the mean of ?
- What is the mean of
in each scenario? How does it relate to the means of and ? Does the correlation affect the mean of ?
- Linearity of expected value. For any two random variables
and , - That is, the expected value of the sum is the sum of expected values, regardless of how the random variables are related.
- Therefore, you only need to know the marginal distributions of
and to find the expected value of their sum. (But keep in mind that the distribution of will depend on the joint distribution of and .) - Whether in the short run or the long run,
regardless of the joint distribution of and . - A linear combination of two random variables
and is of the form where and are non-random constants. Combining properties of linear rescaling with linearity of expected value yields the expected value of a linear combination. - Linearity of expected value extends naturally to more than two random variables.
16.3 Variance of linear combinations of random variables
Example 16.2
Recall Example 16.1.
- In which of the three scenarios is
the largest? Can you explain why?
- In which of the three scenarios is
the smallest? Can you explain why?
- In which scenario is
roughly equal to the sum of and ?
- In which of the three scenarios is
the largest? Can you explain why?
- In which of the three scenarios is
the smallest? Can you explain why?
- In which scenario is
roughly equal to the sum of and ?
- Variance of sums and differences of random variables.
Example 16.3
Assume that SAT Math (
Example 16.4
Continuing the previous example. Compute
- The variance of the sum is the sum of the variances if and only if
and are uncorrelated. - The variance of the difference of uncorrelated random variables is the sum of the variances
- If
are non-random constants and and are random variables then
Example 16.5
Suppose that SAT Math (
- Find the probability that a student has a total score above 1500.
- Find the probability that a student has a higher Math than Reading score.
and have a Bivariate Normal distribution if and only if every linear combination of and has a Normal distribution. That is, and have a Bivariate Normal distribution if and only if has a Normal distribution for all , , .- In particular, if
and are independent and each has a Normal distribution then has a Normal distribution.
= 10000
N_rep
= rnorm(N_rep, 610, 70)
R = rnorm(N_rep, 640 + 0.7 * 80 * (R - 610) / 70, 80 * sqrt(1 - 0.7 ^ 2))
M
= M + R
T
mean(T)
[1] 1249.287
sd(T)
[1] 136.0117
sum(T > 1500) / N_rep
[1] 0.0324
hist(T,
freq = FALSE)
= M - R
D
mean(D)
[1] 29.52545
sd(D)
[1] 59.12068
sum(D > 0) / N_rep
[1] 0.6928
hist(D,
freq = FALSE)