Random variables

AP Statistics · Unit 3: Probability

Random variables notes

Fact-checked by a second, independent AI review.

Overview of random variables, how they represent outcomes with numbers, and how to describe their distributions, expectations, and variability for AP Statistics.

Random variable (RV)
A function that assigns a numerical value to each outcome of a random process.
Discrete vs continuous
Discrete RVs take countable values; continuous RVs take any value in an interval.
Probability distribution (pmf/pdf)
PMF describes probabilities for a discrete RV; PDF describes density for a continuous RV.
Cumulative distribution function (CDF)
CDF F(x) = P(X ≤ x). F is nondecreasing, right-continuous, with limits 0 as x → -∞ and 1 as x → ∞.
Expected value and variance
Expected value μ = E(X) is the mean of a RV; Variance Var(X) = E[(X − μ)^2] measures the spread around the mean; the standard deviation is sqrt(Var(X)).

Remember it: RVs turn random outcomes into real numbers you can measure and compare.

Exam tip: Examiners look for clear definitions (discrete vs continuous), correct use of pmf/pdf or F(x), and correct calculations of E(X) and Var(X) with proper justification and units where appropriate.

Syllabus checklist

  • Random variables: core ideas
  • Terms and typical exam questions for "Probability" in AP Statistics (College Board)

Practice questions

  1. 1. In 5 coin flips, X = number of heads. P(X=3) = ?

    Answer checked

    Show answer

    Answer: 0.3125. C(5,3)(0.5)⁵ = 10/32 = 0.3125.

  2. 2. A discrete random variable can take only a finite or countably infinite set of values.

    Answer checked

    Show answer

    Answer: True. That is the defining property of discrete random variables.

  3. 3. If Y = 2X where X ~ Discrete Uniform{0,1,2}, what is E[Y]?

    Answer checked

    Show answer

    Answer: 2. E[Y] = 2 E[X] = 2(1) = 2.

  4. 4. Compute the standard deviation of X ~ Binomial(10,0.4) to two decimals.

    Answer checked

    Show answer

    Answer: 1.55. SD = sqrt(np(1-p)) = sqrt(10·0.4·0.6) = sqrt(2.4) ≈ 1.55.

Practise random variables as a game

Hearts, combos, streaks and an AI tutor that explains every answer. Start free.

Start free

More from Unit 3: Probability