05.02.the Continuous Case
05.02.the Continuous Case
Abbas Alhakim
A function of two random variables 𝑓(𝑥, 𝑦) is said to be the joint probability density
function of two random variables X and Y if and only if:
1) 𝑓 𝑥, 𝑦 ≥ 0 for all points (𝑥, 𝑦) in the plane
∞ ∞
2) −∞ −∞ 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦 = 1
3
Continuous Case: Joint p.d.f.
A function of two random variables 𝑓(𝑥, 𝑦) is said to be the joint probability density function of two random
variables X and Y if and only if:
1) 𝑓 𝑥, 𝑦 ≥ 0 for all points (𝑥, 𝑦) in the plane
∞ ∞
2) −∞ −∞ 𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦 = 1
Observations:
1) To check that 𝑓(𝑥, 𝑦) is a joint p.d.f., only properties (1) and (2) need to be verified.
2) The third property relates 𝑓 to 𝑋 and 𝑌 in particular.
3) In two dimensions, typical shapes for A are rectangles, disks, triangles. But can be of any shape.
4) To calculate probability of an event, that is described in words, it must first be transformed into a
subdomain
4
Example
5
Example
6
Marginal pdf
We can recover the individual, univariate pdf of 𝑋 and 𝑌 from the joint pdf 𝑓(𝑥, 𝑦)
∞
Marginal pdf of 𝑋: 𝑓𝑋 𝑥 = −∞ 𝑓 𝑥, 𝑦 𝑑𝑦
∞
Marginal pdf of 𝑌: 𝑓𝑌 𝑦 = −∞ 𝑓 𝑥, 𝑦 𝑑𝑥
7
Independence of Two Continuous RV’s
Two continuous random variables 𝑋 and 𝑌 with joint pdf 𝑓 𝑥, 𝑦 are said to be
independent if
𝑓 𝑥, 𝑦 = 𝑓𝑋 𝑥 × 𝑓𝑌 𝑦
8
Conditional pdf of X given Y
If we learn that 𝑌 takes a specific value 𝑦, we can alter the entire distribution of 𝑋.
We get the conditional pdf of 𝑋|𝑌 = 𝑦
𝑓(𝑥, 𝑦)
𝑓𝑋|𝑌 𝑥|𝑦 =
𝑓𝑌 𝑦
𝑓(𝑥,𝑦)
Similarly, 𝑓𝑌|𝑋 𝑦|𝑥 =
𝑓𝑋 𝑥
9
Expected Values from Joint pdfs
Unconditional Expectations:
∞ ∞
𝐸 𝑋 = න න 𝑥𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦
−∞ −∞
∞ ∞
𝐸 𝑌 =න න 𝑦𝑓 𝑥, 𝑦 𝑑𝑥𝑑𝑦
−∞ −∞
Conditional Expectations:
∞
10
Joint pdf Example
The useful lifetimes, years, `of two components of a system have the following
𝑥𝑒 −𝑥 1+𝑦 ; 𝑥 ≥ 0 𝑎𝑛𝑑 𝑦 ≥ 0
joint pdf: 𝑓 𝑥, 𝑦 = ቊ
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
11
Joint pdf Example
12
Joint pdf Example
13
Joint pdf Example
14