Salta al contenuto
Note per Studenti Distribution Function Report

Distribution Function

In questa pagina 3

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. XX is the function FX:R→R,x↦FX(x)≜P(X≤x).F_X : \mathbb{R} \to \mathbb{R}, \qquad x \mapsto F_X(x) \triangleq P(X \le x).

Remark. The discrete density is defined as a function pX:X→Rp_X : \mathcal{X}\to\mathbb{R}, while the DF is defined on all of R\mathbb{R}, i.e. FX:R→RF_X : \mathbb{R}\to\mathbb{R}.

Representation 1 of the DF

FX(x)=P(X≤x)=P({ω:X(ω)≤x})=P(X−1((−∞,x]))=∑xk∈Xxk≤xpX(xk).F_X(x) = P(X \le x) = P(\{\omega : X(\omega) \le x\}) = P\big(X^{-1}((-\infty, x])\big) = \sum_{\substack{x_k \in \mathcal{X}\\ x_k \le x}} p_X(x_k). As expected, the DF FXF_X can be computed from the density pXp_X. (The figure on the page shows the set X−1((−∞,x])X^{-1}((-\infty,x]) in Ω\Omega: the union of the level sets of all alphabet points xk≤xx_k \le x.)

Example. DF of X∼Bin(2,13)X \sim \text{Bin}(2, \frac13). The density is pX(0)=49p_X(0) = \frac49, pX(1)=49p_X(1) = \frac49, pX(2)=19p_X(2) = \frac19, so FX(x)={0x<0490≤x<1891≤x<21x≥2.F_X(x) = \begin{cases} 0 & x < 0 \\ \frac49 & 0 \le x < 1 \\ \frac89 & 1 \le x < 2 \\ 1 & x \ge 2. \end{cases}

 F(x)
  1  -|                    o------------
 8/9 -|            o-------
 4/9 -|     o------
     0 +-----+---+---+---> x
             0   1   2

DF of a b(p)b(p) r.v. (Bernoulli): FX(x)=0F_X(x) = 0 for x<0x < 0, 1−p1-p for 0≤x<10 \le x < 1, and 11 for x≥1x \ge 1.

Nota bene. The information contained in pX(⋅)p_X(\cdot) and in FX(⋅)F_X(\cdot) is identical: from pXp_X it is possible to derive FXF_X and vice versa. We already expressed FXF_X in terms of pXp_X; on the other hand it is easy to verify that for all xk∈Xx_k \in \mathcal{X} pX(xk)=FX(xk)−FX(xk−),p_X(x_k) = F_X(x_k) - F_X(x_k^-), where FX(xk−)F_X(x_k^-) is the left limit. That is, the density at xk∈Xx_k \in \mathcal{X} coincides with the jump of the DF at xkx_k.

Representation 2 of the DF

Define the unit step function 1(x)≜{1x≥00x<0.\mathbb{1}(x) \triangleq \begin{cases} 1 & x \ge 0 \\ 0 & x < 0. \end{cases} Notice that 1(x)\mathbb{1}(x) has been defined right continuous (1(0)=1\mathbb{1}(0)=1); this is essential for what follows. (In Signals and Systems the unit step at x=0x=0 is usually either not defined or taken to be 12\frac12.)

Then FX(x)=∑xk≤xpX(xk)=∑xk∈XpX(xk) 1(x−xk).F_X(x) = \sum_{x_k \le x} p_X(x_k) = \sum_{x_k \in \mathcal{X}} p_X(x_k)\,\mathbb{1}(x - x_k). For X={x1,x2,x3}\mathcal{X} = \{x_1, x_2, x_3\} the DF is a staircase: it is 00 for x<x1x < x_1, jumps by pX(x1)p_X(x_1) at x1x_1, by pX(x2)p_X(x_2) at x2x_2, by pX(x3)p_X(x_3) at x3x_3, and reaches 11.

Taking the generalised derivative one gets the following representation for the density: fX(x)=ddxFX(x)=∑xk∈XpX(xk) δ(x−xk)f_X(x) = \frac{d}{dx}F_X(x) = \sum_{x_k \in \mathcal{X}} p_X(x_k)\,\delta(x - x_k) (the generalised density of the discrete r.v.), where δ\delta is the Dirac delta.

Properties of FXF_X

Properties 1 and 2 are proved for the case ∣X∣|\mathcal{X}| finite.

  1. FX(−∞)=lim⁡x→−∞FX(x)=0F_X(-\infty) = \lim_{x\to-\infty} F_X(x) = 0. Proof. FX(x)=∑xk≤xpX(xk)=0F_X(x) = \sum_{x_k \le x} p_X(x_k) = 0 for all x<min⁡{xk∈X}x < \min\{x_k \in \mathcal{X}\}.

  2. FX(+∞)=lim⁡x→+∞FX(x)=1F_X(+\infty) = \lim_{x\to+\infty}F_X(x) = 1. Proof. FX(x)=∑xk≤xpX(xk)=∑xk∈XpX(xk)=1F_X(x) = \sum_{x_k \le x}p_X(x_k) = \sum_{x_k\in\mathcal{X}} p_X(x_k) = 1 for all x≥max⁡{xk∈X}x \ge \max\{x_k \in \mathcal{X}\}.

  3. u≤v⇒FX(u)≤FX(v)u \le v \Rightarrow F_X(u) \le F_X(v) (non-decreasing). Proof. Trivially ∑xk≤upX(xk)≤∑xk≤vpX(xk)\sum_{x_k \le u}p_X(x_k) \le \sum_{x_k\le v}p_X(x_k) for u≤vu \le v.

Remark. By its very definition FX(x)=P(X≤x)F_X(x) = P(X\le x), and recalling the representation FX(x)=∑xk≤xpX(xk)F_X(x) = \sum_{x_k\le x}p_X(x_k), it follows immediately that FX(x)F_X(x) is constant in between the values xk<x<xk+1x_k < x < x_{k+1} and it has jumps at the xkx_k's, where it is right continuous.

  1. P(a<X≤b)=FX(b)−FX(a)P(a < X \le b) = F_X(b) - F_X(a). Proof. Use the disjoint decomposition [X∈(−∞,a]]∪[X∈(a,b]]=[X∈(−∞,b]][X \in (-\infty, a]] \cup [X \in (a, b]] = [X \in (-\infty, b]], or in compact notation [X≤a]∪[a<X≤b]=[X≤b][X \le a] \cup [a < X \le b] = [X \le b]. Taking probabilities, recalling that the events on the left are disjoint, FX(a)+P(a<X≤b)=FX(b)F_X(a) + P(a < X \le b) = F_X(b). □\square

  2. P(X=a)=FX(a)−FX(a−)P(X = a) = F_X(a) - F_X(a^-). Proof. Use the disjoint decomposition [X<a]∪[X=a]=[X≤a][X < a] \cup [X = a] = [X \le a], recalling that P(X<a)=lim⁡h↓0P(X≤a−h)=lim⁡h↓0FX(a−h)=FX(a−).□P(X < a) = \lim_{h\downarrow 0} P(X \le a - h) = \lim_{h\downarrow0}F_X(a-h) = F_X(a^-). \quad \square

  3. P(a≤X≤b)=FX(b)−FX(a−)=FX(b)−FX(a)+P(X=a)P(a \le X \le b) = F_X(b) - F_X(a^-) = F_X(b) - F_X(a) + P(X = a). (Left as an exercise on the page; it follows from 4 and 5.)

Related notes: Discrete Random VariablesA discrete random variable is a measurable map from a probability space to a discrete set of real numbers; it induces a probability measure on its alphabet, described by the discrete density p_X.Discrete Random Variables →, Geometric Random VariableThe geometric random variable counts the trial at which the first success occurs in independent binary trials; it has infinite alphabet, density (1-p)^(k-1) p, mean 1/p and the memoryless property.Geometric Random Variable → (a DF with infinitely many jumps), Bernoulli, Uniform and Binomial Random VariablesBernoulli, discrete uniform and binomial random variables are the basic families with finite alphabet; the binomial counts successes in n independent identical trials, and when independence or constant probability fails (urns without replacement) the hypergeometric density appears instead.Bernoulli, Uniform and Binomial Random Variables →.

Versione ripasso

Definition. FX(x)=P(X≤x)F_X(x)=P(X\le x), FX:R→RF_X:\mathbb{R}\to\mathbb{R}. For discrete XX: FX(x)=∑xk≤xpX(xk)=∑xk∈XpX(xk) 1(x−xk),F_X(x)=\sum_{x_k\le x}p_X(x_k)=\sum_{x_k\in\mathcal{X}}p_X(x_k)\,\mathbb{1}(x-x_k), with 1(x)=1\mathbb{1}(x)=1 for x≥0x\ge0 (right-continuous step). Generalised density: fX(x)=∑kpX(xk) δ(x−xk)f_X(x)=\sum_k p_X(x_k)\,\delta(x-x_k).

pXp_X and FXF_X carry the same information: pX(xk)=FX(xk)−FX(xk−)p_X(x_k)=F_X(x_k)-F_X(x_k^-) = jump of FXF_X at xkx_k.

Properties.

  1. FX(−∞)=0F_X(-\infty)=0; 2. FX(+∞)=1F_X(+\infty)=1; 3. non-decreasing; constant between alphabet points, jumps at xkx_k, right continuous.
  2. P(a<X≤b)=FX(b)−FX(a)P(a<X\le b)=F_X(b)-F_X(a) (from [X≤a]∪[a<X≤b]=[X≤b][X\le a]\cup[a<X\le b]=[X\le b], disjoint).
  3. P(X=a)=FX(a)−FX(a−)P(X=a)=F_X(a)-F_X(a^-), using P(X<a)=lim⁡h↓0FX(a−h)=FX(a−)P(X<a)=\lim_{h\downarrow0}F_X(a-h)=F_X(a^-).
  4. P(a≤X≤b)=FX(b)−FX(a−)=FX(b)−FX(a)+P(X=a)P(a\le X\le b)=F_X(b)-F_X(a^-)=F_X(b)-F_X(a)+P(X=a).

Example: X∼Bin(2,13)X\sim\text{Bin}(2,\frac13): FX=0, 49, 89, 1F_X=0,\ \frac49,\ \frac89,\ 1 on (−∞,0),[0,1),[1,2),[2,∞)(-\infty,0),[0,1),[1,2),[2,\infty).

Typical mistakes: using FX(a)F_X(a) instead of FX(a−)F_X(a^-) when the endpoint aa is included; forgetting that FXF_X is right (not left) continuous.

Teoria collegata