Combining random variables: means and variances

    Combining Random Variables: Means and Variances

    In AP Statistics, we frequently encounter situations where we need to analyze the outcomes of combining two or more random variables. This often involves either adding or subtracting these variables. Understanding how their means and variances behave in these operations is crucial for making accurate predictions and inferences.

    Combining Means

    When combining random variables, the calculation of the new mean (expected value) is quite intuitive. If you have two random variables, X and Y, the mean of their sum or difference is simply the sum or difference of their individual means.

    • Mean of a Sum: E(X + Y) = E(X) + E(Y)
    • Mean of a Difference: E(X - Y) = E(X) - E(Y)

    This property holds true regardless of whether the random variables X and Y are independent or dependent. For example, if the average score on a history test (X) is 75 and the average score on a math test (Y) is 80, the average total score (X + Y) would be 75 + 80 = 155. Similarly, the average difference in scores (X - Y) would be 75 - 80 = -5.

    Combining Variances

    Combining variances is a bit more nuanced than combining means, as it depends on the relationship between the random variables. A key concept here is independence. If two random variables are independent, their outcomes do not affect each other.

    • Variance of a Sum (Independent Variables): Var(X + Y) = Var(X) + Var(Y)
    • Variance of a Difference (Independent Variables): Var(X - Y) = Var(X) + Var(Y)

    Notice that for independent random variables, we always add the variances, even when finding the variance of a difference. This is because variance measures the spread or variability, and variability adds up when combining independent sources of variation. When you subtract one variable from another, you are introducing another source of variability into the system, thus increasing the overall spread.

    A common mistake is to subtract variances when dealing with a difference. Remember, standard deviation is the square root of the variance. Therefore, to find the standard deviation of a sum or difference of independent random variables, you must first add their variances and then take the square root of that sum.

    • Standard Deviation of a Sum/Difference (Independent Variables): SD(X ± Y) = √(Var(X) + Var(Y))

    If the random variables are dependent, the formulas for combining variances become more complex and involve the covariance between the variables. However, for the AP Statistics exam, you will primarily focus on situations where random variables are assumed to be independent when combining variances, unless explicitly stated otherwise with given covariance.

    Example: Suppose a delivery company knows that the time it takes to deliver a package (X) has a mean of 30 minutes and a standard deviation of 5 minutes. The time it takes to process a package (Y) has a mean of 10 minutes and a standard deviation of 3 minutes. If X and Y are independent, what are the mean and standard deviation of the total time (X + Y) for a package?

    • Mean(X + Y) = E(X) + E(Y) = 30 + 10 = 40 minutes.
    • Var(X) = 52 = 25
    • Var(Y) = 32 = 9
    • Var(X + Y) = Var(X) + Var(Y) = 25 + 9 = 34
    • SD(X + Y) = √34 ≈ 5.83 minutes.

    Linear Transformations of a Single Random Variable

    When a single random variable X is transformed linearly, such as by multiplying by a constant (a) and adding another constant (b), the mean and standard deviation also transform predictably:

    • Mean: E(aX + b) = aE(X) + b
    • Variance: Var(aX + b) = a2Var(X)
    • Standard Deviation: SD(aX + b) = |a|SD(X)

    Adding a constant (b) shifts the mean but does not affect the spread (variance or standard deviation). Multiplying by a constant (a) multiplies the mean by 'a' and the variance by 'a squared'. The standard deviation is multiplied by the absolute value of 'a'.

    Practice questions

    1

    If the mean of random variable X is 10 and the mean of random variable Y is 15, what is the mean of the combined variable (X + Y)?

    2

    Given that random variables A and B are independent, with Var(A) = 9 and Var(B) = 16, what is the standard deviation of (A - B)?

    3

    A random variable X has a mean of 50 and a standard deviation of 8. What is the variance of the transformed variable (2X + 10)?

    4

    Why do we always add variances when combining two independent random variables, even when calculating the variance of their difference?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-4-probability-random-variables-and-probability-distributions/combining-random-variables-means-and-variances