Continuous random variables and pdf: QCE Maths Methods Unit 4
Syllabus dot point
“Define a continuous random variable, its probability density function (pdf), cumulative distribution function (cdf), and compute probabilities, expected value (mean), variance and standard deviation as definite integrals”
9 min read ·
Quick answer
A continuous random variable X is described by a probability density function f(x) that integrates to 1 over its support and is non-negative, with probabilities computed as definite integrals P(a≤X≤b)=∫f, expected value as E(X)=∫xfdx, and variance as E(X2)−[E(X)]2 where E(X2)=∫x2fdx.
QCAA wants you to define a continuous random variable through its probability density function, compute probabilities as definite integrals, and compute expected value (mean), variance and standard deviation as integrals. The dot point bridges Unit 4 calculus to Unit 4 statistics.
Continuous random variable
A continuous random variable X takes values in a continuum (an interval of real numbers). Examples: a waiting time, a length, a temperature. Because X has uncountably many possible values, P(X=x)=0 for any single value; probabilities are computed for intervals.
Probability density function (pdf)
A continuous random variable X is described by its probability density function f(x), with:
P(a≤X≤b)=∫abf(x)dx
Two conditions for a valid pdf:
Non-negative.f(x)≥0 everywhere.
Integrates to 1.∫−∞∞f(x)dx=1.
For X supported on [a,b] (and f=0 outside), condition 2 becomes ∫abf(x)dx=1.
Finding a normalising constant
A common PSMT and EA question gives f(x)=kg(x) on [a,b] and asks for k. Set ∫kg=1; solve for k.
Cumulative distribution function (cdf)
The cdf is F(x)=P(X≤x)=∫−∞xf(t)dt.
Properties:
F is non-decreasing.
F(−∞)=0, F(∞)=1.
P(a≤X≤b)=F(b)−F(a).
F′(x)=f(x) where f is continuous (fundamental theorem of calculus).
Expected value (mean)
The expected value of X is:
E(X)=μ=∫−∞∞xf(x)dx
(For X on [a,b], the limits reduce to a and b.)
Interpretation: the centre of mass of the pdf; the long-run average of independent observations.
Linearity: E(aX+b)=aE(X)+b.
Variance and standard deviation
Var(X)=E[(X−μ)2]=E(X2)−[E(X)]2
where E(X2)=∫x2f(x)dx.
The right-hand identity is the working formula.
Standard deviation σ=Var(X).
Property: Var(aX+b)=a2Var(X).
Median and quartiles
Median: m such that P(X≤m)=1/2. Solve ∫amfdx=1/2.
Quartiles: ∫=1/4 and ∫=3/4.
For symmetric pdfs the median equals the mean; for skewed pdfs they differ.
The uniform distribution
The simplest continuous random variable. X∼U(a,b) has f(x)=b−a1 on [a,b], 0 elsewhere.
E(X)=(a+b)/2.
Var(X)=(b−a)2/12.
P(c≤X≤d)=(d−c)/(b−a) for a≤c≤d≤b.
Triangular pdf
The pdf f(x)=kx on [0,2] and 0 elsewhere forms a triangular shape. We find k, then compute the mean, variance and standard deviation.
Step 1: Find the normalising constant k
Every valid pdf must integrate to 1 over its support. Setting up the normalisation condition gives an equation in k.
∫02kxdx=[2kx2]02=2k⋅4=2k=1
Solving gives k=21, so the pdf is f(x)=2x on [0,2].
Step 2: Compute the mean E(X)
The expected value is E(X)=∫xf(x)dx. We substitute f(x)=2x and integrate 2x2.
Final answer:k=21, E(X)=34, Var(X)=92, and σ=92=32.
PSMT and EA contexts
The IA3 PSMT often models a continuous distribution arising from a real-world variable (waiting time, lifetime, error magnitude). Typical questions:
Find the normalising constant for a given pdf shape.
Compute the probability of a specific event.
Compute and interpret the mean and standard deviation.
Compute the median or a percentile.
The EA Paper 2 short response examines the formulas explicitly.
Common errors
Forgetting normalisation
A pdf must integrate to 1. Forgetting this in finding k is the most common slip.
Using f(x) as probability
f(2)=0.3 does not mean P(X=2)=0.3. The pdf is a density, not a probability.
Wrong variance formula
Var=E(X2)−[E(X)]2, not E(X2)−E(X).
Forgetting the pdf inside E(X)
E(X)=∫xf(x)dx, not ∫xdx.
Wrong support
If f=0 outside [a,b], the integrals must be on [a,b], not (−∞,∞).
Exam-style questions
Questions in the style of QCAA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
Practice5 marks
Paper 2 (complex familiar). A continuous random variable X has pdf f(x)=k(4−x2) on [−2,2] and 0 elsewhere. (a) Determine k. (b) Determine E(X). (c) Determine Var(X).
Show worked answer →
(a) Find k. Normalisation: ∫f=1.
∫−22k(4−x2)dx=2k∫02(4−x2)dx (by symmetry).
=2k[4x−3x3]02=2k(8−38)=2k⋅316=332k.
Set 332k=1: k=323.
(b) Expected value.E(X)=∫−22x⋅323(4−x2)dx.
The integrand x(4−x2) is an odd function on a symmetric interval [−2,2], so the integral is 0. E(X)=0.
(c) Variance. Need E(X2).
E(X2)=∫−22x2⋅323(4−x2)dx=323∫−22(4x2−x4)dx.
By symmetry: =163∫02(4x2−x4)dx=163[34x3−5x5]02.
Markers reward the normalisation calculation with symmetry shortcut, the odd-integrand observation for E(X), and the variance formula with correct arithmetic.
Practice4 marks
Paper 2 (complex familiar). A waiting time X (minutes) has pdf f(x)=8x on [0,4] and 0 elsewhere. (a) Verify that f is a valid pdf. (b) Determine P(X≤2). (c) Determine the median waiting time.
Show worked answer →
(a) ∫048xdx=[16x2]04=1616=1, and f(x)≥0 on [0,4], so f is a valid pdf.
(b) P(X≤2)=∫028xdx=[16x2]02=164=41.
(c) The median m solves ∫0m8xdx=21, so 16m2=21, m2=8, m=22≈2.83 minutes.
Markers reward the normalisation check, the probability integral, and solving for the median.