ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalMS-251Means Variances Linear…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    MS-251

    Probability and Statistics

    Progress0 / 36 done
    Topics36
    1Statistics and Data Analysis2Statistical Inference3Samples, Populations, and the Role of Probability4Sampling Procedures5Discrete and Continuous Data6Statistical Modeling7Types of Statistical Studies
    8Sample Space, Events, Counting Sample Points9Probability of an Event10Additive Rules11Conditional Probability12Independence and the Product Rule13Bayes’ Rule14Random Variables and Probability Distributions
    15Mean of a Random Variable16Variance and Covariance of Random Variables17Means and Variances of Linear Combinations of Random Variables18Chebyshev’s Theorem19Discrete Probability Distributions20Continuous Probability Distributions21Fundamental Sampling Distributions22Sampling Distributions and Data Descriptions23Random Sampling24Sampling Distributions25Sampling Distribution of Means and the Central Limit Theorem26Sampling Distribution of S227t-Distribution28F-Quantile and Probability Plots29Single Sample & One- and Two-Sample Estimation Problems30Single Sample & One- and Two-Sample Tests of Hypotheses31The Use of P-Values for Decision Making in Testing Hypotheses
    32Linear Regression and Correlation33Least Squares and the Fitted Model34Multiple Linear Regression and Certain Nonlinear Regression Models35Linear Regression Model Using Matrices36Properties of the Least Squares Estimators
    16 min read
    Topic 17 of 36
    Topic Study Note Illustration
    17

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    16mremaining
    2.7kwords
    Advancedlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Probability and Statistics