mindstair

Home / Courses / Probability / Unit 6

Probability Unit 6: Continuous Random Variables

Continuous random variables take values in intervals, and their probabilities are areas under a density curve. This unit replaces sums with integrals and adds tools such as percentiles and transformations.

Covers: Probability density functions, CDFs and survival functions, Expected value and variance by integration, Medians, percentiles and modes, Transformations of a random variable, Mixed distributions, Insurance payments with continuous losses

Study guide

A continuous random variable X has a probability density function f with f(x) ≥ 0 and total area ∫ f(x) dx = 1. Probabilities are areas: P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx. As a result, P(X = a) = 0 for any single value, so it does not matter whether an inequality is strict. A density is not a probability and can exceed 1. To find an unknown constant in a density, integrate the unnormalized function over its support and divide 1 by the result.

The CDF F(x) = P(X ≤ x) = ∫ from −∞ to x of f(t) dt is continuous and nondecreasing, and f(x) = F′(x) wherever the derivative exists. The survival function S(x) = 1 − F(x) = P(X > x) is common in insurance problems. Percentiles come from the CDF: the p-th percentile solves F(x) = p, and the median solves F(m) = ½. The mode is where the density peaks, found by setting f′(x) = 0. Conditional probabilities work as before, for example P(X > a | X > b) = S(a)/S(b) when a > b.

Expectations become integrals. E[X] = ∫ x f(x) dx, E[g(X)] = ∫ g(x) f(x) dx, and Var(X) = E[X²] − (E[X])², with the same linearity and scaling rules as in the discrete case. For a nonnegative variable, E[X] = ∫₀^∞ S(x) dx, which is often easier than finding f. A valid density can still have an infinite mean: f(x) = 1/x² on [1, ∞) integrates to 1, but ∫ x f(x) dx diverges. Always check that an expectation integral converges.

To find the distribution of Y = g(X), use the CDF method: write F_Y(y) = P(g(X) ≤ y), rewrite the event in terms of X, use F_X, and differentiate. For an increasing g this gives f_Y(y) = f_X(g⁻¹(y)) × |d g⁻¹(y)/dy|. Some variables are mixed, with a point mass and a continuous part; a loss that is 0 with probability 0.3 is an example. Compute their expectations by adding the discrete and continuous contributions. Insurance payments such as max(X − d, 0) or min(X, u) are functions of X, so their expectations are integrals of the payment against the density, or integrals of the survival function.

Key ideas

Formulas and rules

P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx = F(b) − F(a)
f(x) = F′(x); S(x) = 1 − F(x)
E[g(X)] = ∫ g(x) f(x) dx; Var(X) = E[X²] − (E[X])²
Nonnegative X: E[X] = ∫₀^∞ S(x) dx; E[min(X, u)] = ∫₀ᵘ S(x) dx
CDF method: F_Y(y) = P(g(X) ≤ y), then f_Y = F_Y′
Monotone transformation: f_Y(y) = f_X(g⁻¹(y)) |(g⁻¹)′(y)|

Common mistakes

Before the test, make sure you can

Words to know

Continuous random variable
A random variable with a density, taking values in an interval, with P(X = a) = 0 for every a.
Probability density function
f(x) ≥ 0 with total area 1; probabilities are areas under f.
CDF
F(x) = ∫ from −∞ to x of f(t) dt = P(X ≤ x).
Survival function
S(x) = P(X > x) = 1 − F(x).
Percentile
The value x with F(x) = p for the p-th quantile.
Median
The value m with F(m) = ½.
Mode
The value at which the density is largest.
Expected value (continuous)
E[X] = ∫ x f(x) dx.
LOTUS (continuous)
E[g(X)] = ∫ g(x) f(x) dx.
Survival-function mean
For X ≥ 0, E[X] = ∫₀^∞ S(x) dx.
CDF method
Find the distribution of Y = g(X) by computing P(g(X) ≤ y) and differentiating.
Jacobian factor
The term |dx/dy| that appears in the density of a transformed variable.
Mixed distribution
A distribution with both point masses and a continuous part.
Support
The set of values where the density is positive.
Heavy tail
A slowly decaying density, which can make moments such as the mean infinite.

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

Which conditions must a function f satisfy to be a probability density function?

  1. 0 ≤ f(x) ≤ 1 for all x and Σ f(x) = 1
  2. ∫ f(x) dx = 0 and f(x) ≥ 0
  3. f(x) ≥ 0 for all x and ∫ f(x) dx = 1 over the real line
  4. f(x) > 0 for all x and f is increasing
Show the answer and steps

Answer: C) f(x) ≥ 0 for all x and ∫ f(x) dx = 1 over the real line

  1. Probabilities are areas under f, so f cannot be negative.
  2. The total area must equal 1.
  3. A density may exceed 1 at some points; only its area is restricted.
Question 2 (level 1)

X is a continuous random variable. What is P(X = 3)?

  1. It depends on the distribution
  2. f(3)
  3. 0
  4. P(X ≤ 3)
Show the answer and steps

Answer: C) 0

  1. For continuous X, P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx.
  2. With a = b = 3 the interval has width 0, so the integral is 0.
  3. f(3) is a density value, not a probability.
Question 3 (level 3)

X has density f(x) = c(1 − x²) on [−1, 1]. Find c.

  1. 3/4
  2. 2/3
  3. 4/3
  4. 1/2
Show the answer and steps

Answer: A) 3/4

  1. ∫ from −1 to 1 of (1 − x²) dx = 2 − 2/3 = 4/3.
  2. c × 4/3 = 1.
  3. c = 3/4; 4/3 is the integral, not its reciprocal.