Continuous
Random Variables
Master probability density functions, compute probabilities as areas under curves, and apply expected value and variance for continuous distributions.
What Is a Continuous Random Variable?
A continuous random variable \(X\) can take any value within an interval (or the entire real line). Unlike discrete variables that jump between isolated values, continuous variables flow smoothly: think of height, time, or temperature.
Discrete vs Continuous: A Visual
Why Does \(P(X = a) = 0\)?
A single point has zero width. Since probability equals area, and the area of a line segment with zero width is zero, any single value has probability zero.
This is a key conceptual shift from discrete probability. We never ask "What is the probability of exactly 3.7?" but rather "What is the probability between 3.5 and 4.0?"
The Probability Density Function
A function \(f(x)\) is a probability density function (pdf) for a continuous random variable \(X\) if it satisfies two conditions:
Computing Probability from a PDF
Expected Value and Variance
The "balance point" of the distribution: a weighted average where \(f(x)\) acts as the weight.
Equivalently: \(\text{Var}(X) = E(X^2) - [E(X)]^2\), which is often easier to compute.
PDF vs CDF: Key Distinction
| PDF: \(f(x)\) | CDF: \(F(x)\) | |
|---|---|---|
| Definition | Density at point \(x\) | \(F(x) = P(X \leq x)\) |
| Output range | \(f(x) \geq 0\) (can exceed 1) | \(0 \leq F(x) \leq 1\) |
| Gives probability? | Not directly: need to integrate | Yes: \(F(b) - F(a)\) |
| Relationship | \(f(x) = F'(x)\) | \(F(x) = \displaystyle\int_{-\infty}^{x} f(t)\,dt\) |
| Shape | Can be any non-negative curve | Always non-decreasing, 0 to 1 |
How to Apply: Step-by-Step
Example 1: Finding \(k\)
A continuous random variable \(X\) has pdf $$f(x) = kx, \quad 0 \leq x \leq 4$$ and \(f(x) = 0\) otherwise. Find the value of \(k\).
Example 2: Finding \(P(1 \leq X \leq 3)\)
Using \(f(x) = \frac{1}{8}x\) for \(0 \leq x \leq 4\), find \(P(1 \leq X \leq 3)\).
Example 3: \(E(X)\) and \(\text{Var}(X)\)
For \(f(x) = \frac{1}{8}x\), \(0 \leq x \leq 4\), find the expected value and variance.
Example 4: Piecewise PDF
Given the pdf: $$f(x) = \begin{cases} cx^2 & 0 \leq x \leq 3 \\ 0 & \text{otherwise} \end{cases}$$ Find \(c\), then compute \(P(X > 2)\).
Mode and Median of a PDF
Common Mistakes to Avoid
Summary: Key Formulas
| Quantity | Formula |
|---|---|
| Validity | \(\displaystyle\int_{-\infty}^{\infty} f(x)\,dx = 1\), \(f(x) \geq 0\) |
| Probability | \(P(a \leq X \leq b) = \displaystyle\int_a^b f(x)\,dx\) |
| Expected value | \(E(X) = \displaystyle\int x\,f(x)\,dx\) |
| Variance | \(\text{Var}(X) = E(X^2) - [E(X)]^2\) |
| CDF | \(F(x) = \displaystyle\int_{-\infty}^{x} f(t)\,dt\) |
| Median | \(\displaystyle\int_{-\infty}^{m} f(x)\,dx = \frac{1}{2}\) |
Question 1 of 5
If \(f(x) = kx^2\) for \(0 \leq x \leq 2\) and \(f(x) = 0\) otherwise, what is the value of \(k\)?
Question 2 of 5
For the pdf \(f(x) = \frac{1}{8}x\) on \([0, 4]\), what is \(P(X > 2)\)?
Question 3 of 5
Which of the following is true about a probability density function \(f(x)\)?
Question 4 of 5
For a continuous random variable with pdf \(f(x) = \frac{3}{8}x^2\) on \([0,2]\), what is \(E(X)\)?
Question 5 of 5
The median \(m\) of a continuous random variable satisfies: