ch02 - v1 - Edit
ch02 - v1 - Edit
ch02 - v1 - Edit
2-2.1 Introduction
Probability
Example 2-15
2-2 Interpretations of Probability
Definition
2-2 Interpretations of Probability
Example 2-16
Probability Interpretations of Probability
Example priori classical probability
Find the probability of selecting a face card (Jack, Queen,
or King) from a standard deck of 52 cards.
X 12 face cards 3
T 52 total cards 13
28/10/23
Probability Interpretations of Probability
Example empirical classical probability
Find the probability of selecting a male taking statistics
from the population described in the following table:
Probability of a Union
Example
Addition Rules Addition Rules
Example
Find the probability of selecting a male or a statistics
student from the population described in the following
table:
Taking Not Taking Total
Stats Stats
Male 84 145 229
Female 76 134 210
Total 160 279 439
P A B P A P B P A B
0.8 0.6 0.5 0.9
Example
What is the probability of getting a total of 7 or 11 when a pair of fair
dice is tossed?
Solution: Let A be the event that 7 occurs and B the event that 11
comes up.
P(A) = 6/36 and P(B) = 2/36.
The events A and B are mutually exclusive, since a total of 7 and
11 cannot both occur on the same toss. Therefore,
P A B P A P B
1 1 2
6 18 9
Example
If the probabilities are, respectively, 0.09, 0.15, 0.21, and 0.23 that a
person purchasing a new automobile will choose the color green,
white, red, or blue, what is the probability that a given buyer will
purchase a new automobile that comes in one of those colors?
P G W R B P G P W P R P B
0.09 0.15 0.21 0.23 0.68
Example
If the probabilities that an automobile mechanic will service 3, 4, 5,
6, 7, or 8 or more cars on any given workday are, respectively, 0.12,
0.19, 0.28, 0.24, 0.10, and 0.07, what is the probability that he will
service at least 5 cars on his next day at work?
Solution: Let E be the event that at least 5 cars are serviced. Now,
P(E) = 1 - P(E’), where E’ is the event that fewer than 5 cars are
serviced. Since
Example 2-21
2-4 Conditional Probability
CD No CD Total
P(CD and AC)
P(CD | AC)
AC 0.2 0.5 0.7 P(AC)
No AC 0.2 0.1 0.3 0.2
.2857
0.7
Total 0.4 0.6 1.0
Conditional Pro.
Conditional Probability
Example
The probability that a regularly scheduled flight departs on time is
P(D) = 0.83; the probability that it arrives on time is P(A) = 0.82;
and the probability that it departs and arrives on time is P(D ∩ A) =
0.78. Find the probability that a plane
(a) arrives on time, given that it departed on time,
(b) departed on time, given that it has arrived on time.
P D A 0.78
P A | D 0.94
P D 0.83
P D A 0.78
P D | A 0.95
P A 0.82
Conditional Pro.
Conditional Probability
Example
Consider an industrial process in the textile industry in which strips
of a particular type of cloth are being produced. These strips can be
defective in two ways, length and nature of texture. For the case of
the latter, the process of identification is very complicated. It is
known from historical information on the process that 10% of strips
fail the length test, 5% fail the texture test, and only 0.8% fail both
tests. If a strip is selected randomly from the process and a quick
measurement identifies it as failing the length test, what is the
probability that it is texture defective?
Conditional Pro.
Conditional Probability
Solution:
Consider the events
L: length defective, T: texture defective
Given that the strip is length defective, the probability that this strip
is texture defective is given by
P T L 0.008
P T | L 0.08
P L 0.1
Example 2-26
Multiplication Rule
Example
The probability that an automobile battery subject to high engine
compartment temperature suffers low charging current is 0.7. The
probability that a battery is subject to high engine compartment
temperature is 0.05.
The probability that a battery is subject to low charging current and high
engine compartment temperature is
Example
The probability that the first stage of a numerically controlled
machining operation for high-rpm pistons meets specifications is
0.90. Failures are due to metal variations, fixture alignment, cutting
blade condition, vibration, and ambient environmental conditions.
Given that the first stage meets specifications, the probability that a
second stage of machining meets specifications is 0.95. What is the
probability that both stages meet specifications?
Let A and B denote the events that the first and second stages meet
specifications, respectively. The probability requested is
We shall let A be the event that the first fuse is defective and B the
event that the second fuse is defective; then we interpret A ∩ B as
the event that A occurs and then B occurs after A has occurred. The
probability of first removing a defective fuse is 1/4; then the
probability of removing a second defective fuse from the remaining
4 is 4/19. Hence
1 4 1
P A B P A P B | A
4 19 19
Example
One bag contains 4 white balls and 3 black balls, and a second bag
contains 3 white balls and 5 black balls. One ball is drawn from the
first bag and placed unseen in the second bag. What is the
probability that a ball now drawn from the second bag is black?
P A1 A2 A3 P A1 P A2 | A1 P A3 | A1 A2
2 8 12 8
52 51 50 5525
2-5 Multiplication and Total Probability Rules
Example 2-27
Suppose that in semiconductor manufacturing the probability is
0.10 that a chip that is subjected to high levels of contamination
during manufacturing causes a product failure. The probability
is 0.005 that a chip that is not subjected to high contamination
levels during manufacturing causes a product failure. In a
particular production run, 20% of the chip are subject to high
levels of contamination. What is the probability that a product
using one of these chips fails?
Clearly, the requested probability depends on whether or not the
chip was exposed to high levels of contamination.
Example. Semiconductor Contamination
Let F denote the event that the product fails, and let H
denote the event that the chip is exposed to high levels of
contamination.
Example 2-20 (page 35). Semiconductor Contamination
P A P B1 P A | B1 P B2 P A | B2 P B3 P A | B3
0.3 0.02 0.45 0.03 0.25 0.02 0.0245
2-6. Independence
2-6. Independence
2-6. Independence
2-6. Independence
Definition
2-7 Bayes’ Theorem
Bayes’ Theorem
Example 2-38
Bayesian networks are used on the Web sites of hight –
technology manufactures to allow customers to quickly
diagnose problems with products. An oversimplified example
is presented here. A printer manufacturer obtained the
following probabilities from a database of test results. Printer
failures are associated with three types of problems:
hardware, software and other (such as connectors), with
probabilities 0.1, 0.6, and 0.3, respectively. The probability of
a printer failure given a hardware problem is 0.9, given
software problem is 0.2 and given any other type of problem
is 0.5. If a customer enters the manufacturer’s Web site to
diagnose, what is the most likely cause of the problem?
Let the events H, S and O denote a hardware, software and other
problem, respectively and let F denote a printer failure. The most likely
cause of the problem is the one that corresponds to the largest of P(H/F),
P(S|F) and P(O|F). In Bayes’Theorem the denominatior is
Then
P F | H P H 0.9 0.1
PH | F 0.25
PF 0.36
P S | H P S 0.2 0.6
P S | F 0.333
PF 0.36
P F | O P O 0.5 0.3
P O | F 0.417
PF 0.36
Bayes’ Theorem
Example
Suppose that P(A | B) = 0.7, P(A) = 0.5, and P(B) = 0.2.
Determine P(B | A).
P B P A | B 0.2*0.7
P B | A 0.28
P A 0.5
28/10/23
Bayes’ Theorem
Example
In a state where cars have to be tested for the emission of pollutants, 25%
of all cars emit excessive amount of pollutants. When tested, 99% of all
cars that emit excessive amount of pollutants will fail, but 17% of all cars
that do not emit excessive amount of pollutants will also fail. What is the
probability that a car that fails the test actually emits excessive amounts
of pollutants?
P(A) P( B | A) 0.25*0.99
P(A | B) 0.66
P(B) 0.375
28/10/23
Bayes’ Theorem
Example
Two events A and B are such that P[A∩B] = 0.15,
P[A∪B] = 0.65, and P[A|B] = 0.5. Find P[B|A].
28/10/23
Example Bayes’ Theorem
In a certain assembly plant, three machines, B1, B2, and B3, make
30%, 45%, and 25%, respectively, of the products. It is known from
past experience that 2%, 3%, and 2% of the products made by each
machine, respectively, are defective. If a product was chosen
randomly and found to be defective, what is the probability that it
was made by machine B3?
P A1 P B | A1 0.4*0.95
b) P A1 | B 0.618
P B 0.615
Clearly
Clearlythe
theassignment
assignmentofof11or
or00isisarbitrary
arbitrarythough
thoughquite
quiteconvenient.
convenient.
This
Thiswill
willbecome
becomeclear
clearin
inlater
laterchapters.
chapters.The
Therandom
randomvariable
variablefor
for
which
which00and
and11are
arechosen
chosentotodescribe
describethe
thetwo
twopossible
possiblevalues
valuesisiscalled
called
aaBernoulli
Bernoullirandom
randomvariable.
variable.
Random Variables
Example
Example3.4: 3.4:
Statisticians
Statisticiansuse
usesampling
samplingplans
plansto toeither
eitheraccept
acceptor
orreject
rejectbatches
batchesor
or
lots
lotsof
ofmaterial.
material.Suppose
Supposeone
oneofofthese
thesesampling
samplingplans
plansinvolves
involves
sampling
samplingindependently
independently10
10items
itemsfrom
fromaalot
lotof
of100
100items
itemsininwhich
which1212
are
aredefective.
defective.
Example
Example3.7:
3.7:
Let
LetXXbe
bethe
therandom
randomvariable
variabledefined
definedby
bythe
thewaiting
waitingtime,
time,in
inhours,
hours,
between
betweensuccessive
successivespeeders
speedersspotted
spottedby
byaaradar
radarunit.
unit.The
Therandom
random
variable
variableXXtakes
takeson
onall
allvalues
valuesxxfor
forwhich
whichxx≥≥0.0.
2-8. Random Variables
Definition
2-8. Random Variables