Docsity

Continuous Random Variables: Joint PDFs and Marginal Distributions - Prof. Dilip Sarwate, 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 33.1
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1 of 35
Jointly continuous RVs
lJointly continuous random variables
spread the probability mass (usually with
varying density) over a region
lThe joint pdf fX,Y(u,v) tells us how dense
the probability mass is at the point (u,v)
nThere is no probability mass at any point
P{(X,Y) = (u,v)} = P{X = u, Y = v} = 0
for all real numbers u and v
nfX,Y(u,v) is the density of the probability mass
Units are probability mass per unit area
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2 of 35
The joint pdf is mass per unit area
lThe joint pdf fX,Y(u,v) is not a probability:
we must multiply the pdf by an area to get
a probability
lP{(X,Y) ∈ {small region containing (u,v)}}
≈ fX,Y(u,v)•{area of region}
lFor larger regions,
Probability = (double) integral of the pdf
over the region
lP{(X,Y) ∈ A} = ∫ ∫ fX,Y(u,v) du dv
A
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3 of 35
Graphical interpretation
lP{(X,Y) ∈ {small region containing (u,v)}}
≈ fX,Y(u,v)•{area of region}
≈ volume above the u-v plane and below
the fX,Y surface
u
v
lJoint pdf is a surface above the u-v plane
height ≈ fX,Y(u,v)
base area
≈ height × base area
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 4 of 35
Probability = volume under joint pdf
P{(X,Y) ∈ A} = ∫ ∫ fX,Y(u,v) du dv
A
lP{u ≤ X ≤ u+ δu,v ≤ Y ≤ v+ δv}
≈ fX,Y(u,v)•δu•δv is the volume of a prism
of height fX,Y(u,v) and rectangular base of
area δu•δv
lP{(X,Y) ∈ A} = volume of solid with vertical
sides, base A, and varying height fX,Y(u,v)
= volume between A and fX,Y surface
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5 of 35
Properties of the joint pdf
lfX,Y(u,v) ≥ 0 for all u and v
lTotal volume between the fX,Y surface and
the u-v plane is 1
lThis is just the interpretation of the result
FX,Y(∞,∞) = 1 = ∫ ∫ fX,Y(u,v) du dv
v=–∞
∞
u=–∞
∞
lFX,Y(u0,v0) = ∫ ∫ fX,Y(u,v) du dv
or integrate w.r.t. v first and then w.r.t. to u
v=–∞
v0
u=–∞
u0
ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 6 of 35
Finding joint pdf from the joint CDF
fX,Y(u,v) = FX,Y(u,v) if the derivative
exists, and fX,Y(u,v) = any number ≥ 0
otherwise
∂2
∂v∂u
lFor jointly continuous RVs,
The set of points where the joint CDF is
not differentiable has zero area, e.g. a
straight line or curve in the plane
pf3
pf4
pf5

Partial preview of the text

Download Continuous Random Variables: Joint PDFs and Marginal Distributions - Prof. Dilip Sarwate and more Study notes Statistics in PDF only on Docsity!

Department of Electrical and Computer Engineering

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

Jointly continuous RVs

l Jointly continuous random variables spread the probability mass (usually with varying density) over a region l The joint pdf f X , Y (u,v) tells us how dense the probability mass is at the point (u,v) n There is no probability mass at any point P{( X , Y ) = (u,v)} = P{ X = u, Y = v} = 0 for all real numbers u and v n f X , Y (u,v) is the density of the probability mass Units are probability mass per unit area ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2 of 35

The joint pdf is mass per unit area

l The joint pdf f X , Y (u,v) is not a probability: we must multiply the pdf by an area to get a probability l P{( X , Y ) ∈ {small region containing (u,v)}} ≈ f X , Y (u,v)•{area of region} l For larger regions, Probability = (double) integral of the pdf over the region

l P{( X , Y ) ∈ A} = ∫ ∫ f X , Y (u,v) du dv

A ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3 of 35

Graphical interpretation

l P{( X , Y ) ∈ {small region containing (u,v)}} ≈ f X , Y (u,v)•{area of region} ≈ volume above the u-v plane and below the f X , Y surface

u

v

l Joint pdf is a surface above the u-v plane

height ≈ f X , Y (u,v) base area

≈ height × base area

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

Probability = volume under joint pdf

P{( X , Y ) ∈ A} = ∫ ∫ f X , Y (u,v) du dv

A l P{u ≤ X ≤ u+ δu,v ≤ Y ≤ v+ δv} ≈ f X , Y (u,v)•δu•δv is the volume of a prism of height f X , Y (u,v) and rectangular base of area δu•δv l P{( X , Y ) ∈ A} = volume of solid with vertical sides, base A, and varying height f X , Y (u,v) = volume between A and f X , Y surface ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5 of 35

Properties of the joint pdf

l f X , Y (u,v) ≥ 0 for all u and v l Total volume between the f X , Y surface and the u-v plane is 1 l This is just the interpretation of the result

F X , Y (∞,∞) = 1 = ∫ ∫ f X , Y (u,v) du dv

v=–∞

∞

u=–∞

∞

l F X , Y (u 0 ,v 0 ) = ∫ ∫ f X , Y (u,v) du dv

or integrate w.r.t. v first and then w.r.t. to u

v=–∞

v 0

u=–∞

u 0

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

Finding joint pdf from the joint CDF

f X , Y (u,v) = F X,Y (u,v) if the derivative exists, and f X , Y (u,v) = any number ≥ 0 otherwise

∂^2 ∂v∂u

l For jointly continuous RVs,

The set of points where the joint CDF is not differentiable has zero area, e.g. a straight line or curve in the plane

Department of Electrical and Computer Engineering

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

Differentiating an integral

l What is the derivative of the integral, that is, the function G(α), with respect to α?

l ∫ g(x;α) dx = G(α)

b(α)

a(α)

l ∂α∂G(α) = ∫ ∂α^ ∂g(x;α) dx

b(α)

a(α)

  • g(b(α);α)• b(α)
  • g(a(α);α)• a(α)

∂ ∂α ∂ ∂α ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 8 of 35

Special cases

l Special case: The limits do not depend on α; only the integrand depends on α

∂ ∂α

∂

l G(α) = ∫ ∂αg(x;α) dx

b

a l Special case: Only the limits depend on α; the integrand does not depend on α

∂ ∂α

∂ ∂α

l G(α) = g(b(α);α)• b(α) – g(a(α);α)• a(α)

∂ ∂α

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

The marginal pdfs of X and Y

l f X (u) and f Y (v), the marginal pdfs of X and Y respectively, are obtained by “integrating out” the unwanted variable from f (^) X , Y (u,v)

l f X (u) = ∫ f X , Y (u,v) dv; f Y (v) = ∫ f X , Y (u,v) du

v=–∞

∞

u=–∞

∞

l f X (u) = ∫ f X , Y (u,v) dv = area of cross-section

v=–∞

∞

of pdf surface by vertical plane through the point u

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

Think geometrically!

l Thinking of probabilities, pdfs etc in geometrical terms can be a great help in problem solving

u

v

l Value of marginal pdf = area of triangle = (1/2)•base•altitude l Look, Ma! No integration! ECE 313 - Lecture 33 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 11 of 35

Generalization to n RVs – I

l X 1 , X 2 , …, X n are called jointly continuous random variables if n the random point X = ( X 1 , X 2 , …, X n) takes on all possible values in a region of nonzero volume in n-dimensional space, and n The probabilistic behavior is described by the n-variate joint pdf f X (u ) = f X 1 , X 2 ,…, X n(u 1 , u 2 , …, un)

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

Generalization to n RVs – II

l The joint pdf is not a probability: we must multiply by an n-dimensional volume to get the probability l For small δu = (δu 1 , δu 2 , … , δun) P{ u ≤ X ≤ u + δu } = P{ X in small rectangular parallelipiped} ≈ f X (u )•δu 1 • δu 2 • …•δun l For larger volumes, use an n-dimensional integral over the region of interest

Department of Electrical and Computer Engineering

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

Solution to Example A (finding c)

l What is the value of c? l Total volume under the pdf surface = 1 l Volume of pyramid = base area ×height/ = (1/2× 1 ×1) × c/3 = c/6 ⇒ c = 6

u

v

1

c 1

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

Solution to Example A (set up ∫∫ )

l For any fixed α between 0 and 1, take an elemental volume at (α,β) as shown

u

v

1

c 1

u 0

v 1

1 α

β α

β

l Vary β from 0 to 1–α to get volume of slice

(α, 1–α) 1–α

l Vary α between 0 and 1 to get entire volume of pyramid

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

Solution to Example A (compute ∫∫ )

= ∫ ∫ c•(1–α–β) dβ dα

l F X , Y (∞,∞) = 1 = ∫ ∫ f X , Y (α,β) dβ dα

α=–∞

∞

β=–∞

∞

α=

1

β=

1–α

= ∫ c•(1–α)^2 /2 dα = c/

α=

1

l Hence, c = 6, as obtained earlier

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

Solution to Example A (find fX(u))

l f X (α) = area of triangle = base•altitude/ = (1–α)•[6•(1–α)]/2 = 3•(1–α)^2

u

v

l f X (α) = ∫ f X , Y (α,v) dv = area of cross-section

v=–∞

∞

α

1–α

6 This line has equation 6(1–α)

1

1

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

Solution to Example A (find fX(u))

l f X (u) = 3•(1–u)^2 ???? l Not quite! Our analysis applies only when u is between 0 and 1 l If u < 0 or u > 1, the cross-section is non- existent and thus has zero area l f X (u) = 3•(1–u)^2 for 0 ≤ u ≤ 1, and f X (u) = 0 otherwise

l f X (u) = ∫ f X , Y (u,v) dv = area of cross-section

v=–∞

∞

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

Solution to Example A (crosscheck)

l f X (u) = 3•(1–u)^2 for 0 ≤ u ≤ 1, and f X (u) = 0 otherwise l An important check on the correctness of the work done is the test that the marginal pdf is indeed a valid pdf l Test failed? Your calculations are wrong l Test passed? Your calculations may still be wrong, but they are not obviously incorrect l Exercise: Verify that f X (u) is a valid pdf

Department of Electrical and Computer Engineering

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

Solution to Example A (symmetry)

l f X (u) = 3•(1–u)^2 for 0 ≤ u ≤ 1, and f X (u) = 0 otherwise l By symmetry, f Y (v) = 3•(1–v)^2 for 0 ≤ v ≤ 1, and f Y (v) = 0 otherwise

u

v

1

(^61)

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

Extension of Example A (symmetry)

l What is P{ X < Y }?

u

v

1

(^61)

0

u=v

l P{ X < Y } = P{( X , Y ) ∈ orange triangle} = 1/2 by symmetry l We could have written this down even if he had made an error in computing c = 6!

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

Example B

l The joint pdf of X and Y is given by f X , Y (u,v) = exp(–u) for 0 ≤ v ≤ u < ∞ and f X , Y (u,v) = 0 otherwise (a) Find the marginal pdfs of X and Y (b) Find P{ X + Y ≤ α} where α ≥ 0

u

v Line u=v

u

v

0

1

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

Example B – marginal pdf of X

l Cross-section is a rectangle of base a and height exp(–a) l f X (u) = u•exp(–u), u ≥ 0 ⇒ X is Γ(2,1) RV

u

v Line u=v

l f X (a) = ∫ f X , Y (a,v) dv = area of cross-section

v=–∞

a ∞

a

joint pdf has constant value exp(–a) on this line

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

Example B – marginal pdf of Y

l f Y (v) = exp(–v), v ≥ 0 ⇒ Y = exp. RV

u

v Line u=v

l f Y (a) = ∫ f X , Y (u,a) du = area of cross-section

u=–∞

∞ a

a

= ∫ exp(–u) du = exp(–a)

u=a

∞

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

Example B – P{X + Y ≤ α }

l P{ X + Y ≤ α} = integral of f X , Y (u,v) over green shaded region l Easier if we integrate with respect to u first and then with respect to v

u

v Line u=v

α

α