| Study Guides
AP · Continuous Random Variables · 14 min read · Updated 2026-05-10

Continuous Random Variables — AP Statistics Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: This chapter covers definitions of continuous random variables, probability density functions (PDF), cumulative distribution functions (CDF), expected value and variance calculations, and the uniform continuous distribution, aligned to the AP Statistics CED.

You should already know: Basic probability rules for discrete random variables, integration of simple polynomial functions, notation for expected value and variance.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Continuous Random Variables?

A continuous random variable (CRV) is a random variable that takes any numerical value within one or more intervals of real numbers, unlike discrete random variables which only take distinct, countable values. Common examples include the height of a randomly selected adult, the time it takes to complete a FRQ on the AP exam, the amount of gasoline pumped into a car, or the measurement error from a laboratory scale. The key defining property of a CRV is that the probability of it taking any single exact value is always 0, because there are infinitely many possible values in any interval.

Notation follows standard conventions: we use capital letters like for the random variable itself, and lowercase for a specific observed value of . The College Board AP Statistics CED allocates 10-15% of the total exam weight to Unit 4 (Probability, Random Variables, and Probability Distributions), and continuous random variables make up roughly 35% of that unit’s content, so this topic contributes 3.5-5% of your total AP exam score. Questions on continuous random variables appear in both the multiple-choice (MCQ) and free-response (FRQ) sections, most often as a foundation for questions about normal distributions and inference.

2. Probability Density Functions (PDFs)

For continuous random variables, probability is measured as the area under a curve called the probability density function (PDF), denoted . Because probability can never be negative, and the total probability across all possible values of must equal 1, a valid PDF must satisfy two non-negotiable conditions:

  1. for all in the domain of
  2. The total area under over the entire domain equals 1:

A common point of confusion is that itself is not a probability. Unlike discrete probability mass functions, the output of a PDF is a density, so does not mean . To find the probability that falls between two values and , we calculate the area under between those bounds: Because single values have probability 0, it does not matter if we use weak or strict inequalities: for any continuous random variable.

Worked Example

A local café tracks the time (in hours) a customer spends seated at a table, which follows the PDF: $$f(x) = \begin{cases} \frac{3}{28}(x^2 + 1) & 0 \leq x \leq 3 \ 0 & \text{otherwise} \end{cases}$$ Verify that this is a valid PDF and find .

  1. First check the non-negativity condition: For , is always positive, so , and elsewhere. This satisfies the first condition.
  2. Check the total area condition by integrating over the full domain: $$\int_{0}^{3} \frac{3}{28}(x^2 + 1) dx = \frac{3}{28} \left[ \frac{x^3}{3} + x \right]0^3 = \frac{3}{28} \left( 9 + 3 - 0 \right) = \frac{36}{28} \times \frac{1}{3} \times 3? Wait no, recalculate: 3^3/3 + 3 = 27/3 + 3 = 9 + 3 = 12. So 3/28 * 12 = 36/28 = 9/7? Oops, fix coefficient: 1/12. Let's correct: f(x) = 1/12 (x² + 1) for 0 ≤x ≤3. Then integral is 1/12 * 12 = 1. Perfect. So step 2 becomes: $$\int{0}^{3} \frac{1}{12}(x^2 + 1) dx = \frac{1}{12} \left[ \frac{x^3}{3} + x \right]_0^3 = \frac{1}{12} \left( 9 + 3 \right) = 1$$
  3. Both conditions are satisfied, so is a valid PDF.
  4. Calculate :

Exam tip: When asked to verify a PDF is valid, always explicitly check both conditions (non-negativity and total area = 1). AP graders will deduct points if you only check the total area condition.

3. Cumulative Distribution Functions (CDFs)

The cumulative distribution function (CDF) of a continuous random variable , denoted , gives the probability that is less than or equal to a specific value . By definition, the CDF is the integral of the PDF from negative infinity up to :

