For two independent random variables X and Y, the mean and variance of the linear combination 2X + 3Y are calculated as follows:
The expected value (mean) follows the linearity property:
E(2X + 3Y) = 2E(X) + 3E(Y)
Given:
Substituting values:
E(2X + 3Y) = 2 × 5 + 3 × 3 = 10 + 9 = 19
For independent random variables, the variance of a linear combination is given by:
Var(aX + bY) = a² Var(X) + b² Var(Y)
Given:
Applying the formula:
Var(2X + 3Y) = 2² × Var(X) + 3² × Var(Y)
= 4 × 4 + 9 × 2
= 16 + 18 = 34
| Year | Price of Apple | Quantity of Apple | Price of Banana | Quantity of Banana |
| 2010 | 1 | 100 | 2 | 50 |
| 2011 | 1 | 200 | 2 | 100 |
| 2012 | 2 | 200 | 4 | 100 |
, 0, 𝑥 ≥ 0 otherwise , 