Variance and standard deviation of a random variable

    Understanding Variance and Standard Deviation of a Random Variable

    In AP Statistics, after determining the expected value (mean) of a random variable, our next step is often to quantify its variability. This is where variance and standard deviation become crucial. They provide measures of the spread or dispersion of the possible outcomes of a random variable around its expected value.

    Variance of a Discrete Random Variable

    The variance of a discrete random variable X, denoted as Var(X) or σ2X, measures the average squared deviation of the outcomes from the expected value. The formula for the variance of a discrete random variable X is:

    • Var(X) = Σ (xi - μX)2 · P(X = xi)

    Where:

    • xi represents each possible value of the random variable.
    • μX is the expected value (mean) of the random variable X.
    • P(X = xi) is the probability of observing the value xi.

    Essentially, for each possible outcome, we calculate how far it is from the mean, square that difference, and then weight it by the probability of that outcome occurring. These weighted squared differences are then summed up.

    Standard Deviation of a Discrete Random Variable

    The standard deviation of a discrete random variable X, denoted as SD(X) or σX, is simply the square root of the variance. It is preferred over variance for interpretation because it is in the same units as the random variable itself, making it more intuitive to understand the typical distance of an outcome from the mean.

    • SD(X) = √Var(X) = √[Σ (xi - μX)2 · P(X = xi)]

    For example, if X represents the number of heads in two coin flips, with P(X=0)=0.25, P(X=1)=0.50, and P(X=2)=0.25, and μX = 1:

    • Var(X) = (0 - 1)2(0.25) + (1 - 1)2(0.50) + (2 - 1)2(0.25)
    • Var(X) = (1)(0.25) + (0)(0.50) + (1)(0.25) = 0.25 + 0 + 0.25 = 0.50
    • SD(X) = √0.50 ≈ 0.707 heads

    This means, on average, the number of heads in two flips deviates by about 0.707 heads from the mean of 1 head.

    Properties of Variance and Standard Deviation

    • Addition/Subtraction of a Constant: Adding or subtracting a constant 'c' to a random variable X changes its mean (μX+c = μX + c) but does not affect its variance or standard deviation. Var(X ± c) = Var(X) and SD(X ± c) = SD(X).
    • Multiplication by a Constant: Multiplying a random variable X by a constant 'c' changes both its mean and its variability. μcX = cμX, Var(cX) = c2Var(X), and SD(cX) = |c|SD(X). Note that the standard deviation always remains non-negative.
    • Variance of Sums/Differences of Independent Random Variables: If X and Y are independent random variables, then Var(X ± Y) = Var(X) + Var(Y). This is a critical property – variances always add when combining independent random variables, even if you are subtracting them. However, SD(X ± Y) = √[Var(X) + Var(Y)]. Standard deviations do not simply add.

    These properties are frequently tested on the AP Statistics exam, especially the behavior of variance and standard deviation when combining or transforming random variables.

    Practice questions

    1

    What is the primary reason the standard deviation is generally preferred over the variance for describing the variability of a random variable?

    2

    If a discrete random variable X has a variance of 4, what is the standard deviation of 3X + 5?

    3

    Two independent random variables, X and Y, have variances Var(X) = 9 and Var(Y) = 16. What is the standard deviation of X - Y?

    4

    Consider a random variable X representing the number of defective items in a sample, with possible values {0, 1, 2} and respective probabilities {0.7, 0.2, 0.1}. If the expected value E(X) = 0.4, calculate the variance of X.

    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/variance-and-standard-deviation-of-a-random-variable