Home page for accesible maths 2.4 Continuous random variables

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.4.1 The probability density function

Recall (Equation (2.1)) that the CDF, FR(r), of a discrete random variable, R, is the sum of all of the relevant probabilities, i=-int(r)pR(i).

Analogously the (probability) density function, pdf, fX(x) of a continuous random variable, X, is defined as

fX(x)=ddxFX(x),

so that it satisfies

FX(x)=-xfX(s)ds. (2.2)

For example

𝖯(X10)=FX(10)=-10fX(s)ds.

Note that s is a dummy variable; one could use any letter for the integrand in (2.2), except x.

Two frequent student mistakes in Math230 are

  1. 1.

    Writing FX(x)=fX(x)dx; i.e. writing the indefinite integral instead of a definite integral.

  2. 2.

    Writing FX(x)=-xfX(x)dx, which is mathematical nonsense.

Figure 2.3: Link, Caption: The probability density function corresponding to the cdf shown in Figure 2.2 (Link).

Figure 2.3 (Link) shows the pdf for the continuous random variable for which the cdf is shown in Figure 2.2 (Link). Notice that the pdf is zero in regions where there are no outcomes, in this example for x0. Note also that it exceeds 1 in some places, so it cannot be interpreted as a probability despite some of the mathematical properties of fX(x) that we shall see below being very similar to those of the probability mass function.

Properties of fX(x):

  1. 1.

    Positivity: fX(x)0 for all x, Quiz: Why?

  2. 2.

    Unit-integrability: -fX(x)dx=1. Quiz: Why?

The probability that an observation on a continuous random variable X lies in the interval (a,b] may be calculated as the area under the curve of fX(x) between x=a and x=b. In the folllowing figure, a=-0.5 and b=2.

Unnumbered Figure: Link

More formally:

𝖯(a<Xb)=FX(b)-FX(a)=-bfX(s)ds--afX(s)ds=abfX(s)ds.

The above can be extended to the probability of any set A given by

𝖯(XA)=sAfX(s)ds. (2.3)

e.g. 𝖯(|X|>1)=--1fX(s)ds+1fX(s)ds.