Docsity

Cumulative Distribution Function - Lecture Slides | ECE 313, Study notes of Statistics

Toggle sidebar
bg1
ECE 313 — Probability with Engineering Applications Fall 2000
Department of Electrical and Computer Engineering
University of Illinois at Urbana-Champaign 22.1
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1 of 44
Cumulative Distribution Function
lThe cumulative (probability) distribution
function or CDF of a random variable X is
denoted by F(u) or FX(u)
lDefinition: FX(u) = P{X ≤ u}, –∞ < u < ∞
lThe CDF is a real-valued function defined
for all real number values of its argument u
lCumulative because the value of the CDF
at u is the total probability mass from –∞
up to (and including) the point u
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2 of 44
CDF of a discrete random variable
lThe CDF of any discrete random variable
is a staircase function
lIf X takes on values u1, u2, … un, … with
probabilities p(u1), p(u2), … , p(un), …
then the CDF has
njumps whose heights are
p(u1), p(u2), … , p(un), …
nat locations u1, u2, … un, … respectively
and is flat in between the jumps
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3 of 44
CDF of a discrete random variable
lThe CDF of any discrete random variable
is a staircase function
lWe have defined the ui to be an increasing
sequence u1 < u2 < … < un < …
lFor all u in the range ui ≤ u < ui+1, FX(u)
has value
∑ p(uj)
j = 1
i
lFX(u) jumps in value by p(ui+1) at u = ui+1
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 4 of 44
Negative thoughts about the CDF
lThe CDF of a discrete random variable X
is far more cumbersome than the pmf
lThe CDF contains no information that we
could not have deduced from the pmf
lSo, why bother with the CDF at all?
lThe concept of the CDF of X is a very
general one that applies to every random
variable, discrete or continuous or mixed…
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5 of 44
The power of positive thinking
lThe concept of the CDF of X is a very
general one that applies to every random
variable, discrete or continuous or mixed…
lEvery random variable X has a CDF that is
defined in exactly the same way:
FX(u) = P{X ≤ u}, –∞ < u < ∞
lBut, discrete random variables have pmfs,
continuous ones have pdfs, etc …
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 6 of 44
More power of positive thinking
lCommon properties of random variables,
i.e. those shared by all random variables,
can be stated in terms of the CDF instead
of having a different formula for each type
of random variable
lThe CDF is a unifying concept for all kinds
of random variables
pf3
pf4
pf5
pf8

Partial preview of the text

Download Cumulative Distribution Function - Lecture Slides | ECE 313 and more Study notes Statistics in PDF only on Docsity!

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1 of 44

Cumulative Distribution Function

l The cumulative (probability) distribution function or CDF of a random variable X is denoted by F(u) or F X (u) l Definition: F X (u) = P{ X ≤ u}, –∞ < u < ∞ l The CDF is a real-valued function defined for all real number values of its argument u l Cumulative because the value of the CDF at u is the total probability mass from –∞ up to (and including) the point u ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2 of 44

CDF of a discrete random variable

l The CDF of any discrete random variable is a staircase function l If X takes on values u 1 , u 2 , … un, … with probabilities p(u 1 ), p(u 2 ), … , p(un), … then the CDF has n jumps whose heights are p(u 1 ), p(u 2 ), … , p(un), … n at locations u 1 , u 2 , … un, … respectively and is flat in between the jumps ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3 of 44

CDF of a discrete random variable

l The CDF of any discrete random variable is a staircase function l We have defined the ui to be an increasing sequence u 1 < u 2 < … < un < … l For all u in the range ui ≤ u < ui+1, F X (u) has value ∑ p(uj) j = 1

i

l F X (u) jumps in value by p(ui+1) at u = ui+

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 4 of 44

Negative thoughts about the CDF

l The CDF of a discrete random variable X is far more cumbersome than the pmf l The CDF contains no information that we could not have deduced from the pmf l So, why bother with the CDF at all? l The concept of the CDF of X is a very general one that applies to every random variable, discrete or continuous or mixed… ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5 of 44

The power of positive thinking

l The concept of the CDF of X is a very general one that applies to every random variable, discrete or continuous or mixed… l Every random variable X has a CDF that is defined in exactly the same way: F X (u) = P{ X ≤ u}, –∞ < u < ∞ l But, discrete random variables have pmfs, continuous ones have pdfs, etc … ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 6 of 44

