Random variables: discrete and continuous
Understanding Random Variables
In AP Statistics, a random variable is a variable whose value is a numerical outcome of a random phenomenon. It's typically denoted by a capital letter, like X or Y. The random phenomenon could be anything from flipping a coin multiple times to measuring the height of a randomly selected student. The value a random variable takes is determined by chance.
Discrete Random Variables
A discrete random variable is a random variable that can take on a finite number of values or an infinitely countable number of values. These values are often integers and can be listed. They usually result from counting something.
- Examples of Discrete Random Variables:
- The number of heads in 3 coin flips (values: 0, 1, 2, 3)
- The number of cars passing a certain point on a highway in an hour (values: 0, 1, 2, ...)
- The number of defective items in a sample of 10 products (values: 0, 1, 2, ..., 10)
- Probability Distribution for Discrete Random Variables: For a discrete random variable, its probability distribution lists all possible values the variable can take and the probability of each value occurring. The sum of all probabilities must equal 1. For example, if X is the number of heads in two coin flips, the possible values are 0, 1, 2. The probabilities would be P(X=0) = 0.25, P(X=1) = 0.50, P(X=2) = 0.25.
Continuous Random Variables
A continuous random variable is a random variable that can take on any value within a given interval. These values are typically measurements and cannot be listed in a countable way. Between any two possible values, there is always another possible value.
- Examples of Continuous Random Variables:
- The height of a randomly selected student (e.g., 150 cm to 190 cm)
- The time it takes for a commuter to travel to work (e.g., 20 minutes to 60 minutes)
- The amount of rainfall in a city during a month (e.g., 0 inches to 10 inches)
- Probability Distribution for Continuous Random Variables: For a continuous random variable, we describe its probability distribution using a probability density function (PDF). Unlike discrete variables, the probability of a continuous random variable taking on any specific exact value is 0 (e.g., P(X=170 cm) = 0). Instead, probabilities are calculated for intervals of values. The area under the PDF curve over a given interval represents the probability that the random variable falls within that interval. The total area under the entire PDF curve must equal 1. Common continuous distributions include the Normal distribution and the Uniform distribution.
Key Differences and Identification
The fundamental difference lies in whether the outcomes can be counted or measured. If you can list the possible outcomes, it's discrete. If the outcomes fall within a range and can take on any value within that range, it's continuous. Understanding this distinction is crucial for selecting the appropriate statistical methods for analysis, such as calculating expected values, variances, or applying specific probability distributions (e.g., Binomial for discrete, Normal for continuous).
Practice questions
What type of random variable is 'the number of text messages received by a student in a day'?
Which type of random variable requires the use of a probability density function (PDF) to describe its probabilities?
If X represents 'the exact weight of a newborn baby in pounds', is X discrete or continuous?
Can a discrete random variable have values that are not integers?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-4-probability-random-variables-and-probability-distributions/random-variables-discrete-and-continuous