Lecture 11 Binomial Probability Distribution
Lecture 11 Binomial Probability Distribution
Probability
Random Variable
Probability distributions
Binomial Distribution
BY
ARSHAD ALI
Combinations
Permutations
472
11/02/2015
11
Bernoulli Trials
10
12
11/02/2015
16
17
18
P( X x ) .
n!
p x (1 p )( n x )
x !(n x) !
for x = 0,1,2, n
n
.= p x q ( n x )
x
n trials,
15
14
13
n = number of trials
p = probability of success in a single trial
x = number of outcomes you want to find
probability for
11/02/2015
PROBLEM
19
x=2
p = 0.05
Data
PROBLEM
21
p 0.05
q 1 p q 0.95
n 20
x2
20
n = 20
Solution
n
P( X x) p x q ( n x )
x
n 20, x 2
p 0.05, q 0.95
20
P(x=2) 0.052 0.9518
2
0.189
ARSHAD ALI ([email protected])
22
Problem
n
P( X x) p x q ( n x )
x
4
1
3
P(X 1) 0.2 0.8 0.40961
1
4
0
4
P(X 0) 0.2 0.8 0.4096
0
P(X 2) P(X 0) P(X 1)
0.4096 0.4096 0.8192
0.189
PROBLEM
23
24
Problem Statement
An electronics manufacturer claims that at most 10% of its power supply units need
service during the warranty period. To investigate this claim, technicians at a testing
laboratory purchase 20 units and subject each one to accelerated testing to simulate
use during the warranty period.
Solution
Let p denote the probability that a power supply unit needs repair during the period
(the proportion of all such units that need repair). The laboratory technicians must
decide whether the data resulting from the experiment supports the claim that p
10. Let X denote the number among the 20 sampled that need repair, so X , Bin(20,
p). Consider the decision rule
Reject the claim that p # .10 in favor of the conclusion that p > .10 if x 5 (where x is
the observed value of X), and consider the claim plausible if x 4.
11/02/2015
The probability that the claim is rejected when p = .10 (an incorrect conclusion) is
P(X ~ 5 when p = .10) = 1 B(4; 20, .1) = 1 .957 = .043
25
20
20
20
20
20 4
20 3
20 2
20 1 20
20 0
P( X 4) 0.24 1 0.2
0.23 1 0.2 0.22 1 0.2
0.21 1 0.2 + 0.20 1 0.2
4
3
2
1
0
How to Calculate
20
20 4
4
0.2 1 0.2
4
20
16
0.24 0.8
4
Hence
P( X 4) 0.6296
20!
0.0016 0.02815
4!16!
17 18 19 20
0.000045
1 2 3 4
p = .20
27
Calculations
26
28
PROBLEM
4845 0.000045
0.21819
Each sample of water has a 10% chance of containing a particular organic pollutant.
Assume that the samples are independent with regards to the presence of the
pollutant. (a) Find the probability that in the next 18 samples, exactly 2 contain
the pollutant.(b) Find the probability that at least 4 sample contain the pollutant (C)
Find the probability that 3 or more but less than 7 samples contains the pollutant.
18
18 2
P( X 2) 0.12 1 0.1
2
16
18
0.12 0.9
2
18!
0.01 0.1853
2!16!
17 18
0.001853
1 2
153 0.001853
0.283509
CIVIL ENGINEERING BUITEMS, QUETTA
29
Problem Statement
Solutions (a)
30
Problem Statement
P( X at least 4) 4 or more
P( X 4) P( X 4) P( X 5) P( X 20) 0.09819684142543751
P(X=4) = 0.07000298491218074
P(X=5) = 0.0217787064171229
P(X=6) = 0.00524302191523329
P(X=7) = 0.0009986708409968172
P(X=8) = 0.00015257471181895818
P(X=9) = 0.000018836384175180025
P(X=10) = 0.0000018836384175180028
P(X=11) = 1.522132054560002e-7
P(X=12) = 9.865670724000017e-9
P(X=13) = 5.059318320000008e-10
P(X=14) = 2.007666000000003e-11
P(X=15) = 5.94864000000001e-13
P(X=16) = 1.2393000000000023e-14
P(X=17) = 1.620000000000003e-16
P(X=18) = 1.0000000000000018e-18
CIVIL ENGINEERING BUITEMS, QUETTA
18
18 4
4
0.1 1 0.1
4
18
14
4
0.1 0.9
4
18!
0.0001 0.22876
4!14!
15 16 17 18
0.000022876
1 2 3 4
3060 0.000022876
0.070000559
11/02/2015
34
35
32
33
31
36
11/02/2015
41
40
PROBLEM
On the basis of past experience, the probability that a certain electrical component
will be satisfactory is 0.98. The components are sampled item by item from
continuous production. In a sample of five components, what are the probabilities of
finding (a) zero, (b) exactly one, (c) exactly two, (d) two or more defectives?
Problem Statement
38
39
37
42
PROBLEM
11/02/2015
43
Problem Statement
44
Calculations Continued
Answer: The binomial distribution applies. Let us start by calculating the
probability of each possible result. We use n = 4, p = 0.40, q = 0.60.
a) What is the probability that one or
more wells will be successful?
4
4 1
P( X 1) 0.41 1 0.4
1
P( X 1, 2,3, 4)
4
3
0.41 0.6
1
P( X 1) P( X 2) P( X 3) P( X 4)
4 0.41 0.6
4
4 2
P( X 2) 0.42 1 0.4
2
4
4 3
P( X 3) 0.43 1 0.4
3
4!
2
0.42 0.6
2! 2!
4
1
0.43 0.6
3
3 4
0.16 0.36
1 2
4!
0.064 0.6
3!1!
45
Calculations Continued
4
0.0384
1
46
Calculations Continued
4
44
P( X 4) 0.4 4 1 0.4
4
4!
0
0.0256 0.6
4! 0!
4!
0.064 1
4! 0!
4
0.0384
1
P( X 1, 2,3, 4)
P( X 1) P( X 2) P( X 3) P( X 4)
0.3456 0.3456 0.1536 0.0256
0.8704
Associated probability
47
Calculations Continued
0.0256
0.1536
Number of Success
48
Calculations Continued
Expected Success in 4
4 $200, 000
$160, 000.
No of Wells
0.3456
0.3456
4!
4 1
0.41 0.6
1! 3!
11/02/2015
1 $600, 000
4 $200, 000
49
Calculations Continued
50
Calculations Continued
0.1296 0.3456
0.4752 or 0.475.
PROBLEM
51
52
Problem Statement
A boiler containing eight welds is manufactured in a small shop. When the
a) If 9.0% of all welds made by Joe Smith are defective, what percentage
of all boilers made by him will have more than one defective weld?
b) Over a long period of time how many times will Joe Smith be reported to
the foreman for each 15 boilers he makes?
c) If Joe makes 15 boilers in a shift, what is the probability that he will be
reported for more than two of these 15 boilers?
P( X one or more) P( X 1)
1 P( X 1)
53
Calculations
54
Calculations Continued
P( X one or more) P( X 1)
8
8
8
7
1 0.090 1 0.09 0.091 1 0.09
1
0
8!
8
7
8!
1
0.090 0.91
0.091 0.91
1! 7!
0! 8!
1 P( X 0) P( X 1)
8
8
8 0
8 1
1 0.090 1 0.09 0.091 1 0.09
1
0
P( X one or more) P( X 1)
0.15767
Answer
11/02/2015
b) Over a long period of time how many times will Joe Smith be
reported to the foreman for each 15 boilers he makes?
If more than one weld is defective on a single boiler, the person who made
that boiler is reported to the foreman.
15 P( X 1)
15 0.15767
2.36519
55
Calculations Continued
56
Calculations Continued
c) If Joe makes 15 boilers in a shift, what is the probability that
P( X more than 2) P( X 2)
1 P( X 2)
1 P( X 2) P( X 1) P( X 0)
Answer
57
Calculations Continued
15
15
15
15 2
15 1
15 0
1 0.1577 2 0.8423 0.15771 0.8423 0.1577 0 0.8423
1
0
2
15!
15!
13
14
15
15!
1
0.1577 2 0.8423
0.1577 0.8423
0.1577 0 0.8423
1!14!
0!15!
2!13!
15
14 15
1
0.02487 0.10742 0.1577 0.090476 11 0.076208
1
1 2
0.429277
Answer
10