Skip to topic
    ← Back to course topics

    SD: Continuous random variables (CRVs) — AQA AS-Level Further Mathematics

    SD: Continuous random variables (CRVs) explained

    SD: Continuous random variables (CRVs) covers 8 specification points, including Understand and use a probability density… and Find the probability of an observation lying….

    Read the full explanation

    Open a point below for its explanation and revision guidance.

    Understand and use a probability density function, f(x), for a continuous distribution and understand the differences between discrete and continuous distributions.

    A continuous random variable takes values over an interval, so probability is area under the probability density function f(x), not a point mass. A valid pdf is non-negative and satisfies ∫ f(x) dx = 1 over its support. To use it, find P(a ≤ X ≤ b) by integrating f(x) from a to b; for a continuous variable P(X = a) = 0. The density f(x) is not a probability: it may exceed 1 because only areas give probabilities. A discrete distribution attaches probabilities to individual values and sums them over the required set, with total 1. A continuous distribution attaches probabilities to intervals and uses integration. This distinction changes the method: sums for discrete values, integrals for continuous intervals.

    Find the probability of an observation lying in a specified interval.

    To find P(a ≤ X ≤ b) for a continuous random variable, integrate the density f(x) between the limits a and b. Identify the correct piece of f if it is defined piecewise, and use the given support: outside it the density is zero, so probabilities there vanish. Remember P(X ≤ b) = P(X < b) because single points have zero probability, and P(X ≥ a) = 1 − P(X < a). Set up the definite integral carefully, integrate, then substitute the upper and lower limits and subtract. Check the answer lies between 0 and 1 and that it is consistent with a sketch of the region.

    Find the median and quartiles for a given probability density function, f(x).

    For a continuous random variable with density f(x), the median m is the value where the cumulative area reaches 0.5, so ∫ from the lower limit to m of f(x) dx = 0.5. The lower quartile Q₁ satisfies a cumulative area of 0.25 and the upper quartile Q₃ a cumulative area of 0.75. A reliable method is to build F(x), the cumulative distribution function, by integrating f piecewise over its support, then solve F(m) = 0.5, F(Q₁) = 0.25 and F(Q₃) = 0.75, checking each answer lies inside the support and that the total area equals 1. Where f is given piecewise, integrate over each interval in turn and carry the running total across the break points. Worked example: for f(x) = 2x on 0 ≤ x ≤ 1, F(x) = x², giving m = √0.5 ≈ 0.707, Q₁ = 0.5 and Q₃ = √0.75 ≈ 0.866, all within the support.

    Find the mean, variance and standard deviation for a given pdf, f(x). Know the formulae E(X) = ∫ x f(x) dx, E(X²) = ∫ x² f(x) dx, Var(X) = E(X²) − (E(X))²

    For a continuous random variable with pdf f(x) supported on an interval, the mean is the expected value E(X) = ∫ x f(x) dx, integrated over the support. The second moment is E(X²) = ∫ x² f(x) dx, again over the whole support. The variance follows from Var(X) = E(X²) − (E(X))², and the standard deviation is the positive square root of the variance. When f(x) is defined piecewise, split each integral over the pieces of the support and add the results. A common check is that the total area ∫ f(x) dx equals 1 before computing moments, and that a negative variance signals an arithmetic slip. Worked method: integrate x f(x) to get the mean, integrate x² f(x) to get the second moment, subtract the square of the mean, then take the square root.

    Understand the expectation and variance of linear functions of CRVs and know the formulae: E(aX + b) = aE(X) + b and Var(aX + b) = a^2 Var(X)

    For a continuous random variable X, a linear function aX + b shifts and rescales the distribution. The expectation transforms linearly: E(aX + b) = aE(X) + b, so adding b moves the mean by b and multiplying by a scales the mean by a. Variance behaves differently because it measures spread about the mean: adding a constant does not change spread, while multiplying by a scales the spread by |a| and the variance by a², giving Var(aX + b) = a²Var(X). For example, if E(X) = 4 and Var(X) = 9, then E(3X − 2) = 3(4) − 2 = 10 and Var(3X − 2) = 3² × 9 = 81. Note that the constant b never affects the variance, and a negative a still gives a positive a².

    Know the formula E(g(X)) = ∫ g(x) f(x) dx

    For a continuous random variable X with probability density function f(x), the expected value of a function g(X) is found by weighting g(x) by the density and integrating over the whole support: E(g(X)) = ∫ g(x) f(x) dx. The integral runs over the range where f(x) is non-zero, since f(x) is zero elsewhere. Setting g(x) = x recovers the mean E(X); setting g(x) = x² gives E(X²), from which Var(X) = E(X²) − [E(X)]² follows. For example, if f(x) = 2x on 0 ≤ x ≤ 1, then E(X²) = ∫₀¹ x²·2x dx = ∫₀¹ 2x³ dx = [x⁴/2]₀¹ = 1/2, giving Var(X) = 1/2 − (2/3)² = 1/18. Choose g and limits carefully before integrating.

    Find the mean, variance and standard deviation of functions of a continuous random variable such as E(5X^3), E(18X^{−3}), Var(6X^{−1})

    When a continuous random variable X has probability density function f(x), the expectation of any function g(X) is found by integrating g(x)f(x) over the full range of X, so E(5X³) = ∫5x³f(x)dx and E(18X⁻³) = ∫18x⁻³f(x)dx, each taken across the whole support of f. To obtain a variance of a function, first compute E(g(X)) and E([g(X)]²), then use Var(g(X)) = E([g(X)]²) − [E(g(X))]². For Var(6X⁻¹), set g(x) = 6x⁻¹, so you need ∫(6x⁻¹)²f(x)dx = ∫36x⁻²f(x)dx and the square of ∫6x⁻¹f(x)dx. The standard deviation is the positive square root of the variance. Always integrate over the entire stated range and check the pdf integrates to 1 first.

    Know that if X and Y are independent (discrete or continuous) random variables then E(X + Y) = E(X) + E(Y) and Var(X + Y) = Var(X) + Var(Y)

    Independence is the condition that makes these two results work. The expectation result is general: for any two random variables with finite expectations, E(X + Y) = E(X) + E(Y), whether or not they are independent. The variance result is not general: Var(X + Y) = Var(X) + Var(Y) only when X and Y are independent. The statement applies to both discrete and continuous variables, so the same rules hold whether you work with a probability mass function or a probability density function. A useful check: Var(X + Y) = Var(X) + Var(Y) + 2Cov(X, Y), and independence forces Cov(X, Y) = 0. For example, if X has E(X) = 3, Var(X) = 4 and Y has E(Y) = 5, Var(Y) = 1 with X and Y independent, then E(X + Y) = 8 and Var(X + Y) = 5.

    Your focus

    1. Check that a proposed function satisfies the pdf conditions of non-negativity and total area 1
    2. Calculate a continuous probability by integrating f(x) over a stated interval
    3. Contrast the summation method for discrete distributions with integration for continuous distributions
    Show all 24 objectives
    1. Set up and evaluate a definite integral to find the probability of an interval.
    2. Handle piecewise densities and the support of the distribution correctly.
    3. Verify that a calculated probability is consistent and lies between 0 and 1.
    4. Construct the cumulative distribution function for a given probability density function
    5. Solve cumulative equations to locate the median and both quartiles
    6. Check that calculated values lie within the support and that the total area equals 1
    7. Calculate E(X) for a continuous random variable from its pdf
    8. Calculate Var(X) and the standard deviation using the second moment formula
    9. Apply the moment formulae correctly to piecewise pdfs over their full support
    10. State and apply E(aX + b) = aE(X) + b to a continuous random variable.
    11. State and apply Var(aX + b) = a²Var(X) to a continuous random variable.
    12. Explain why the additive constant b does not change the variance.
    13. State the formula E(g(X)) = ∫ g(x) f(x) dx for a continuous random variable.
    14. Apply the formula with suitable choices of g(x) and correct limits.
    15. Use E(X²) together with [E(X)]² to calculate the variance of X.
    16. Calculate E(g(X)) for a given function g by integrating g(x)f(x) over the support.
    17. Derive Var(g(X)) using E([g(X)]²) − [E(g(X))]².
    18. Obtain the standard deviation of a function as the positive square root of its variance.
    19. State the addition rules for expectation and variance of independent random variables.
    20. Explain why the variance rule needs independence while the expectation rule does not.
    21. Apply the rules correctly to discrete and continuous cases in a multiple-choice setting.

    SD: Continuous random variables (CRVs) exam tips

    Marking Points
    • States that a valid pdf must be non-negative everywhere and integrate to 1 over its support
    • Finds P(a ≤ X ≤ b) as the definite integral of f(x) from a to b
    • States that P(X = a) = 0 for any single value a in a continuous distribution
    • Explains that f(x) is a density, not a probability, so it may take values greater than 1
    • Distinguishes discrete summation of point probabilities from continuous integration over intervals
    • Sets up a definite integral of f(x) between the interval endpoints as the required probability.
    • Selects the correct expression for f when the density is defined piecewise across the interval.
    • Uses the support of the distribution so that the density is taken as zero outside its range.
    • Applies P(X ≥ a) = 1 − P(X < a) when a complementary interval is easier to integrate.
    • Evaluates the definite integral by substituting limits and confirms the result lies between 0 and 1.
    • Builds the cumulative distribution function by integrating the density across its support before solving for the required probability level
    • Solves the cumulative equation set to 0.5 to obtain the median and to 0.25 and 0.75 to obtain the lower and upper quartiles
    • Carries the running cumulative area correctly across break points when the density is defined piecewise
    • Verifies that each calculated value lies inside the support of the density and rejects values outside it
    • Confirms the total area under the density equals 1 as a check on the cumulative function
    • Sets up the mean as the integral of x f(x) over the full support
    • Evaluates the second moment as the integral of x² f(x) over the full support
    • Applies Var(X) = E(X²) − (E(X))² with the computed moments
    • Takes the positive square root of the variance to obtain the standard deviation
    • Splits integrals correctly when f(x) is defined piecewise across its support
    • Applies E(aX + b) = aE(X) + b by multiplying the given mean by a and then adding b.
    • Applies Var(aX + b) = a²Var(X) by squaring the multiplier a and multiplying by the given variance.
    • Recognises that the additive constant b leaves the variance unchanged because it does not alter spread.
    • Squares a negative multiplier so that the resulting variance stays positive.
    • Sets up the integral of g(x) multiplied by the density f(x) over the support of X.
    • Uses the correct limits, taking only the interval where f(x) is non-zero.
    • Evaluates the definite integral correctly to obtain E(g(X)).
    • Selects g(x) = x² to find E(X²) and combines it with [E(X)]² to obtain the variance.
    • Integrates the product of the function and the pdf over the full support to obtain the required expectation.
    • Squares the function before integrating to obtain the second moment E([g(X)]²).
    • Applies Var(g(X)) = E([g(X)]²) − [E(g(X))]² rather than Var(X) directly.
    • Takes the positive square root of the variance to give the standard deviation of the function.
    • States that E(X + Y) = E(X) + E(Y) holds for independent discrete or continuous random variables and, more generally, whenever the expectations exist
    • States that Var(X + Y) = Var(X) + Var(Y) requires independence of X and Y
    • Uses Var(X + Y) = Var(X) + Var(Y) + 2Cov(X, Y) and notes that independence makes the covariance term zero
    • Applies the results to a numerical example, adding expectations and adding variances only when independence is given
    • Recognises that adding standard deviations rather than variances is incorrect
    • Distinguishes the always-true expectation rule from the independence-dependent variance rule
    Examiner Tips
    • 💡Check the two defining conditions, non-negativity and total area 1, before using any candidate pdf
    • 💡Sketch f(x) and shade the required interval so the integration limits are explicit
    • 💡Use P(X = a) = 0 to replace < with ≤ in continuous interval probabilities where needed
    • 💡Sketch f(x) and mark the interval to confirm the correct limits and piece of the density.
    • 💡Use the complement 1 − P(X < a) when the required region is awkward to integrate directly.
    • 💡State the definite integral explicitly before evaluating so method marks are visible.
    • 💡Work out the cumulative distribution function first, then evaluate it at the candidate values offered rather than solving from scratch.
    • 💡For each option, substitute into your cumulative expression and compare with 0.5, 0.25 or 0.75 as the question requires.
    • 💡When the density is piecewise, identify which interval contains each quartile before testing a value.
    • 💡Reject any option outside the support of the density and sanity-check against a total area of 1.
    • 💡Write down the limits of integration from the support of f(x) before evaluating any integral
    • 💡Keep exact fractions through the calculation and only round at the final stage
    • 💡Check the variance is non-negative as a quick arithmetic check before taking the square root
    • 💡Write the two formulae side by side before substituting so the mean and variance rules are not confused.
    • 💡Square the multiplier for variance first, then multiply by Var(X), keeping the additive constant out entirely.
    • 💡Check the sign and size of your answer: a variance must be non-negative and grows with the square of the scaling factor.
    • 💡Write down f(x) and its support first so the correct limits are clear before integrating.
    • 💡Check that the density integrates to 1 over its support as a quick consistency check.
    • 💡Keep exact fractions through the working and only round at the final stage to avoid accumulating error.
    • 💡Write down the integrals explicitly with limits before evaluating, so partial-credit method marks are visible.
    • 💡Check the pdf integrates to 1 over its range as a quick sanity check before computing moments.
    • 💡Keep exact fractions or surds until the final standard deviation, then round only if asked.
    • 💡Read the stem for the word independent before adding variances.
    • 💡Write the covariance identity Var(X + Y) = Var(X) + Var(Y) + 2Cov(X, Y) to justify why independence matters.
    • 💡Keep expectations and variances separate; never add standard deviations directly.
    Common Mistakes
    • Treats f(x) as a probability and expects every value to lie between 0 and 1; correct this by explaining that f(x) is a density and only integrated areas give probabilities
    • Adds probabilities at individual points for a continuous variable; replace this with integration of f(x) over the required interval
    • Assumes P(X = a) can be positive for a continuous variable; state instead that single-point probability is zero
    • Ignores the requirement that f(x) is non-negative and integrates to 1 before using a function as a pdf
    • Substitutes the limits before integrating; integrate first, then apply the limits to the antiderivative.
    • Omits the lower limit when subtracting; subtract the value at the lower limit from the value at the upper limit.
    • Uses the wrong piece of a piecewise density; match the expression to the interval being integrated.
    • Reports a probability above 1 or below 0; recheck the integration and the limits against a sketch.
    • Sets the density itself equal to 0.5 rather than the cumulative area; integrate first and then solve the cumulative equation
    • Ignores the piecewise structure and integrates a single expression over the whole range; integrate interval by interval and add the areas
    • Accepts a root that lies outside the support; check each solution against the stated interval and discard impossible values
    • Forgets to check the total area equals 1; confirm the cumulative function reaches 1 at the upper limit of the support
    • Computes the variance as E(X²) minus E(X) rather than minus the square of E(X); subtract (E(X))² instead
    • Integrates over only part of the support; integrate over the whole support, splitting piecewise definitions where necessary
    • Gives a negative standard deviation; take the positive square root of the variance
    • Forgets to check that the total area under f(x) equals 1 before computing moments; verify the pdf first
    • Adds b to the variance as well as to the mean; keep b out of the variance because a shift does not change spread.
    • Uses a rather than a² when rescaling the variance; square the multiplier because variance is measured in squared units.
    • Treats a negative multiplier as producing a negative variance; square it so the variance stays positive.
    • Integrates g(x) alone and omits the density f(x); weight g(x) by f(x) inside the integral.
    • Uses limits outside the support where f(x) is zero; restrict the integral to the interval where the density is non-zero.
    • Forgets to square the mean when finding variance; subtract [E(X)]² from E(X²) rather than E(X).
    • Integrates only part of the support of the pdf; use the whole stated range of X.
    • Computes Var(X) and scales it by a constant instead of forming the second moment of the function; apply the definition to g(X) directly.
    • Applies a linear scaling rule such as Var(aX) = a²Var(X) to a nonlinear function; recompute E([g(X)]²) and E(g(X)) from scratch.
    • Adds standard deviations instead of variances; add the variances and then take the square root only if a standard deviation is required
    • Applies Var(X + Y) = Var(X) + Var(Y) without checking independence; confirm independence first, otherwise include the covariance term
    • Assumes E(X + Y) = E(X) + E(Y) needs independence; the expectation result holds more generally
    • Treats the rule as applying only to discrete variables; the statement covers discrete and continuous variables alike