More power of positive thinking

l Common properties of random variables, i.e. those shared by all random variables, can be stated in terms of the CDF instead of having a different formula for each type of random variable l The CDF is a unifying concept for all kinds of random variables

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 7 of 44

A more balanced viewpoint

l Using the general formulations of random variable properties via the CDF is often a messy job — use the pmf or pdf instead l Using the CDF as an intermediate step is very helpful in some types of calculations, and often simplifies these calculations l The CDF should be used sparingly and for stating general concepts only ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 8 of 44

CDF properties

l For any random variable X , F X (u) = P{ X ≤ u}, –∞ < u < ∞ l 0 ≤ F X (u) ≤ 1 l If a < b, then F X (a) ≤ F X (b) l F X (–∞) = 0 and F X (+∞) = 1 l If CDF is discontinuous at t, F X (t+) > F X (t–), and F X (t) equals F X (t+), the limiting value of F X (u) as u → t from the right ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 9 of 44

CDF properties (continued)

l If F X (u) is discontinuous at u = t, then F X (t+) – F X (t–) = jump in the value of F X (u) = P{ X = t} l If F X (u) is continuous at u = v, then F X (v) = F X (v+) = F X (v–) ⇒ P{ X = v} = 0 l P{ X ≤ u} = F X (u) = F X (u+) l P{ X > u} = 1 – F X (u) l P{ X < u} = F X (u–) l P{ X ≥ u} = 1 – F X (u–)

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 10 of 44

Expectation of a discrete RV

l E[ X ] = area above CDF to right of 0

  • area below CDF to left of 0

= ∫ [1 – F X (u)] du – ∫ F X (u) du

0

u

0

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 11 of 44

Expectation of an arbitrary RV

u

E[ X ] = ∫ [1 – F X (u)] du – ∫ F X (u) du

0

0

l The expected value E[ X ] of an arbitrary random variable X can be defined as

F X (u)

= blue area – orange area

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 12 of 44

Great expectations? Infinite ones?

E[ X ] = ∫ [1 – F X (u)] du – ∫ F X (u) du

0

0

l The expected value E[ X ] of an arbitrary random variable X can be defined as

l If both integrals are finite, then E[ X] is a finite number l If exactly one integral is infinite, some

authors say that E[ X ] is +∞ or – ∞

l If both integrals are infinite, then all the authors agree that E[ X ] is undefined

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 19 of 44

An exercise

l Supose that F X (u) is continuous at all u,

  • ∞ < u < ∞ l Exercise: Let s denote any number in the range 0 < s < 1. Show that for any continuous CDF F X (u), there must be at least one number t such that F X (t) = s l Can there be many t such that F (^) X (t) = s? What can be said about the set of numbers: {t: F X (t) = s}?

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 20 of 44

Continuous random variables

l Definition: A continuous random variable X is one whose CDF F X (u) is n continuous at all u, –∞ < u < ∞ n differentiable at all u (except possibly at a set of points u 1 < u 2 < … un < …) l More precisely, any finite-length interval contains at most finitely many points where F X (u) is not differentiable ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 21 of 44

Continuous but not differentiable?

l Do there exist continuous functions that are not differentiable? l Aren’t all continuous functions always differentiable?

u

F X (u)

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 22 of 44

Continuous RV ≠ discrete RV

l Definition: A continuous random variable X is one whose CDF F X (u) is n continuous at all u, –∞ < u < ∞ n differentiable at all u (except possibly at a set of points u 1 < u 2 < … un < …) l Note that the staircase CDF of a discrete random variable satisfies the second condition but not the first ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 23 of 44

Four kinds of random variables

l Discrete RVs have staircase CDFs l Continuous RVs have continuous CDFs that are differentiable for almost all u l Mixed RVs have piecewise differentiable CDFs (with positive slopes) and jump dscontinuities (see e.g. Fig. 4.1 of Ross) l Singular RVs have continuous CDFs that are non-differentiable almost everywhere ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 24 of 44

Diagrams of CDFs

Discrete RV

Continuous RV

Singular RV

Mixed RV

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 25 of 44

A sigh of relief…

l In this course, we consider only discrete and continuous random variables with a very occasional look at mixed random variables l We do not consider singular random variables at all

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 26 of 44

