From the free course AP Statistics on Lykke

2.8 Introduction to Random Variables and Probability Distributions

Key concepts: Random variable — a numerical outcome of a chance process · Discrete random variable — countable list of possible values · Probability distribution — a probability attached to each value of X · Total probability — the probabilities of a distribution sum to 1 · Three representations — table, graph, or function for the same distribution · Cumulative distribution — P(X ≤ x) accumulated up each value

A random variable is a numerical description of the outcome of a random phenomenon, effectively acting as a bridge between the qualitative world of "what happened" and the quantitative world of "how much." Unlike a variable in algebra, which represents a fixed but unknown value, a random…

A random variable is a numerical description of the outcome of a random phenomenon, effectively acting as a bridge between the qualitative world of "what happened" and the quantitative world of "how much." Unlike a variable in algebra, which represents a fixed but unknown value, a random variable takes on different values based on chance. We typically denote the random variable itself with an uppercase letter, like $X$, and its specific possible values with lowercase letters, like $x$.

Learning Objective 2.8.A (VAR-5.A): Construct a probability distribution for a discrete random variable. Essential Knowledge 2.8.A.1 (VAR-5.A.1): A random variable is a variable whose values have numerical outcomes that result from a random phenomenon.

The Discrete Random Variable

A discrete random variable has a collection of possible values that can be listed or counted. These often arise from counting processes—such as the number of heads in three coin flips, the number of defective bulbs in a shipment, or the number of goals scored in a match. Because the outcomes are distinct and "jump" from one value to the next (e.g., you cannot score 1.5 goals), we can assign a specific probability to every individual value the variable can take.

Constructing the Probability Distribution

A probability distribution is a complete map of a random variable's behavior. To satisfy the requirements of a valid distribution, two conditions must be met:

  1. Every probability $P(X = x)$ must be between 0 and 1, inclusive.
  2. The sum of all probabilities for all possible values must equal exactly 1.

Consider the random phenomenon of flipping a fair coin three times. Let $X$ be the number of heads. The sample space consists of 8 equally likely outcomes: {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}. To construct the distribution, we map these outcomes to their numerical values:

  • $X = 0$: {TTT} $\rightarrow P(X=0) = 1/8$
  • $X = 1$: {HTT, THT, TTH} $\rightarrow P(X=1) = 3/8$
  • $X = 2$: {HHT, HTH, THH} $\rightarrow P(X=2) = 3/8$
  • $X = 3$: {HHH} $\rightarrow P(X=3) = 1/8$

Visualizing Distributions

While a table is the most precise way to represent a discrete distribution, a probability histogram provides the visual intuition necessary for Skill 3.A. In these graphs, the horizontal axis represents the possible values of the random variable, and the vertical axis represents the probability (relative frequency) of those values. Unlike a standard frequency histogram of sample data, a probability histogram represents the theoretical "long-run" behavior of the population or process.

When interpreting these graphs, we look for the same features we used in Unit 1: shape, center, and variability. A symmetric probability histogram suggests that outcomes equidistant from the center are equally likely, while a skewed histogram indicates that the random process is more likely to produce values at one end of the spectrum.

{ "questions": [ { "question": "A random variable Y represents the number of broken eggs in a carton of 12. The probability distribution is partially given: P(Y=0)=0.85, P(Y=1)=0.10, P(Y=2)=0.03. If Y cannot take values greater than 3, what is P(Y=3)?", "options": [ "0.01", "0.02", "0.05", "0.98" ], "answer": "0.02", "explanation": "The sum of all probabilities in a valid distribution must equal 1. Here, 0.85 + 0.10 + 0.03 = 0.98. Therefore, P(Y=3) must be 1 - 0.98 = 0.02 to complete the distribution." }, { "question": "Which of the following is a required characteristic for a discrete probability distribution?", "options": [ "The values of the random variable must be positive.", "The probabilities must be equal for all values of x.", "The sum of the probabilities P(X=x) must equal 1.", "The distribution must be bell-shaped and symmetric." ], "answer": "The sum of the probabilities P(X=x) must equal 1.", "explanation": "By definition (VAR-5.A.1), a probability distribution must account for the entire sample space, meaning the sum of probabilities must be exactly 1. Values can be negative (e.g., profit/loss), probabilities do not have to be equal, and shape can vary widely." } ] }

Interpretation Check: Suppose a random variable $K$ has the values {10, 20, 30} with probabilities {0.2, 0.5, 0.3}. If you were to conduct this random process 1,000 times, roughly how many times would you expect to see the outcome $K=20$? (Answer: approximately 500 times, as $1000 \times 0.5 = 500$).

2.8 Introduction to Random Variables and Probability Distributions - AP Statistics - image 1
2.8 Introduction to Random Variables and Probability Distributions - AP Statistics - image 1
2.8 Introduction to Random Variables and Probability Distributions - AP Statistics - diagram 1
2.8 Introduction to Random Variables and Probability Distributions - AP Statistics - diagram 1

Source Materials

The whole course on Lykke · Browse all public course wikis