Chapter 3
Chapter 3
1 Random Variables
We define a random variable that gets its value from the outcome of the
random experiment: 𝟎,
Lesson
Chapter13 © 2020 UMass Amherst Global. All rights reserved.
10
Lesson
Chapter13 © 2020 UMass Amherst Global. All rights reserved.
11
Properties of PMF
Also,
Chapter 3 17
The Binomial Distribution
• The Binomial trial is an experiment with only two possible outcomes (a
success, 1, or a failure, 0), with positive probabilities p and 1–p
• Examples: x p(x)
• Flipping a coin (H or T)
• Results of a pregnancy (girl or boy)
0 1–p
• Hitting a target; the outcome is
(hit or miss)
1 p
Chapter 3 18
The Binomial Experiment
1. Consists of n identical trials
2. Each trial results in one of two outcomes, success
(S) or failure (F)
3. The probability of success on a single trial is p and
remains constant from trial to trial; the probability
of failure is q = 1 – p
4. The trials are independent
5. We are interested in x, the number of successes in
n trials
Chapter 3 19
The Binomial Probability Distribution
For a binomial experiment with n trials and probability p of success on a given
trial, the probability of k successes in n trials is:
n!
P( x = k ) = Ckn p k q n−k = p k q n−k for k = 0,1,2,...n.
k!(n − k )!
n!
Recall Ckn =
k!(n − k )!
with n!= n(n − 1)(n − 2)...(2)1 and 0! 1.
Chapter 3 20
x p(x)
The Binomial Random Variable 0 1/4
• The coin-tossing experiment is a simple example of a
binomial random variable 1 1/2
2 1/4
• Toss a fair coin n = 2 times and record x = number of
heads
Solution:
Notice that p=0.5 probability of success to get a head, Then q=1-0.5=0.5
𝟏
𝒑 𝒙 = 𝟐 = 𝑪𝟐𝟐 (𝟎. 𝟓)𝟐 (𝟎. 𝟓)𝟐−𝟐= 𝟎. 𝟐𝟓 =
𝟒
Chapter 3 21
The Binomial Random Variable
• The coin-tossing experiment is a simple example of a binomial random variable
• Toss a fair coin n = 10 times and record x = number of heads
𝑾𝒉𝒂𝒕 𝒊𝒔 𝒕𝒉𝒆 𝒑𝒓𝒐𝒃𝒂𝒃𝒊𝒍𝒕𝒚 𝒐𝒇 𝒐𝒃𝒔𝒆𝒓𝒗𝒊𝒏𝒈 𝟖 𝒉𝒆𝒂𝒅𝒔?
𝑛!
𝑃(𝑥 = 𝑘) = 𝐶𝑘𝑛 𝑝 𝑘 𝑞 𝑛−𝑘 = 𝑝 𝑘 𝑞 𝑛−𝑘 for 𝑘 = 0,1,2, . . . 𝑛.
Chapter 3 22 𝑘! (𝑛 − 𝑘)!
The Binomial Random Variable
• The coin-tossing experiment is a simple example of a
binomial random variable
• Toss a fair coin n = 10 times and record x = number of
heads
𝑾𝒉𝒂𝒕 𝒊𝒔 𝒕𝒉𝒆 𝒑𝒓𝒐𝒃𝒂𝒃𝒊𝒍𝒕𝒚 𝒐𝒇 𝒐𝒃𝒔𝒆𝒓𝒗𝒊𝒏𝒈 𝟖 𝒉𝒆𝒂𝒅𝒔
𝑛!
𝑃(𝑥 = 𝑘) = 𝐶𝑘𝑛 𝑝 𝑘 𝑞 𝑛−𝑘 = 𝑝 𝑘 𝑞 𝑛−𝑘 for 𝑘 = 0,1,2, . . . 𝑛.
𝑘! (𝑛 − 𝑘)!
Chapter 3 23
Example
A marksman hits a target 80% of the time. He fires five shots at the target. What
is the probability that exactly 3 shots hit the target?
5!
𝑃(𝑥 = 3) = 𝐶3𝟓𝑝3 𝑞 𝟓−3 = (.8)3 (.2)𝟐
3! 2!
Chapter 3 24
Example
What is the probability that more than 3 shots hit the target?
5! 5!
= (.8) (.2) +
4 1
(.8)5 (.2) 0
4!1! 5!0!
Chapter 3 25
Example
A marksman hits a target 80% of the time. He fires five shots at the target. What
is the probability that exactly 3 shots miss the target?
Chapter 3 26
The Geometric RV
5−1 4
𝐹𝑜𝑟 𝑦 = 5 𝑤𝑒 ℎ𝑎𝑣𝑒 𝑃𝑌 5 = 0.1 1 − 0.1 = 0.1 0.9 = 0.06561
• Examples:
• The number of calls received by a switchboard during a given period of time
• The number of machine breakdowns in a day
• The number of traffic accidents at a given intersection during a given time period
Chapter 3 29
The Poisson Probability Distribution
• x is the number of events that occur in a period of time or space during which an average 𝝁
of such events can be expected to occur.
• The probability of k occurrences of this event is:
μ e
k -μ
P(x = k) =
k!
For values of k = 0, 1, 2, … The mean and standard deviation
of the Poisson random variable are
Mean: 𝝁
Standard deviation: =
Chapter 3 30
Example Solution
The average number of traffic accidents on a certain section of highway is two per week.
Find the probability of exactly one accident during a one-week period:
k e−21 e −2
P( x = 1) = = = 2e − 2 = .2707
k! 1!
Chapter 3 31
32
33
34
The Mean, The Variance And The Standard Deviation Of A Discrete Random Variable
35
Lesson 11
Chapter 3 © 2020 UMass Amherst Global. All rights reserved.
36
Lesson 11
Chapter 3 © 2020 UMass Amherst Global. All rights reserved.
37
The Mean, The Variance And The Standard Deviation Of The PMF
38
The Binomial Random Variable
• The coin-tossing experiment is a simple example of a binomial random variable
• Toss a fair coin n = 10 times and record x = number of heads
𝑾𝒉𝒂𝒕 𝒊𝒔 𝒕𝒉𝒆 𝒆𝒙𝒑𝒆𝒄𝒕𝒆𝒅 𝒗𝒂𝒍𝒖𝒆, 𝒕𝒉𝒆 𝒗𝒂𝒓𝒊𝒂𝒏𝒄𝒆 𝒂𝒏𝒅 𝒕𝒉𝒆 𝒔𝒕𝒂𝒏𝒅𝒂𝒓𝒅 𝒅𝒆𝒗𝒊𝒂𝒕𝒊𝒐𝒏
Solution:
𝐸 𝑋 = 𝑛𝑝 = 10 0.5 = 5
5
𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒 = 𝜎 2 = 𝑛𝑝 1 − 𝑝 = 10 ∙ 0.5 ∙ 1 − 0.5 = = 2.5
2
Chapter 3 39