Tutorials › AP Statistics › Notation for Random Variables

Random variables and distributions · Tutorial 319 of 1000

Notation for Random Variables

Practice reading random-variable notation precisely, including what a value, a probability, a mean, and a standard deviation describe.

Intermediate 9 min read

What You'll Learn

  • Distinguish the random variable \(X\) from a particular possible value \(x\).
  • Translate \(P(X=x)\) into a specific event and read its probability in context.
  • Interpret \(\mu_X\) as the mean of a random variable’s probability distribution.
  • Interpret \(\sigma_X\) as the standard deviation of that distribution, in the variable’s units.
  • Read notation aloud to catch mix-ups between values, probabilities, and distribution summaries.

Four Symbols, Four Different Roles

A probability distribution can be described with a few compact symbols. Reading them correctly means keeping separate the random quantity, a possible value it might take, the probability of that value, and summaries of the distribution as a whole. These distinctions build on What Is a Random Variable, Probabilities of Single Values, and Describing Shape Center and Spread of a Distribution.

The capital letter \(X\) names a random variable: a numerical description of a chance process. The lowercase letter \(x\) stands for one particular possible value of that variable. The notation \(P(X=x)\) names the probability of the event that \(X\) takes the value \(x\). The symbols \(\mu_X\) and \(\sigma_X\) describe the mean and standard deviation of the entire probability distribution of \(X\).

Definition: \(X\) is a random variable; \(x\) is a possible value of \(X\); \(P(X=x)\) is the probability that \(X\) equals \(x\); \(\mu_X\) is the mean of the distribution of \(X\); and \(\sigma_X\) is its standard deviation.

A useful way to decode any of these expressions is to ask three questions: What quantity does the capital letter name? Is the expression about one value or the whole distribution? What does the result mean in the situation? This keeps a probability such as \(P(X=2)\) from being confused with the value 2, or with the mean \(\mu_X\).

Read \(X\), \(x\), and \(P(X=x)\) Precisely

Suppose \(X\) is the number of bicycles that pass a park entrance during one randomly selected 10-minute interval. The random variable \(X\) describes a quantity that can vary from interval to interval. A possible value, such as \(x=3\), says that three bicycles passed during a particular interval. The expression \(P(X=3)\) describes the probability of that exact event.

The equals sign inside \(P(X=x)\) is part of the event whose probability is being described. It does not mean that \(X\) and \(x\) are interchangeable. \(X\) names the quantity before its value for an interval is known; \(x\) is a placeholder for one particular value. In a table, \(x\) usually labels the possible values in one column, while \(P(X=x)\) labels the probabilities attached to those values.

The notation \(P(X=x)\) can be read aloud as “the probability that \(X\) equals \(x\).” In context, include what \(X\) measures. For example, if \(P(X=3)=0.20\), say, “The probability that three bicycles pass the entrance during a randomly selected 10-minute interval is 0.20.” This connects the notation to the chance process rather than leaving the event unexplained.

Worked Example: Read a Value and Its Probability

In an invented model, let \(C\) be the number of customers who enter a small shop during a randomly selected five-minute interval. The distribution is:

Customers, \(c\)\(P(C=c)\)
00.15
10.35
20.30
30.20

Identify the random variable. \(C\) is the number of customers entering the shop during one randomly selected five-minute interval.

Identify a particular value. The value \(c=2\) means that two customers enter during the interval. It is a possible count, not a probability.

Read the probability notation. The row for \(c=2\) gives \(P(C=2)=0.30\). This is the probability that the number of customers in a randomly selected five-minute interval is exactly two.

Check the roles. \(C\) names the varying count, 2 is one value the count can take, and 0.30 is the probability assigned to that value. Writing \(C=0.30\) would confuse the count with its probability.

Read \(\mu_X\) and \(\sigma_X\) as Distribution Summaries

The mean \(\mu_X\) describes the center of the probability distribution of \(X\). It is also called the expected value of \(X\). For a discrete distribution, it is found by multiplying each possible value by its probability and adding the products. This is a probability-weighted mean: values with larger probabilities contribute more to the result.

$$ \mu_X=\sum xP(X=x) $$

The standard deviation \(\sigma_X\) describes the spread of the distribution around its mean. Its formula uses the distance between each possible value and \(\mu_X\), squares those distances, weights them by their probabilities, adds them, and takes the square root. That makes \(\sigma_X\) nonnegative and gives it the same units as \(X\).

$$ \sigma_X=\sqrt{\sum (x-\mu_X)^2P(X=x)} $$

The subscript \(X\) identifies which random variable the summary describes. Thus, \(\mu_X\) is the mean of \(X\), and \(\sigma_X\) is the standard deviation of \(X\). The subscript is not multiplication: \(\mu_X\) does not mean \(\mu\) times \(X\).

Unlike a value \(x\), a mean does not have to be one of the possible values of a discrete random variable. If \(X\) counts items, for example, each observed value must be a whole number, but the mean can be a decimal. It summarizes the distribution’s center over many repetitions; it does not claim that one repetition produced a fractional count.

Worked Example: Interpret and Calculate \(\mu_X\) and \(\sigma_X\)

A maker-space tracks \(X\), the number of 3D printers that need a routine reset on a randomly selected day. An invented probability model is:

Printers needing a reset, \(x\)\(P(X=x)\)
00.10
10.20
20.40
30.30

Find the mean. Multiply each possible value by its probability and add:

