ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Probability and Statistics
    MS-251
    Progress0 / 36 topics
    Topics
    1. Introduction: Statistics and Data Analysis2. Statistical Inference3. Samples, Populations, and the Role of Probability4. Sampling Procedures5. Discrete and Continuous Data6. Statistical Modeling7. Types of Statistical Studies8. Probability: Sample Space, Events, Counting Sample Points9. Probability of an Event10. Additive Rules11. Conditional Probability12. Independence and the Product Rule13. Bayes’ Rule14. Random Variables and Probability Distributions15. Mathematical Expectation: Mean of a Random Variable16. Variance and Covariance of Random Variables17. Means and Variances of Linear Combinations of Random Variables18. Chebyshev’s Theorem19. Discrete Probability Distributions20. Continuous Probability Distributions21. Fundamental Sampling Distributions22. Sampling Distributions and Data Descriptions23. Random Sampling24. Sampling Distributions25. Sampling Distribution of Means and the Central Limit Theorem26. Sampling Distribution of S227. t-Distribution28. F-Quantile and Probability Plots29. Single Sample & One- and Two-Sample Estimation Problems30. Single Sample & One- and Two-Sample Tests of Hypotheses31. The Use of P-Values for Decision Making in Testing Hypotheses32. Regression: Linear Regression and Correlation33. Least Squares and the Fitted Model34. Multiple Linear Regression and Certain Nonlinear Regression Models35. Linear Regression Model Using Matrices36. Properties of the Least Squares Estimators
    MS-251›Means and Variances of Linear Combinations of Random Variables
    Probability and StatisticsTopic 17 of 36

    Means and Variances of Linear Combinations of Random Variables

    16 minread
    2,745words
    Advancedlevel

    Means and Variances of Linear Combinations of Random Variables

    In probability theory and statistics, linear combinations of random variables are common in various contexts, such as in regression analysis, portfolio theory, and signal processing. Understanding how the mean and variance behave for these linear combinations is crucial for analyzing the outcomes of such combinations.

    1. Linear Combination of Random Variables

    A linear combination of random variables is an expression that involves the random variables and constants (coefficients). For two random variables X1X_1X1​ and X2X_2X2​, a linear combination can be written as:

    Z=aX1+bX2+cZ = aX_1 + bX_2 + cZ=aX1​+bX2​+c

    where:

    • aaa and bbb are constants (scalars),
    • X1X_1X1​ and X2X_2X2​ are random variables, and
    • ccc is a constant (can be thought of as a shift).

    More generally, for nnn random variables X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​, a linear combination is:

    Z=a1X1+a2X2+⋯+anXn+cZ = a_1 X_1 + a_2 X_2 + \dots + a_n X_n + cZ=a1​X1​+a2​X2​+⋯+an​Xn​+c

    where a1,a2,…,ana_1, a_2, \dots, a_na1​,a2​,…,an​ are constants (coefficients) and ccc is also a constant.

    2. Mean of a Linear Combination

    The mean (or expected value) of a linear combination of random variables is computed using the linearity of expectation. The expected value of a linear combination of random variables is the linear combination of their expected values. Specifically:

    E[Z]=E[a1X1+a2X2+⋯+anXn+c]E[Z] = E[a_1 X_1 + a_2 X_2 + \dots + a_n X_n + c]E[Z]=E[a1​X1​+a2​X2​+⋯+an​Xn​+c]

    Using the linearity of expectation:

    E[Z]=a1E[X1]+a2E[X2]+⋯+anE[Xn]+cE[Z] = a_1 E[X_1] + a_2 E[X_2] + \dots + a_n E[X_n] + cE[Z]=a1​E[X1​]+a2​E[X2​]+⋯+an​E[Xn​]+c

    This property holds regardless of whether the random variables X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ are independent or not.

    Example:

    Suppose you have two random variables X1X_1X1​ and X2X_2X2​ with the following expected values:

    • E[X1]=3E[X_1] = 3E[X1​]=3
    • E[X2]=5E[X_2] = 5E[X2​]=5

    Now, consider the linear combination Z=2X1−3X2+4Z = 2X_1 - 3X_2 + 4Z=2X1​−3X2​+4. The expected value of ZZZ is:

    E[Z]=2E[X1]−3E[X2]+4E[Z] = 2E[X_1] - 3E[X_2] + 4E[Z]=2E[X1​]−3E[X2​]+4 E[Z]=2(3)−3(5)+4=6−15+4=−5E[Z] = 2(3) - 3(5) + 4 = 6 - 15 + 4 = -5E[Z]=2(3)−3(5)+4=6−15+4=−5

    So, the expected value of ZZZ is -5.

    3. Variance of a Linear Combination

    The variance of a linear combination of random variables depends on both the variances of the individual random variables and the covariances between them. For two random variables X1X_1X1​ and X2X_2X2​, the variance of Z=a1X1+a2X2Z = a_1 X_1 + a_2 X_2Z=a1​X1​+a2​X2​ is given by:

    Var(Z)=Var(a1X1+a2X2)\text{Var}(Z) = \text{Var}(a_1 X_1 + a_2 X_2)Var(Z)=Var(a1​X1​+a2​X2​)

    Using the properties of variance, we can expand this as:

    Var(Z)=a12Var(X1)+a22Var(X2)+2a1a2Cov(X1,X2)\text{Var}(Z) = a_1^2 \text{Var}(X_1) + a_2^2 \text{Var}(X_2) + 2a_1 a_2 \text{Cov}(X_1, X_2)Var(Z)=a12​Var(X1​)+a22​Var(X2​)+2a1​a2​Cov(X1​,X2​)

    If there are more than two random variables (say, X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​), the variance of the linear combination Z=a1X1+a2X2+⋯+anXnZ = a_1 X_1 + a_2 X_2 + \dots + a_n X_nZ=a1​X1​+a2​X2​+⋯+an​Xn​ becomes:

    Var(Z)=a12Var(X1)+a22Var(X2)+⋯+an2Var(Xn)+2∑i<jaiajCov(Xi,Xj)\text{Var}(Z) = a_1^2 \text{Var}(X_1) + a_2^2 \text{Var}(X_2) + \dots + a_n^2 \text{Var}(X_n) + 2 \sum_{i < j} a_i a_j \text{Cov}(X_i, X_j)Var(Z)=a12​Var(X1​)+a22​Var(X2​)+⋯+an2​Var(Xn​)+2i<j∑​ai​aj​Cov(Xi​,Xj​)

    This formula accounts for the variance of each random variable as well as the covariance between each pair of random variables.

    Key Points:

    • The variance of a linear combination depends on the coefficients of the random variables, their individual variances, and the covariances between the variables.
    • The covariance term captures how the random variables co-vary, and it will influence the total variance if the variables are not independent.

    Example:

    Suppose we have two random variables X1X_1X1​ and X2X_2X2​ with the following properties:

    • Var(X1)=4\text{Var}(X_1) = 4Var(X1​)=4
    • Var(X2)=9\text{Var}(X_2) = 9Var(X2​)=9
    • Cov(X1,X2)=3\text{Cov}(X_1, X_2) = 3Cov(X1​,X2​)=3

    Now, consider the linear combination Z=2X1−3X2Z = 2X_1 - 3X_2Z=2X1​−3X2​. The variance of ZZZ is:

    Var(Z)=22Var(X1)+(−3)2Var(X2)+2(2)(−3)Cov(X1,X2)\text{Var}(Z) = 2^2 \text{Var}(X_1) + (-3)^2 \text{Var}(X_2) + 2(2)(-3) \text{Cov}(X_1, X_2)Var(Z)=22Var(X1​)+(−3)2Var(X2​)+2(2)(−3)Cov(X1​,X2​) Var(Z)=4×4+9×9+2×2×(−3)×3\text{Var}(Z) = 4 \times 4 + 9 \times 9 + 2 \times 2 \times (-3) \times 3Var(Z)=4×4+9×9+2×2×(−3)×3 Var(Z)=16+81−36=61\text{Var}(Z) = 16 + 81 - 36 = 61Var(Z)=16+81−36=61

    So, the variance of ZZZ is 61.

    4. Special Cases: Independent Random Variables

    If the random variables X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ are independent, then the covariance between any pair of variables is zero, i.e., Cov(Xi,Xj)=0\text{Cov}(X_i, X_j) = 0Cov(Xi​,Xj​)=0 for i≠ji \neq ji=j. In this case, the variance of the linear combination simplifies to:

    Var(Z)=a12Var(X1)+a22Var(X2)+⋯+an2Var(Xn)\text{Var}(Z) = a_1^2 \text{Var}(X_1) + a_2^2 \text{Var}(X_2) + \dots + a_n^2 \text{Var}(X_n)Var(Z)=a12​Var(X1​)+a22​Var(X2​)+⋯+an2​Var(Xn​)

    In the case of independent random variables, we only need to consider the individual variances, not the covariances.

    Example (Independent Case):

    If X1X_1X1​ and X2X_2X2​ are independent, with Var(X1)=4\text{Var}(X_1) = 4Var(X1​)=4 and Var(X2)=9\text{Var}(X_2) = 9Var(X2​)=9, and the linear combination is Z=2X1−3X2Z = 2X_1 - 3X_2Z=2X1​−3X2​, the variance is:

    Var(Z)=22Var(X1)+(−3)2Var(X2)\text{Var}(Z) = 2^2 \text{Var}(X_1) + (-3)^2 \text{Var}(X_2)Var(Z)=22Var(X1​)+(−3)2Var(X2​) Var(Z)=4×4+9×9=16+81=97\text{Var}(Z) = 4 \times 4 + 9 \times 9 = 16 + 81 = 97Var(Z)=4×4+9×9=16+81=97

    Thus, the variance of ZZZ in the case of independent random variables is 97.


    5. Summary of Formulas

    1. Mean of a Linear Combination:

    For random variables X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ and constants a1,a2,…,ana_1, a_2, \dots, a_na1​,a2​,…,an​, the expected value of the linear combination Z=a1X1+a2X2+⋯+anXn+cZ = a_1 X_1 + a_2 X_2 + \dots + a_n X_n + cZ=a1​X1​+a2​X2​+⋯+an​Xn​+c is:

    E[Z]=a1E[X1]+a2E[X2]+⋯+anE[Xn]+cE[Z] = a_1 E[X_1] + a_2 E[X_2] + \dots + a_n E[X_n] + cE[Z]=a1​E[X1​]+a2​E[X2​]+⋯+an​E[Xn​]+c
    1. Variance of a Linear Combination:

    For random variables X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ with coefficients a1,a2,…,ana_1, a_2, \dots, a_na1​,a2​,…,an​, the variance of the linear combination Z=a1X1+a2X2+⋯+anXnZ = a_1 X_1 + a_2 X_2 + \dots + a_n X_nZ=a1​X1​+a2​X2​+⋯+an​Xn​ is:

    Var(Z)=a12Var(X1)+a22Var(X2)+⋯+an2Var(Xn)+2∑i<jaiajCov(Xi,Xj)\text{Var}(Z) = a_1^2 \text{Var}(X_1) + a_2^2 \text{Var}(X_2) + \dots + a_n^2 \text{Var}(X_n) + 2 \sum_{i < j} a_i a_j \text{Cov}(X_i, X_j)Var(Z)=a12​Var(X1​)+a22​Var(X2​)+⋯+an2​Var(Xn​)+2i<j∑​ai​aj​Cov(Xi​,Xj​)
    • If X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ are independent, the covariance terms drop out, and the variance simplifies to:
    Var(Z)=a12Var(X1)+a22Var(X2)+⋯+an2Var(Xn)\text{Var}(Z) = a_1^2 \text{Var}(X_1) + a_2^2 \text{Var}(X_2) + \dots + a_n^2 \text{Var}(X_n)Var(Z)=a12​Var(X1​)+a22​Var(X2​)+⋯+an2​Var(Xn​)

    Conclusion

    The mean and variance of linear combinations of random variables are important tools for understanding the behavior of sums, differences, and weighted combinations of random variables. The expected value of a linear combination is simply the linear combination of the expected values, while the variance involves not only the individual variances but also the covariances between the random variables. When the variables are independent, the covariance terms disappear, simplifying the calculation of variance.

    Previous topic 16
    Variance and Covariance of Random Variables
    Next topic 18
    Chebyshev’s Theorem

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time16 min
      Word count2,745
      Code examples0
      DifficultyAdvanced