Don’t drink and derive…

l Definition: A continuous random variable X is one whose CDF F X (u) is n continuous at all u, –∞ < u < ∞ n differentiable at all u (except possibly at a set of points u 1 < u 2 < … un < …) l Rhetorical question: What’s the point of having a differentiable function if you don’t differentiate it? ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 27 of 44

The derivative of the CDF

l The derivative of the CDF of a continuous random variable X exists for almost all real numbers u l Definition: The probability density function (pdf) of a continuous random variable X is F X (u), if F X (u) is differentiable f X (u) = any number ≥ 0 if CDF is non-diff.

d du

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 28 of 44

Stupidest definition you’ve seen?

l Definition: The probability density function (pdf) of a continuous random variable X is

l What kind of definition is this where we can set f X (u) equal to any nonnegative number that we choose?

F X (u), if F X (u) is differentiable f X (u) = any number ≥ 0 if CDF is non-diff.

d du

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 29 of 44

It a’int as bad as it sounds. Honest!

l We are allowed to set the value of f (^) X (u) to any nonnegative number only at those few isolated points where the CDF is not differentiable l Furthermore, the arbitrarily chosen value assigned to the pdf at these isolated points makes no difference whatsoever in any probability calculations ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 30 of 44

What should we choose?

l The pdf is as shown by the blue line between –3 and 3 and for u > 3, u < – l The derivative of the CDF is undefined at u = ±

u

F X (u)

f X (u)

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 37 of 44

So, what’s a pdf mean, anyway?

l The probability density function (pdf) of a continuous random variable tells us the density of the mass at each point on the axis l pdf is measured in units of mass/length l The concept of the pdf is analogous to the more common concepts of the mass density, charge density, etc ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 38 of 44

pdfs are not what you think they are

l The probability density function (pdf) of a continuous random variable is not, by itself, a probability l Example: fX(u) = 3u^2 for 0 ≤ u ≤ 1, and 0 elsewhere l This pdf has value 3 at u = 1 l This means the probability mass is four times as dense at u = 1 as at u = 1/ ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 39 of 44

Multiply by a length to get a mass

l The probability density function (pdf) of a continuous random variable is not, by itself, a probability l If fX(u) is positive at the point a, then P{a ≤ X ≤ a + δa} ≈ fX(a)•δa l Note that δa is the length of the interval l The approximation is better and better as δa becomes smaller and smaller

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 40 of 44

Why does this work?

P{a ≤ X ≤ a + δa} ≈ fX(a)•δa l fX(a) = derivative of the CDF at point a = limit∆a→ 0 [FX(a+∆a) – FX(a)]/∆a l But this means that for small values of δa, P{a ≤ X ≤ a + δa} = FX(a+ δa) – FX(a) ≈ fX(a)•δa l Furthermore, the smaller the value of δa, the better the approximation ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 41 of 44

More generally, …

l If fX(u) is positive at the point u, then P{u ≤ X ≤ u + δu} ≈ fX(u)•δu l Let n•δa = b – a. Then, P{a < X < b} = P{a ≤ X ≤ a+δa} + P{a+δa ≤ X ≤ a+2•δa}

  • … + P{a+(n–1)•δa ≤ X ≤ a+n•δa} l P{a < X < b} ≈ fX(a)•δa + fX(a+ δa)•δa + … = area under fX(u) from a to b in the limit as δa goes to 0 ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 42 of 44

Graphical interpretation

l P{a < X < b} ≈ fX(a)•δa + fX(a+ δa)•δa + … = area under fX(u) from a to b in the limit as δa goes to 0 l Each rectangle has base δa

a b

Department of Electrical and Computer Engineering

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 43 of 44

Probability = area under the curve

l P{a < X < b} = P{a ≤ X ≤ b} = P{a ≤ X < b} = P{a < X ≤ b} are all equal to the area under the curve fX(u) from a to b l The area can be expressed as an integral, but it is of the utmost importance that you remember this notion as area under the curve

ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 44 of 44

Summary

l A continuous random variable is one whose CDF is continuous everywhere and differentiable everywhere except for a few discrete points l The pdf is the derivative of the CDF l The pdf is not a probability; its units are mass/length l Probabilities are the areas under the pdf