Professional Documents
Culture Documents
Lecture- 5
Chapter 3: Random Variable & Probability
Distributions
1
Chapter-3
Random Variable
&
Probability Distributions
2
RANDOM VARIABLE
Types of Variables
Random Variables
Discrete Continuous
x x
0 2 4 6 8 10 0 2 4 6 8 10
4
TYPES OF RANDOM VARIABLES
x
•A random variable is discrete if it has a finite or 0 2 4 6 8 10
Example:
6
DISCRETE RANDOM VARIABLE
Random Variable
• Is a function that assigns a real number to each outcome
in the sample space of random experiment. Denoted by
an uppercase letter such as X.
A Discrete Random Variable
• Is a random variable with a finite (or countable infinite)
range.
• The possible values of X may be listed as 𝑥1, 𝑥2, . . .
7
DISCRETE RANDOM VARIABLE
Example1
• Flipping a coin of two times. Let 𝑋 is the number of
heads.
8
DISCRETE RANDOM VARIABLE
Example1
• Flipping a coin of two times. Let 𝑋 is the number of
heads.
Answer:
𝑆 = 𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇
𝟐 𝟏 𝟏 𝟎
x = 0, 1, 2
1 2 1
𝑃 0 = , 𝑃 1 = , 𝑃 2 = 9
4 4 4
DISCRETE PROBABILITY DISTRIBUTION
10
PROBABILITY MASS FUNCTION (PMF)
11
PROBABILITY MASS FUNCTION (PMF)
Example1
Verify that the function is a probability mass function:
𝒙 -2 -1 0 1 2
𝒇 𝒙 = 𝑷(𝑿 = 𝒙) 1/8 2/8 2/8 2/8 1/8
12
PROBABILITY MASS FUNCTION (PMF)
Example1
Verify that the function is a probability mass function:
𝒙 -2 -1 0 1 2
𝒇 𝒙 = 𝑷(𝑿 = 𝒙) 1/8 2/8 2/8 2/8 1/8
Answer:
𝑃 𝑥𝑖 = 1 , 𝑃 𝑥𝑖 ≥ 0
13
PROBABILITY MASS FUNCTION (PMF)
Example2 𝒙 -2 -1 0 1 2
𝒇 𝒙 = 𝑷(𝑿 = 𝒙) 1/8 2/8 2/8 2/8 1/8
Find:
a. 𝑷 𝑿 ≤ 2 b. 𝑷 𝑿 > −2
c. 𝑷 −1 ≤ 𝑿 ≤ 1 d. 𝑷 𝑿 ≤ −1 or 𝑿 = 2
14
PROBABILITY MASS FUNCTION (PMF)
Example2 𝒙 -2 -1 0 1 2
𝒇 𝒙 = 𝑷(𝑿 = 𝒙) 1/8 2/8 2/8 2/8 1/8
Answer:
a. 𝑷 𝑿 ≤ 2 = 1
7
b. 𝑷 𝑿 > −2 =
8
6
c. 𝑷 −1 ≤ 𝑿 ≤ 1 =
8
3 1 4
d. 𝑷 𝑿 ≤ −1 or 𝑿 = 2 = + = 15
8 8 8
PROBABILITY MASS FUNCTION (PMF)
Example3
Two balls are drawn in succession without replacement
from a box containing 4 red balls and 3 black balls. The
possible outcomes and the values 𝑦 of the random variable
𝑌 , where 𝑦 is the number of red balls, are
16
PROBABILITY MASS FUNCTION (PMF)
Example3
No Red Balls
4 3
𝑓 0 =𝑃 𝑌=0 = 0 2 = 3 =1
7 21 7
2
17
PROBABILITY MASS FUNCTION (PMF)
Example3
4 3
𝑓 1 =𝑃 𝑌=1 = 1 1 = 12 = 4
7 21 7
2
18
PROBABILITY MASS FUNCTION (PMF)
Example3
Two Red Balls
4 3
𝑓 2 =𝑃 𝑌=2 = 2 0 = 6 =2
7 21 7
2
19
PROBABILITY MASS FUNCTION (PMF)
Example3
𝑦 0 1 2
𝑓 𝑦 = 𝑃(𝑌 = 𝑦) 1/7 4/7 2/7
20
PROBABILITY MASS FUNCTION (PMF)
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
3 17
0 2 = 136
𝑓 0 =𝑃 𝑋=0 =
20 190
2
23
PROBABILITY MASS FUNCTION (PMF)
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
3 17
𝑓 1 =𝑃 𝑋=1 = 1 1 = 51
20 190
2
24
PROBABILITY MASS FUNCTION (PMF)
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
3 17
𝑓 2 =𝑃 𝑋=2 = 2 0 = 3
20 190
2
25
PROBABILITY MASS FUNCTION (PMF)
Example4
A shipment of 20 similar laptop computers to a retail outlet
contains 3 that are defective. If a school makes a random
purchase of 2 of these computers, find the probability
distribution for the number of defectives.
𝑥 0 1 2
26
PROBABILITY MASS FUNCTION (PMF)
Example5
There is a chance that a bit transmitted through a digital
transmission channel is received in error. Let 𝑋 equal the
number of bits in error in the next four bits transmitted. The
possible values for 𝑋 are {0, 1, 2, 3, 4}.
Suppose that the probabilities are
27
PROBABILITY MASS FUNCTION (PMF)
Example5
28
CUMULATIVE DISTRIBUTION FUN. (CDF)
29
CUMULATIVE DISTRIBUTION FUN.(CDF)
If 𝑋 is discrete, then
𝑥 -2 -1 0 1 2
30
CUMULATIVE DISTRIBUTION FUN.(CDF)
If 𝑋 is discrete, then
𝑥 -2 -1 0 1 2
31
CUMULATIVE DISTRIBUTION FUN.(CDF)
Example1
𝑥 0 1 2 3 4
32
CUMULATIVE DISTRIBUTION FUN.(CDF)
Example1
𝑥 0 1 2 3 4
33
CUMULATIVE DISTRIBUTION FUN.(CDF)
Example1
𝑥 0 1 2 3 4
34
CUMULATIVE DISTRIBUTION FUN.(CDF)
Example2
𝑥 0 1 2 3 4
35
CUMULATIVE DISTRIBUTION FUN.(CDF)
Example2
𝑥 0 1 2 3 4
36
DISCRETE PROB. DISTRIBUTION
37
DISCRETE PROB. DISTRIBUTION
Example_3
38
DISCRETE PROB. DISTRIBUTION
Example_3
39
DISCRETE PROB. DISTRIBUTION
40
DISCRETE PROB. DISTRIBUTION
41
DISCRETE PROB. DISTRIBUTION
42
PROB. MASS FUNCTION
43
CUMULATIVE DISTRIBUTION FUN.
44
CUMULATIVE DISTRIBUTION FUN.
45
46