All CDFs for continuous random variables share three key properties: they are non-decreasing (as increases, never decreases), they approach 0 as , and they approach 1 as . The CDF simplifies probability calculations significantly: for any , , so you do not need to re-integrate the PDF every time you calculate a new probability. Additionally, you can recover the PDF from the CDF by differentiation: at all points where is differentiable. This inverse relationship between PDF and CDF is frequently tested on the AP exam.

Worked Example

For the café seating time PDF for (0 otherwise), find the CDF and use it to calculate .

  1. For : There is no area under below , so .
  2. For : Integrate the PDF from 0 to (since for ):
  3. For : All possible values of are less than , so .
  4. The full piecewise CDF is: $$F(x) = \begin{cases} 0 & x < 0 \ \frac{x^3 + 3x}{36} & 0 \leq x \leq 3 \ 1 & x > 3 \end{cases}$$
  5. Calculate .

Exam tip: Always write the CDF as a piecewise function covering all real , not just the interval where the PDF is non-zero. AP graders require the full domain for full credit.

4. Expected Value and Variance of Continuous Random Variables

The expected value (mean) of a continuous random variable , denoted or , is the long-run average value of over many repeated observations of the random process. The formula for expected value is analogous to the discrete case, with an integral replacing the sum over discrete outcomes: The same linearity of expectation that holds for discrete random variables also applies to continuous random variables: for any constants and , .

The variance of , denoted or , is the expected value of the squared deviation from the mean, and the same shortcut formula used for discrete variables works here: where is calculated as: The standard deviation is the square root of the variance, and it measures the spread of the distribution in the original units of .

Worked Example

For the café seating time with PDF for , calculate the expected value and standard deviation of seating time.

  1. Calculate :
  2. Calculate :
  3. Calculate variance and standard deviation:

Exam tip: Memorize the phrase "expected of X squared minus square of expected X" to avoid mixing up the order of terms in the variance shortcut. A negative variance is impossible, so if you get a negative value, you flipped the terms.

5. The Uniform Continuous Distribution

The uniform continuous distribution is the simplest continuous distribution, where all intervals of the same length within the domain are equally likely. If follows a uniform distribution on the interval , we write . The PDF is constant over the interval : $$f(x) = \begin{cases} \frac{1}{B - A} & A \leq x \leq B \ 0 & \text{otherwise} \end{cases}$$ This is automatically a valid PDF: the total area is height × width = , and it is non-negative everywhere. For any interval within , probability is just the area of a rectangle: . The expected value and variance have simple closed-form formulas: The uniform distribution is often used to model waiting times for events that are equally likely to occur at any time in an interval, and it is a common topic for AP exam questions because it tests core CRV concepts without requiring complex integration.

Worked Example

A city bus arrives at a stop randomly between 7:00 AM and 7:15 AM, so arrival time (minutes after 7:00 AM) follows . What is the probability the bus arrives between 7:06 AM and 7:12 AM? Find the mean and standard deviation of the arrival time.

  1. Identify parameters: , , so the width of the full interval is .
  2. Calculate probability: The interval from 7:06 to 7:12 AM corresponds to , , so:
  3. Calculate expected value: minutes after 7:00 AM, which is the midpoint of the interval as expected.
  4. Calculate standard deviation: , so minutes.

Exam tip: Don’t waste time integrating for uniform distribution probabilities. Use the rectangle area shortcut to save time and avoid integration errors on the exam.

