The distribution function (DF) is an alternative to the discrete density to describe a random variable.
Definition. The distribution function (DF) of the r.v. X is the function
FX:R→R,x↦FX(x)≜P(X≤x).
Remark. The discrete density is defined as a function pX:X→R, while the DF is defined on all of R, i.e. FX:R→R.
Representation 1 of the DF
FX(x)=P(X≤x)=P({ω:X(ω)≤x})=P(X−1((−∞,x]))=xk∈Xxk≤x∑pX(xk).
As expected, the DF FX can be computed from the density pX. (The figure on the page shows the set X−1((−∞,x]) in Ω: the union of the level sets of all alphabet points xk≤x.)
Example. DF of X∼Bin(2,31). The density is pX(0)=94, pX(1)=94, pX(2)=91, so
FX(x)=⎩⎨⎧094981x<00≤x<11≤x<2x≥2.
DF of a b(p) r.v. (Bernoulli): FX(x)=0 for x<0, 1−p for 0≤x<1, and 1 for x≥1.
Nota bene. The information contained in pX(⋅) and in FX(⋅) is identical: from pX it is possible to derive FX and vice versa. We already expressed FX in terms of pX; on the other hand it is easy to verify that for all xk∈XpX(xk)=FX(xk)−FX(xk−),
where FX(xk−) is the left limit. That is, the density at xk∈X coincides with the jump of the DF at xk.
Representation 2 of the DF
Define the unit step function1(x)≜{10x≥0x<0.
Notice that 1(x) has been defined right continuous (1(0)=1); this is essential for what follows. (In Signals and Systems the unit step at x=0 is usually either not defined or taken to be 21.)
Then
FX(x)=xk≤x∑pX(xk)=xk∈X∑pX(xk)1(x−xk).
For X={x1,x2,x3} the DF is a staircase: it is 0 for x<x1, jumps by pX(x1) at x1, by pX(x2) at x2, by pX(x3) at x3, and reaches 1.
Taking the generalised derivative one gets the following representation for the density:
fX(x)=dxdFX(x)=xk∈X∑pX(xk)δ(x−xk)
(the generalised density of the discrete r.v.), where δ is the Dirac delta.
Properties of FX
Properties 1 and 2 are proved for the case ∣X∣ finite.
FX(−∞)=limx→−∞FX(x)=0.
Proof.FX(x)=∑xk≤xpX(xk)=0 for all x<min{xk∈X}.
FX(+∞)=limx→+∞FX(x)=1.
Proof.FX(x)=∑xk≤xpX(xk)=∑xk∈XpX(xk)=1 for all x≥max{xk∈X}.
u≤v⇒FX(u)≤FX(v) (non-decreasing).
Proof. Trivially ∑xk≤upX(xk)≤∑xk≤vpX(xk) for u≤v.
Remark. By its very definition FX(x)=P(X≤x), and recalling the representation FX(x)=∑xk≤xpX(xk), it follows immediately that FX(x) is constant in between the values xk<x<xk+1 and it has jumps at the xk's, where it is right continuous.
P(a<X≤b)=FX(b)−FX(a).
Proof. Use the disjoint decomposition [X∈(−∞,a]]∪[X∈(a,b]]=[X∈(−∞,b]], or in compact notation [X≤a]∪[a<X≤b]=[X≤b]. Taking probabilities, recalling that the events on the left are disjoint, FX(a)+P(a<X≤b)=FX(b). □
P(X=a)=FX(a)−FX(a−).
Proof. Use the disjoint decomposition [X<a]∪[X=a]=[X≤a], recalling that
P(X<a)=h↓0limP(X≤a−h)=h↓0limFX(a−h)=FX(a−).□
P(a≤X≤b)=FX(b)−FX(a−)=FX(b)−FX(a)+P(X=a).
(Left as an exercise on the page; it follows from 4 and 5.)
Definition.FX(x)=P(X≤x), FX:R→R. For discrete X:
FX(x)=xk≤x∑pX(xk)=xk∈X∑pX(xk)1(x−xk),
with 1(x)=1 for x≥0 (right-continuous step). Generalised density: fX(x)=∑kpX(xk)δ(x−xk).
pX and FX carry the same information: pX(xk)=FX(xk)−FX(xk−) = jump of FX at xk.
Properties.
FX(−∞)=0; 2. FX(+∞)=1; 3. non-decreasing; constant between alphabet points, jumps at xk, right continuous.