Lecture 9
Lecture 9
CEC217
Dr. Tarık Adnan
Email: [email protected] 1
Office: 104
The Conditional Distributions
Where 𝑓(𝑥, 𝑦) & 𝑔(𝑥) ; ℎ(𝑦) are the joint probability distribution
and the marginal distributions, respectively.
2
Cont.
• To find the probability that the discrete random variable 𝑋
falls between 𝑎 and 𝑏 when it is known that the discrete
variable 𝑌 = 𝑦, we evaluate:
𝑃 𝑎<𝑋<𝑏𝑌=𝑦 = 𝑓 𝑥𝑦 ,
𝑎<𝑥<𝑏
𝑃 𝑎 < 𝑋 < 𝑏 𝑌 = 𝑦 = න 𝑓 𝑥 𝑦 𝑑𝑥
𝑎
3
Example
• Two ballpoint pens are selected at random from a box that
contains 3 blue pens, 2 red pens, and 3 green pens. ℎ(𝑦)
• Determine 𝑃 𝑋 = 0 𝑌 = 1 :
1
𝑃 𝑋=0 𝑌=1 =𝑓 01 =
2
2- Find the probability that the spectrum shifts more than half of
the total observations, given that the temperature is increased
by 0.25 unit.
7
Example: (homework)
• Consider the joint density of two random variables 𝑋 and 𝑌, ℎ(𝑦)
where 𝑋 represents a certain measurement change and Y is
the proportion of an effect observed. The joint density
function is given by:
8𝑥𝑦 3 , 0 < 𝑥 < 𝑦 < 1
𝑓 𝑥, 𝑦 = ቊ
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
8
Mathematical Expectation
9
Mean of a Random Variable
• Let two coins are tossed 16 times and 𝑋 is the number of
heads that occur per toss, then the values of 𝑋 are 0 (no
heads), 1 (one head), and 2 (two heads).
• Suppose that the experiment yields no heads, one head, and
two heads a total of 4, 7, and 5 times, respectively. The
average number of heads per toss of the two coins is then
• Since the 4 sample points are all equally likely, it follows that
1
and 𝑃(𝑋 = 2) = 𝑃(𝐻𝐻) =
4
Where 𝑇𝐻, indicates that the first toss resulted in a tail followed
by a head on the second toss.
12
Cont.
13
Definition of Mean, or Expected value:
• The aforementioned method used to calculate the expected
number of heads per toss of 2 coins suggests that the mean, or
expected value, of any discrete random variable may be
obtained by multiplying each of the values 𝑥1 , 𝑥2 , . . . , 𝑥𝑛 of the
random variable 𝑋 by its corresponding probability
𝑓(𝑥1 ), 𝑓(𝑥2 ), . . . , 𝑓(𝑥𝑛 ) and summing up the products
14
Cont.
15
Example
• A lot containing 7 components is sampled by a quality
inspector; the lot contains 4 good components and 3
defective components. A sample of 3 is taken by the
inspector. Find the expected value of the number of good
components in this sample.
Solution
Let 𝑋 represent the number of good components in the sample.
The probability distribution of 𝑋 is
16
Cont. 4 3 3!
0 3−0 3! 1
𝑓 0 = 7 = =
7! 35
3
3! × 4!
4 3
4! 3!
1 3−1 1! × 3! 2! 12
𝑓 1 = 7 = = ,
3
35 35
18
𝑓 2 = , 𝑓 3 = 4/35
35
19
Thank you
Feel free to ask questions
20 20