Continuous Random Variables (Cambridge (CIE) A Level Maths: Probability & Statistics 2): Flashcards

Exam code: 9709

1/21

0Still learning

Know0

  • Define probability density function.

Cards in this collection (21)

  • Define probability density function.

    A probability density function, written \text{f}(x), is a function used to model the probabilities of a continuous random variable.

    Probability is represented by area under the graph of y = \text{f}(x) rather than by the height of the curve.

    That is why a density can exceed 1 while a probability never can.

  • Fill in the two conditions a function must satisfy to be a probability density function:

    \text{f}(x) \_\_\_\_\_\_ 0 for all values of x

    \int_{-\infty}^{\infty} \text{f}(x) \text{ d}x = \_\_\_\_\_\_

    The completed conditions are:

    \text{f}(x) \ge 0 for all values of x

    \int_{-\infty}^{\infty} \text{f}(x) \text{ d}x = 1

    These are the continuous versions of the two conditions on a discrete distribution, that no probability is negative and that they all total 1.

    A question asking you to show a function can be a density function is asking you to check both.

  • True or False?

    Every probability from a probability density function has to be found by integrating.

    False.

    The probability is the area under the graph, so whenever that area is a triangle or a rectangle you can simply work it out.

    A quick sketch is worth doing for that reason alone, and it may also reveal symmetry that saves further work.

  • For a continuous random variable, what is \text{P}(X = n), and what follows?

    It is zero for every value of n, because the area under the graph between n and itself is zero.

    It follows that the endpoints contribute nothing, so \text{P}(a \le X \le b) = \text{P}(a < X < b).

    Strict and weak inequalities can therefore be used interchangeably throughout, which is never true of a discrete variable.

  • A question gives \text{P}(0 \le X \le a) = 0.09 and asks for a. How do you find it?

    Integrate the density from 0 to a, leaving a as an unknown limit, then set the result equal to 0.09 and solve.

    The integral produces an expression in a, so the probability question turns into an ordinary equation.

    Check at the end that the value you get actually lies in the range over which the density is defined.

  • Complete the equation defining the median m of a continuous random variable:

    \int_{-\infty}^{m} \text{f}(x) \text{ d}x = \_\_\_\_\_\_

    The completed equation is:

    \int_{-\infty}^{m} \text{f}(x) \text{ d}x = 0.5

    The median is the value with half the area to its left and half to its right, so \text{P}(X < m) = \text{P}(X > m) = 0.5.

    Integrating from m upwards and setting that equal to 0.5 works equally well, and one of the two is usually easier.

  • How do you find the lower quartile or the 15th percentile of a continuous random variable?

    Exactly as for the median, but with a different area: the lower quartile L satisfies \text{P}(X \le L) = 0.25.

    The 15th percentile k satisfies \text{P}(X \le k) = 0.15, and any percentile works the same way.

    Each is an equation in one unknown limit, solved by integrating up to that limit.

  • What is the mode of a continuous random variable, and how do you find it?

    The mode is the value of x at which \text{f}(x) is greatest.

    Where the graph is a curve with a maximum, differentiate and solve \text{f}'(x) = 0.

    If that gives more than one solution, use the second derivative or check the endpoints, and discard any value outside the range where the density is defined.

  • When can the median be written down without any integration at all?

    When the graph of y = \text{f}(x) is symmetrical.

    The axis of symmetry then splits the area into two equal halves, so the median sits on it, halfway between the lower and upper limits.

    A sketch is what reveals this, and it turns a page of integration into one line.

  • Complete the mean of a continuous random variable with density \text{f}(x):

    \text{E}(X) = \int_{-\infty}^{\infty} \_\_\_\_\_\_ \text{ d}x

    The completed formula is:

    \text{E}(X) = \int_{-\infty}^{\infty} x\,\text{f}(x) \text{ d}x

    Each value is weighted by the density at that value and then totalled, which is what an integral does.

    It is the continuous version of \Sigma x \text{P}(X = x), with the sum replaced by an integral.

  • How do you find \text{E}(\text{g}(X)) for a continuous random variable?

    Integrate \text{g}(x)\,\text{f}(x) over the whole range, so \text{E}(\text{g}(X)) = \int_{-\infty}^{\infty} \text{g}(x)\,\text{f}(x) \text{ d}x.

    The density is left untouched: it is only the quantity being averaged that the function is applied to.

    Taking \text{g}(x) = x^{2} gives \text{E}(X^{2}), which is the case you need most often.

  • Complete the variance of a continuous random variable:

    \text{Var}(X) = \int_{-\infty}^{\infty} x^{2}\,\text{f}(x) \text{ d}x - \_\_\_\_\_\_

    The completed formula is:

    \text{Var}(X) = \int_{-\infty}^{\infty} x^{2}\,\text{f}(x) \text{ d}x - \left[\text{E}(X)\right]^{2}

    The integral is \text{E}(X^{2}), so this is the familiar mean of the squares minus the square of the mean.

    The standard deviation is the square root of the result.

  • What is the difference between \text{E}(X^{2}) and \left[\text{E}(X)\right]^{2}?

    \text{E}(X^{2}) is the mean of the squares: square the variable first, then integrate against the density.

    \left[\text{E}(X)\right]^{2} is the square of the mean: integrate first, then square the single number you get.

    The order is what separates them, and doing it the wrong way round is the usual reason a variance comes out negative.

  • For \text{f}(x) = 1.5x^{2}(1 - 0.5x) on 0 \le x \le 2, how do you get to the variance?

    Work out \text{E}(X) = 1.2 by integrating x\,\text{f}(x), then \text{E}(X^{2}) = 1.6 by integrating x^{2}\,\text{f}(x).

    Subtracting gives

    \text{Var}(X) = 1.6 - 1.2^{2} = 1.6 - 1.44 = 0.16

    Both integrals run only over the interval where the density is non-zero, since it contributes nothing elsewhere.

  • True or False?

    If the graph of the density function is symmetrical about x = a, then \text{E}(X) = a.

    True.

    The weighting either side of the axis of symmetry balances exactly, so the mean sits on that axis.

    Spotting it saves the whole integration for the mean, and it gives the median at the same time, since the two coincide for a symmetrical density.

  • Define continuous uniform distribution.

    The continuous uniform distribution, also called the rectangular distribution, has a density that is constant and non-zero over one interval and zero everywhere else.

    So every part of the interval is equally likely, and the graph of \text{f}(x) is a horizontal line segment.

    It is the simplest continuous distribution there is, and the one where no integration is ever needed.

  • For a uniform distribution on a \le x \le b, what is the height of the density?

    It is \frac{1}{b - a}.

    The area under the graph has to be 1, and the shape is a rectangle of width b - a, so the height must be the reciprocal of that width.

    A narrow interval therefore gives a tall density, which is how a density can exceed 1 without anything being wrong.

  • How do you find a probability for a continuous uniform distribution?

    Sketch the rectangle and work out the area of the part you want, which is just width multiplied by height.

    So \text{P}(2.5 \le X \le 3) for a density of 0.4 is 0.5 \times 0.4 = 0.2.

    Integration would give the same answer, but there is never any reason to use it here.

  • For a uniform distribution on a \le x \le b, fill in the mean and the variance:

    \text{E}(X) = \_\_\_\_\_\_

    \text{Var}(X) = \_\_\_\_\_\_

    The completed results are:

    \text{E}(X) = \frac{1}{2}(a + b)

    \text{Var}(X) = \frac{1}{12}(b - a)^{2}

    The mean is simply the midpoint, which is the axis of symmetry of the rectangle, and the median is the same value.

    The variance depends only on the width of the interval, not on where that interval sits.

  • True or False?

    A continuous uniform distribution has no mode.

    True.

    The mode is the value where the density is greatest, and here the density takes the same value everywhere on the interval.

    No single value is more likely than any other, so there is nothing for the mode to be.

  • A uniform density is 0.4 on a \le x \le 4. How do you find a?

    The total area must be 1, so 0.4 \times (4 - a) = 1, giving 4 - a = 2.5 and a = 1.5.

    The height and the width of the rectangle are reciprocals of one another, so knowing either one fixes the other.

    That single equation is enough whenever one endpoint or the height is missing.

Sign up to unlock flashcards

or