Probability density functions
Continuous random variables, probability density functions and their two conditions, probabilities as integrals, the cumulative distribution function and its relationship with the PDF, uniform distributions, piecewise PDFs, the median, and PDFs over unbounded domains.
Probability density functions
For a continuous random variable, $P(X = a) = 0$ for any single value, so it makes no difference whether the inequalities are strict.
The PDF f(x) = 0.75x(2 − x) on 0 ≤ x ≤ 2. The shaded area is the probability that X is at most b.
Why is the area exactly $0.5$ when $b = 1$?
$f(x) = kx^2$ for $0 \le x \le 3$, and $0$ elsewhere. Find $k$, then $P(X \le 1)$.
The cumulative distribution function
$F$ rises from $0$ to $1$. Then $P(a \le X \le b) = F(b) - F(a)$, and the median $m$ solves $F(m) = \tfrac12$.
For the PDF in Example 1, find the CDF and the median.
Uniform distributions
A uniform distribution on $a \le x \le b$ has a constant PDF $f(x) = \dfrac{1}{b - a}$. Its graph is a rectangle of area $1$, and probabilities are just rectangle areas.
A bus arrives at a uniformly random time in a $20$-minute window. Find the probability of waiting more than $15$ minutes.
Piecewise and unbounded PDFs
A PDF can be defined in pieces: integrate each piece over its own interval and add. A PDF can also be defined on an unbounded domain such as $x \ge 0$. Then the total area is an improper integral, found with a limit.
Show that $f(x) = e^{-x}$ for $x \ge 0$ (and $0$ for $x \lt 0$) is a PDF.
$f(x) = kx^2$ for $0 \le x \le 3$ is a PDF. Find $k$.
$9k = 1$.
For that PDF, find $P(X \le 1)$.
$F(1) = \tfrac{1}{27}$.
For that PDF, find $P(1 \le X \le 2)$.
$\tfrac{8}{27} - \tfrac{1}{27}$.
A bus arrives at a uniformly random time in a $20$-minute window. Find the probability of waiting more than $15$ minutes.
$\tfrac{5}{20}$.
$f(x) = 2x$ on $0 \le x \le 1$. Find the median, correct to $2$ decimal places.
$F(x) = x^2$, so $m^2 = \tfrac12$ and $m = \tfrac{1}{\sqrt2} \approx 0.71$.
$X$ is continuous. Find $P(X = 1.5)$.
A single value has zero area.
$F(x)$ is the CDF of $X$. The PDF is:
The CDF is the integral of the PDF.
Which is a PDF on $0 \le x \le 2$ (and $0$ elsewhere)?
Area $2 \times \tfrac12 = 1$, and never negative.
To find the total area for a PDF on $x \ge 0$, you use:
It is an improper integral.
New numbers every time. Keep going until you get five in a row.
Coaching Centre