Lecture8
Lecture8
CEC217
Lecture
3
Joint Probability Distributions (Cont.)
4
Cont.
• If 𝑋 and 𝑌 are two discrete random variables, the probability
distribution for their simultaneous occurrence can be
represented by a function with values 𝑓(𝑥, 𝑦) for any pair of
values (𝑥, 𝑦) within the range of the random variables 𝑋 and 𝑌.
It is customary to refer to this function as the joint probability
distribution of 𝑋 and Y. Hence, in the discrete case,
𝑓(𝑥, 𝑦) = 𝑃(𝑋 = 𝑥, 𝑌 = 𝑦);
that is, the values 𝑓(𝑥, 𝑦) give the probability that outcomes 𝑥
and 𝑦 occur at the same time
5
Cont.
• For instance, if an 10-wheeler (a vehicle \ car with 10 tires) is
to have its tires serviced
𝑋 represents the number of miles these tires have been driven
Y represents the number of tires that need to be replaced,
• Then. 𝑓 30000, 5 is the probability that the tires are used over
30,000 miles and the truck needs 5 new tires.
Solution ?
7
Solution
1- The joint probability function 𝑓(𝑥, 𝑦):
What are the possible pairs of values (𝑥, 𝑦)?
0 ,0 , 0 ,1 , 1 ,0 , 1 ,1 , 0 ,2 , and 2 , 0
9
Cont.
• Now we need to calculate the joint distribution function of the
random variable 𝑿
The sum is
equal to 1
for 𝑥 = 0, 1, 2; 𝑦 = 0, 1, 2; and 0 ≤ 𝑥 + 𝑦 ≤ 2.
𝑃 𝑋, 𝑌 ∈ 𝐴 = 𝑃 𝑋 + 𝑌 ≤ 1 = 𝑓 0, 0 + 𝑓 0, 1 + 𝑓 1, 0
3 6 9 18
= + + =
28 28 28 28
11
Joint density function
• When 𝑋 and 𝑌 are continuous random variables, the joint
density function 𝑓(𝑥, 𝑦) is a surface lying above the 𝑥𝑦 plane,
and 𝑃[(𝑋, 𝑌) ∈ 𝐴]
15
Marginal Distributions
• Given the joint probability distribution 𝑓(𝑥, 𝑦) of the discrete
random variables 𝑋 and 𝑌 , the probability distribution 𝒈(𝒙) of
𝑋 alone is obtained by summing 𝑓(𝑥, 𝑦) over the values of 𝑌.
The term marginal is used here because, in the discrete case, the
values of 𝑔(𝑥) and ℎ(𝑦) are just the marginal totals of the respective
columns and rows when the values of 𝑓(𝑥, 𝑦) are displayed in a
rectangular table. 17
Example
• Show that the column and row totals of Table 3.1 (Slide 10)
give the marginal distribution of 𝑋 alone and of 𝑌 alone.
Solution
• For the random variable X, we see that:
18
Cont.
19
Cont.
21 21