6. Common Pitfalls (and how to avoid them)

  • Wrong move: Interpreting as the probability that , e.g., claiming means . Why: Students confuse continuous probability density functions with discrete probability mass functions, where the output is a probability. Correct move: Always remember that only area under is probability; itself is just a density value, not a probability.
  • Wrong move: Adjusting by subtracting because of the inequalities. Why: Students carry over this discrete random variable habit to continuous random variables, where single values have non-zero probability. Correct move: For any continuous random variable, for any single , so regardless of inequality signs.
  • Wrong move: For a continuous uniform distribution, adding 1 to the interval width (e.g., using instead of ), like you would for a discrete uniform distribution with integer outcomes. Why: Students confuse discrete and continuous versions of the uniform distribution. Correct move: For continuous uniform, the width is always , no +1 adjustment is needed.
  • Wrong move: Calculating variance as , resulting in a negative variance. Why: Students mix up the order of terms in the shortcut formula when rushing on the exam. Correct move: Say the phrase "expected X squared minus square of expected X" to yourself before writing the formula to get the order right.
  • Wrong move: Only writing the non-zero part of the CDF, omitting the pieces for below and above the domain of . Why: Students focus on the interval where the PDF is non-zero and forget the CDF must be defined for all real numbers. Correct move: Always write CDFs as three-piece piecewise functions for CRVs with a single bounded domain.

7. Practice Questions (AP Statistics Style)

Question 1 (Multiple Choice)

A continuous random variable has PDF for , and 0 otherwise. What value of makes this a valid PDF? A) 1/16 B) 4/15 C) 1/4 D) 15/4

Worked Solution: To be valid, the integral of over the entire domain must equal 1, and must be non-negative. is non-negative for as long as , so we solve for : Solving for gives . The correct answer is C.


Question 2 (Free Response)

A community garden tracks the weight (in pounds) of pumpkins grown in the garden, which follows the PDF: $$f(x) = \begin{cases} \frac{1}{16}(6 - x) & 2 \leq x \leq 6 \ 0 & \text{otherwise} \end{cases}$$ Any pumpkin weighing more than 4 pounds is sold at the garden’s stand. (a) Verify that is a valid probability density function. (b) Find the probability that a randomly selected pumpkin can be sold. (c) Calculate the expected weight of a randomly selected pumpkin.

Worked Solution: (a) First check non-negativity: For , , so for all , satisfying the first condition. Next check total area: Both conditions are satisfied, so is a valid PDF. (b) A pumpkin can be sold if , so: (c) Calculate expected weight:


Question 3 (Application / Real-World Style)

A bottling machine fills 2-liter bottles with soda, and the actual volume of soda in a randomly selected bottle is uniformly distributed between 1.98 liters and 2.02 liters. Any bottle with volume less than 1.99 liters or more than 2.01 liters is rejected. What proportion of bottles are rejected? What is the expected volume of a randomly selected bottle?

Worked Solution: Let = volume of a randomly selected bottle, so . The width of the full distribution is liters. The range of acceptable volumes is 1.99 to 2.01 liters, which has width liters. The proportion of accepted bottles is , so the proportion of rejected bottles is . The expected volume is liters, which matches the target volume. In context, 50% of the bottles filled by this machine are rejected for being out of specification, and the average bottle volume is exactly the 2-liter target.

8. Quick Reference Cheatsheet

Category Formula Notes
Valid PDF Conditions 1. for all
2.
Both conditions must be checked for full credit
Probability for CRVs Inequality signs do not change the result, since
Cumulative Distribution Function Defined for all real ; non-decreasing, approaches 0 as , 1 as
Recover PDF from CDF Works at all points where is differentiable
Expected Value Linearity holds:
Variance
Order of terms is critical: first, subtract
Uniform Distribution for

Probability: for

9. What's Next

Continuous random variables are the foundation for the most widely used probability distributions in AP Statistics: the normal distribution, which we study next in Unit 4, and later the t-distribution for statistical inference. Without mastering the core property that probability equals area under a curve, you will not be able to correctly calculate probabilities for normal or t-distributions, which appear in every section of the AP exam and are required for nearly all inference procedures later in the course. This topic also connects directly to sampling distributions, which are built from sums and averages of random variables, many of which are continuous. Mastery of the PDF/CDF relationship and expected value rules for CRVs will make every subsequent distribution topic much easier to learn.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →