Tutorial 6:General Random Variables 2 Yitong Meng March 6,2016 1
Tutorial 6: General Random Variables 2 Yitong Meng March 6, 2016 1
Outline Extend the notion of PDF to the case of multiple random variables Jointly continuous PDF ·Marginal PDF ·Conditional PDF ·Exercises 2
Outline Extend the notion of PDF to the case of multiple random variables • Jointly continuous PDF • Marginal PDF • Conditional PDF • Exercises 2
Continuous pde Recall that X is continuous if there is a function f(x)(the density) such that PX≤)=fk(x)d We generalize this to two random variables. 3
Continuous PDF • Recall that 𝑋 is continuous if there is a function 𝑓(𝑥) (the density) such that 𝑃(𝑋 ≤ 𝑡) = න −∞ 𝑡 𝑓𝑋 𝑥 𝑑𝑥 We generalize this to two random variables. 3
Jointly continuous PDF ·Definition Two random variables X and Y are jointly continuous if there is a function fx.y(x,y)on R-,called the joint probability density function,such that PX≤sY≤)= fxr(x,y)dxdy x≤S,y≤t
Jointly continuous PDF • Definition Two random variables 𝑋 and 𝑌 are jointly continuous if there is a function 𝑓𝑋,𝑌 𝑥, 𝑦 on 𝑅 2 , called the joint probability density function, such that 𝑃 𝑋 ≤ 𝑠, 𝑌 ≤ 𝑡 = ඵ 𝑥≤𝑠,𝑦≤𝑡 𝑓𝑋,𝑌 𝑥, 𝑦 𝑑𝑥𝑑𝑦 4
Jointly continuous PDF ·The integral is over{(x,y):x≤s,y≤t}.We can also write the integral as Px≤s,Y≤=(xr(.ydy) =(v.ys)西
Jointly continuous PDF • The integral is over {(𝑥, 𝑦) ∶ 𝑥 ≤ 𝑠, 𝑦 ≤ 𝑡}. We can also write the integral as 𝑃 𝑋 ≤ 𝑠, 𝑌 ≤ 𝑡 = න −∞ 𝑠 න −∞ 𝑡 𝑓𝑋,𝑌 𝑥, 𝑦 𝑑𝑦 𝑑𝑥 = න −∞ 𝑡 න −∞ 𝑠 𝑓𝑋,𝑌 𝑥, 𝑦 𝑑𝑥 𝑑𝑦 5
Jointly continuous PDF In order for a function f(x,y)to be a joint density it must satisfy f(x,y)≥0 fr(x.y)dx dy =1 6
Jointly continuous PDF • In order for a function 𝑓(𝑥, 𝑦) to be a joint density it must satisfy 𝑓(𝑥, 𝑦) ≥ 0 න −∞ ∞ න −∞ ∞ 𝑓𝑋,𝑌 𝑥, 𝑦 𝑑𝑥 𝑑𝑦 = 1 6
Jointly continuous PDF Just as with one random variable,the joint density function contains all the information about the underlying probability measure if we only look at the random variables X and Y. In particular,we can compute the probability of any event defined in terms of X and Y just using f(x,y)
Jointly continuous PDF • Just as with one random variable, the joint density function contains all the information about the underlying probability measure if we only look at the random variables 𝑋 and 𝑌 . • In particular, we can compute the probability of any event defined in terms of 𝑋 and 𝑌 just using 𝑓(𝑥, 𝑦). 7
Jointly continuous PDF Here are some events defined in terms of X and Y: ·{X≤Y} ·{X2+Y2≤1} ·{1≤X≤4,Y≥0} They can all be written in the form {(X,Y)E B}for some subset B of R2
Jointly continuous PDF Here are some events defined in terms of 𝑋 and 𝑌 : • 𝑋 ≤ 𝑌 • {𝑋 2+ 𝑌 2 ≤ 1} • {1 ≤ 𝑋 ≤ 4, 𝑌 ≥ 0} They can all be written in the form {(𝑋, 𝑌) ∈ 𝐵} for some subset 𝐵 of 𝑅 2 . 8
Jointly continuous PDF Proposition.For B C R2, P(X,I∈)=∥ fxr(x,y)dxdy (x,yEB The two-dimensional integral is over the subset B of R2 9
Jointly continuous PDF • Proposition. 𝐹𝑜𝑟 𝐵 ⊂ 𝑅 2 , 𝑃 𝑋, 𝑌 ∈ 𝐵 = ඵ (𝑥,𝑦)∈𝐵 𝑓𝑋,𝑌 𝑥, 𝑦 𝑑𝑥𝑑𝑦 The two-dimensional integral is over the subset B of 𝑅 2 9
Jointly continuous PDF Typically,when we want to actually compute this integral 0.4 we have to write it as an 0.2 iterated integral. -5 5 It is a good idea to draw a 0 0 picture of B to help do this. 5-5 Many sample observations are shown from a joint probability distribution.The marginal densities are shown as well. 10
Jointly continuous PDF • Typically, when we want to actually compute this integral we have to write it as an iterated integral. • It is a good idea to draw a picture of 𝐵 to help do this. 10 Many sample observations are shown from a joint probability distribution. The marginal densities are shown as well