← Unit 4: Further calculus and statistical inference

QLDMath MethodsSyllabus dot point

Topic 3: Continuous random variables, the normal distribution, and statistical inference

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

A focused answer to the QCE Maths Methods Unit 4 dot point on continuous random variables. Defines the pdf, cdf, mean, variance and standard deviation as integrals, including the normalisation condition and a worked PSMT-style example.

Generated by Claude OpusReviewed by Better Tuition Academy9 min answer

Have a quick question? Jump to the Q&A page

What this dot point is asking

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 XX takes values in a continuum (an interval of real numbers). Examples: a waiting time, a length, a temperature. Because XX has uncountably many possible values, P(X=x)=0P(X = x) = 0 for any single value; probabilities are computed for intervals.

Probability density function (pdf)

A continuous random variable XX is described by its probability density function f(x)f(x), with:

P(a≀X≀b)=∫abf(x) dxP(a \leq X \leq b) = \int_{a}^{b} f(x) \, dx

Two conditions for a valid pdf:

  1. Non-negative. f(x)β‰₯0f(x) \geq 0 everywhere.
  2. Integrates to 1. βˆ«βˆ’βˆžβˆžf(x) dx=1\int_{-\infty}^{\infty} f(x) \, dx = 1.

For XX supported on [a,b][a, b] (and f=0f = 0 outside), condition 2 becomes ∫abf(x) dx=1\int_{a}^{b} f(x) \, dx = 1.

Finding a normalising constant

A common PSMT and EA question gives f(x)=kg(x)f(x) = k g(x) on [a,b][a, b] and asks for kk. Set ∫kg=1\int k g = 1; solve for kk.

Cumulative distribution function (cdf)

The cdf is F(x)=P(X≀x)=βˆ«βˆ’βˆžxf(t) dtF(x) = P(X \leq x) = \int_{-\infty}^{x} f(t) \, dt.

Properties:

  • IMATH_20 is non-decreasing.
  • IMATH_21 , F(∞)=1F(\infty) = 1.
  • IMATH_23 .
  • IMATH_24 where ff is continuous (fundamental theorem of calculus).

Expected value (mean)

The expected value of XX is:

E(X)=ΞΌ=βˆ«βˆ’βˆžβˆžxf(x) dxE(X) = \mu = \int_{-\infty}^{\infty} x f(x) \, dx

(For XX on [a,b][a, b], the limits reduce to aa and bb.)

Interpretation: the centre of mass of the pdf; the long-run average of independent observations.

Linearity: E(aX+b)=aE(X)+bE(aX + b) = a E(X) + b.

Variance and standard deviation

Var(X)=E[(Xβˆ’ΞΌ)2]=E(X2)βˆ’[E(X)]2\text{Var}(X) = E[(X - \mu)^2] = E(X^2) - [E(X)]^2

where E(X2)=∫x2f(x) dxE(X^2) = \int x^2 f(x) \, dx.

The right-hand identity is the working formula.

Standard deviation Οƒ=Var(X)\sigma = \sqrt{\text{Var}(X)}.

Property: Var(aX+b)=a2Var(X)\text{Var}(aX + b) = a^2 \text{Var}(X).

Median and quartiles

Median: mm such that P(X≀m)=1/2P(X \leq m) = 1/2. Solve ∫amf dx=1/2\int_{a}^{m} f \, dx = 1/2.

Quartiles: ∫=1/4\int = 1/4 and ∫=3/4\int = 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)X \sim U(a, b) has f(x)=1bβˆ’af(x) = \frac{1}{b-a} on [a,b][a, b], 00 elsewhere.

  • IMATH_44 .
  • IMATH_45 .
  • IMATH_46 for a≀c≀d≀ba \leq c \leq d \leq b.

Worked example. Triangular pdf

f(x)=kxf(x) = k x on [0,2][0, 2], 0 elsewhere.

Find kk. ∫02kx dx=[kx22]02=2k=1\int_{0}^{2} k x \, dx = [\frac{k x^2}{2}]_{0}^{2} = 2k = 1, so k=1/2k = 1/2.

Find E(X)E(X). E(X)=∫02xβ‹…x2 dx=∫02x22 dx=86=43E(X) = \int_{0}^{2} x \cdot \frac{x}{2} \, dx = \int_{0}^{2} \frac{x^2}{2} \, dx = \frac{8}{6} = \frac{4}{3}.

Find E(X2)E(X^2). E(X2)=∫02x32 dx=168=2E(X^2) = \int_{0}^{2} \frac{x^3}{2} \, dx = \frac{16}{8} = 2.

