




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1 of 44
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
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
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
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
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
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
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 7 of 44
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
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
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
l E[ X ] = area above CDF to right of 0
0
u
0
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 11 of 44
u
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
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
l If both integrals are infinite, then all the authors agree that E[ X ] is undefined
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 19 of 44
l Supose that F X (u) is continuous at all u,
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 20 of 44
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
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
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
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
Discrete RV
Continuous RV
Singular RV
Mixed RV
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 25 of 44
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
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
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
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
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
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)
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 37 of 44
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
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
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
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}
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
ECE 313 - Lecture 22 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 43 of 44
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
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