$$ \begin{aligned} \mu_X &=(0)(0.10)+(1)(0.20)+(2)(0.40)+(3)(0.30)\\ &=0+0.20+0.80+0.90\\ &=1.90. \end{aligned} $$

The mean number of printers needing a reset per day is 1.90. This describes the center of the distribution, not a claim that exactly 1.90 printers need a reset on a particular day.

Find the standard deviation. Use the mean \(1.90\), square each difference from the mean, weight by the corresponding probability, and take the square root:

$$ \begin{aligned} \sigma_X &=\sqrt{(0-1.90)^2(0.10)+(1-1.90)^2(0.20) +(2-1.90)^2(0.40)+(3-1.90)^2(0.30)}\\ &=\sqrt{3.61(0.10)+0.81(0.20)+0.01(0.40)+1.21(0.30)}\\ &=\sqrt{0.361+0.162+0.004+0.363}\\ &=\sqrt{0.890}\\ &\approx 0.943. \end{aligned} $$

The standard deviation is about 0.943 printers. In context, it describes the spread of the daily number of resets around the mean of 1.90 resets. Both \(\mu_X\) and \(\sigma_X\) have units of printers needing a reset per day.

Use the Subscript to Keep Summaries Straight

A subscript is especially helpful when two random variables are under discussion. For example, suppose \(A\) is the number of batteries collected at one school event and \(B\) is the number collected at another. The notation \(\mu_A\) refers to the mean for the distribution of \(A\), while \(\mu_B\) refers to the mean for the distribution of \(B\). Similarly, \(\sigma_A\) and \(\sigma_B\) refer to the two standard deviations.

Keep the value notation matched to its variable too. \(P(A=4)\) is about the event that \(A\) equals 4; it does not give the probability that \(B\) equals 4. When reading a display, check the capital letter in the probability expression and the subscript on a mean or standard deviation. They tell you which random variable the statement describes.

Worked Example: Match Each Summary to Its Variable

Two invented recycling drives have these model summaries. Let \(A\) be the number of aluminum cans collected at Drive A, and let \(B\) be the number collected at Drive B. Each value is measured in cans.

Random variableMeanStandard deviation
\(A\)\(\mu_A=42\)\(\sigma_A=6\)
\(B\)\(\mu_B=35\)\(\sigma_B=9\)

Read the first mean. \(\mu_A=42\) says that the distribution of the number of cans collected at Drive A has a mean of 42 cans.

Read the second standard deviation. \(\sigma_B=9\) says that the distribution of the number of cans collected at Drive B has a standard deviation of 9 cans. It describes spread, not a count that Drive B must collect.

Compare the notation. The larger mean is \(\mu_A\), since \(42>35\). The larger standard deviation is \(\sigma_B\), since \(9>6\). Therefore, Drive A’s model is centered at a higher number of cans, while Drive B’s model has more spread. These comparisons use the correct subscript each time.

Common Mistakes and AP Exam Tips

  • Calling a value a random variable. \(X\) names the quantity that varies; \(x=2\) is one possible value. A clear answer defines what \(X\) counts or measures before interpreting a value.
  • Reporting \(x\) when asked for \(P(X=x)\). The value in the table is not its probability. Match the requested event to its row, then report the probability from the probability column.
  • Leaving the event out of a probability interpretation. Instead of writing only “the probability is 0.30,” say what \(X=x\) means in the setting and attach the probability to that event.
  • Treating \(\mu_X\) as a value that must occur. A mean summarizes the full distribution. It can be between possible values, especially when \(X\) is a count.
  • Confusing the mean with the standard deviation. \(\mu_X\) describes center; \(\sigma_X\) describes spread. Include which summary you are interpreting and its units.
  • Ignoring the subscript. \(\mu_A\) and \(\mu_B\) describe different distributions if \(A\) and \(B\) are different random variables. Read the subscript before stating a conclusion.

For full-credit communication, define or identify the random variable, state what a specific value represents, and interpret probabilities and summaries in context. When a question gives \(\mu_X\) or \(\sigma_X\), name the quantity it summarizes and use the units of \(X\). Avoid describing a mean or standard deviation as the result of one particular trial.

Key Takeaway

Random-variable notation distinguishes one quantity from its possible values and from summaries of its distribution. Reading each symbol in context makes tables and probability statements easier to interpret accurately.

Key takeaway: \(X\) names the random variable, \(x\) is one possible value, and \(P(X=x)\) is the probability of that value. The subscript in \(\mu_X\) and \(\sigma_X\) identifies the distribution: \(\mu_X\) is its mean, and \(\sigma_X\) is its standard deviation.

Check Your Understanding

Let \(T\) be the number of minutes a randomly selected library computer is unavailable during a scheduled hour. An invented model gives \(\mu_T=4.5\) minutes and \(\sigma_T=2\) minutes.

  1. In context, explain the difference between \(T\) and a possible value \(t=6\).
  2. Write notation for the probability that the computer is unavailable for exactly 6 minutes. What would that probability mean in context?
  3. What does \(\mu_T=4.5\) describe? Must a particular computer be unavailable for exactly 4.5 minutes? Explain.
  4. Interpret \(\sigma_T=2\) in context, including its units. Does it say that every computer is unavailable for exactly 2 minutes?
  5. A student says, “\(\mu_T\) is the probability of \(T=4.5\).” Identify the notation error and give a correct interpretation of \(\mu_T\).