Find Var(X)\text{Var}(X). Var(X)=2βˆ’(4/3)2=2βˆ’16/9=(18βˆ’16)/9=2/9\text{Var}(X) = 2 - (4/3)^2 = 2 - 16/9 = (18-16)/9 = 2/9.

Find SD. Οƒ=2/9=2/3\sigma = \sqrt{2/9} = \sqrt{2}/3.

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 kk is the most common slip.

Using f(x)f(x) as probability. f(2)=0.3f(2) = 0.3 does not mean P(X=2)=0.3P(X = 2) = 0.3. The pdf is a density, not a probability.

Wrong variance formula. Var=E(X2)βˆ’[E(X)]2\text{Var} = E(X^2) - [E(X)]^2, not E(X2)βˆ’E(X)E(X^2) - E(X).

Forgetting the pdf inside E(X)E(X). E(X)=∫xf(x) dxE(X) = \int x f(x) \, dx, not ∫x dx\int x \, dx.

Wrong support. If f=0f = 0 outside [a,b][a, b], the integrals must be on [a,b][a, b], not (βˆ’βˆž,∞)(-\infty, \infty).

In one sentence

A continuous random variable XX is described by a probability density function f(x)f(x) that integrates to 1 over its support and is non-negative, with probabilities computed as definite integrals P(a≀X≀b)=∫fP(a \leq X \leq b) = \int f, expected value as E(X)=∫xf dxE(X) = \int x f \, dx, and variance as E(X2)βˆ’[E(X)]2E(X^2) - [E(X)]^2 where E(X2)=∫x2f dxE(X^2) = \int x^2 f \, dx.

Past exam questions, worked

Real questions from past QCAA papers on this dot point, with our answer explainer.

2024 QCAA-style P25 marksA continuous random variable $X$ has pdf $f(x) = k(4 - x^2)$ on $[-2, 2]$ and 0 elsewhere. (a) Find $k$. (b) Find $E(X)$. (c) Find $\text{Var}(X)$.
Show worked answer β†’

(a) Find kk. Normalisation: ∫f=1\int f = 1.

βˆ«βˆ’22k(4βˆ’x2) dx=2k∫02(4βˆ’x2) dx\int_{-2}^{2} k(4 - x^2) \, dx = 2k \int_{0}^{2} (4 - x^2) \, dx (by symmetry).

=2k[4xβˆ’x33]02=2k(8βˆ’83)=2kβ‹…163=32k3= 2k \left[ 4x - \frac{x^3}{3} \right]_{0}^{2} = 2k \left( 8 - \frac{8}{3} \right) = 2k \cdot \frac{16}{3} = \frac{32 k}{3}.

Set 32k3=1\frac{32k}{3} = 1: k=332k = \frac{3}{32}.

(b) Expected value. E(X)=βˆ«βˆ’22xβ‹…332(4βˆ’x2) dxE(X) = \int_{-2}^{2} x \cdot \frac{3}{32}(4 - x^2) \, dx.

The integrand x(4βˆ’x2)x(4 - x^2) is an odd function on a symmetric interval [βˆ’2,2][-2, 2], so the integral is 0. E(X)=0E(X) = 0.

(c) Variance. Need E(X2)E(X^2).

E(X2)=βˆ«βˆ’22x2β‹…332(4βˆ’x2) dx=332βˆ«βˆ’22(4x2βˆ’x4) dxE(X^2) = \int_{-2}^{2} x^2 \cdot \frac{3}{32}(4 - x^2) \, dx = \frac{3}{32} \int_{-2}^{2} (4 x^2 - x^4) \, dx.

By symmetry: =316∫02(4x2βˆ’x4) dx=316[4x33βˆ’x55]02= \frac{3}{16} \int_{0}^{2} (4 x^2 - x^4) \, dx = \frac{3}{16} \left[ \frac{4 x^3}{3} - \frac{x^5}{5} \right]_{0}^{2}.

Evaluate: =316(323βˆ’325)=316β‹…160βˆ’9615=316β‹…6415=192240=45= \frac{3}{16} \left( \frac{32}{3} - \frac{32}{5} \right) = \frac{3}{16} \cdot \frac{160 - 96}{15} = \frac{3}{16} \cdot \frac{64}{15} = \frac{192}{240} = \frac{4}{5}.

Var(X)=E(X2)βˆ’[E(X)]2=45βˆ’0=45\text{Var}(X) = E(X^2) - [E(X)]^2 = \frac{4}{5} - 0 = \frac{4}{5}.

Markers reward the normalisation calculation with symmetry shortcut, the odd-integrand observation for E(X)E(X), and the variance formula with correct arithmetic.

Related dot points