Professional Documents
Culture Documents
Probability
Learning Outcome
Apply probabilistic distribution theory
to solve problems in industry.
Contents
4.1 Experiment, Outcomes and Sample
Space.
4.2 Counting Sample Points.
4.3 Calculating Probability.
4.4 Marginal and conditional probabilities.
4.5 Intersection of events and the
multiplicative rule.
4.6 Union of events and the addition rule.
4.1 Experiment, Outcomes and
Sample Space
Experiment is a process that, when
performed, results in one and only one of
many observations which are called
outcomes of the experiment.
Sample space (denoted by S) is a collection
of all outcomes for an experiment.
The elements of a sample space are called
sample points.
Experiment, Outcomes and
Sample Space
Example:
Solution:
a)
b)
c)
4.2 Counting Sample Points
Multiplicative Rule
If an operation can be performed in n1 ways, and
if for each of these a second operation can be
performed in n2 ways, and for each of the first two
a third operation can be performed in n3 ways, and
so forth, then the sequence of k operations can be
performed in n1× n2×…× nk ways.
n1 n2 n3 nk
Counting Sample Points
Example 4.3
How many sample points are in the sample space
when a pair of dice is thrown once?
Solution:
Counting Sample Points
Example 4.4
How many lunches consisting of a soup, sandwich,
dessert and a drink are possible if we can select
from 4 soups, 3 kinds of sandwiches, 5 desserts
and 4 drinks?
Solution:
Counting Sample Points
Permutation
A permutation is an arrangement of all or part of a
set of objects.
The number of permutations of n distinct objects
is n! .
1 2 3 4 n
n n-1 n-2 … 2 1
n places
Example 4.5
How many different arrangements are
possible for arranging three letters a, b and
c?
Solution:
Counting Sample Points
Permutation (cont’d)
The number of permutations of n distinct objects
taken r at a time is
n!
n
Pr
n r !
1 2 3 4 n
r places (n – r ) places
Counting Sample Points
Example 4.6
Two lottery tickets are drawn from 20 for a first
and a second prize. Find the number of sample
points in the space S.
Solution:
Using Excel
Counting Sample Points
Permutation (cont’d)
The number of distinct permutations of n things of which n1 are of
one kind, n2 of a second kind,…, nk of a k th kind is
n!
n1 !n2 !...nk !
n1 … 1 n2 … 1 … nk … 1
n
Counting Sample Points
Permutation (cont’d)
The number of ways of partitioning a set of n
objects into r cells with n1 elements in the first cell,
n2 elements in the second, and so forth, is
n n!
n1 , n2 ,..., nr n1 !n2 !...nr !
n
Counting Sample Points
Example 4.7
In how many ways can 7 scientists be assigned to
one triple and two double hotel rooms?
Solution:
Counting Sample Points
Circular permutations
The number of permutations of n distinct objects
arranged in a circle is (n-1)!
1
n 2
6 4
5
Example:
► In how many ways can 6 committee
members be seated around a round table?
Solution:
(6-1)!=5!=120
Counting Sample Points
Combination
A combination is actually a partition with two cells,
the one cell containing the r objects selected and
the other cell containing the (n - r) objects that are
left.
1,2,3, …, r 1,2,3, … , (n – r)
n
Combination
► The number of combinations of n distinct objects
taken r at a time is
n n!
n
Cr
r r ! n r !
Counting Sample Points
Example 4.8
From 4 chemists and 3 biologists, find the number
of committees that can be formed consisting of 2
chemists and 1 biologist.
Solution:
Using Excel
4.3 Calculating Probability
Probability is a numerical measure of the
likelihood that a specific event will occur.
(denoted by P)
P(Ei )= probability that a simple event Ei will
occur.
P(A )= probability that a compound event A
will occur.
Calculating Probability
Three conceptual approaches to probability
(1)Classical Probability
Applied to compute the probabilities of events for an
experiment in which all outcomes are equally likely.
If an experiment can result in any one of N different
equally likely outcomes, and if exactly n of these
outcomes correspond to event A , then the
probability of event A is
n
P A
N
Calculating Probability
Example 4.9
Find the probability of obtaining an even number
in one roll of a fair die .
Solution:
Calculating Probability
The following probabilities:
The probability that the next baby born at a hospital
is a girl;
The probability that the tossing of an unbalanced
Mutually Exclusive
Not Mutually Exclusive
Mutually Exclusive Events
Example 4.12
Consider the following events for one roll of a die:
A C 2, 4 , P A C 0
A and C
B are not mutually exclusive events
Independent Events
Two events are said to be
independent if the
occurrence of one does
not affect the probability of
the occurrence of the
other. In other words, A
and B are independent
events if
P ( A B ) P ( A) or P( B A) P ( B )
dependent Events
If the occurrence of one
event affects the
probability of the
occurrence of the other
event, then the two
events are said to be
dependent events.
P ( A B ) P ( A) or P( B A) P ( B )
Independent Events
Example 4.13
A box contains a total of 100 CDs that were
manufactured on two machines.
60 9
P A 0.6, P A | D 0.6 P A
100 15
A'
A
Complimentary events
Example 4.14
Let A be the event that a person has normotensive
diastolic blood-pressure (DBP) readings (DBP<90)
and let B be the event that a person has borderline
readings (90DBP<95). Suppose , P(A)=0.7,
P(B)=0.1.
Intersection of events
Let A and B be two events defined in a
A and B
Intersection of events
Joint Probability
The probability of the intersection of two
events is called their joint probability and
written as P (A B ) .
Multiplicative Rule
The probability of the
intersection of two events
A and B is
P ( A B ) P ( A) P ( B A)
Multiplicative Rule
Conditional Probability
If A and B are two events, then
P A B n A B
P A | B and
P( B) n B
P( A B) n A B
P ( B | A)
P( A) n A
given that P( A) 0 and P( B) 0 .
Multiplicative Rule
Example 4.15
A box contains 20 DVDs, 4 of which are defective.
If 2 DVDs are selected at random (without
replacement) from this box,
what is the probability that both are defective?
Example 4.15
Solution:
Let,
G1 event that the first DVD selected is good
D1 event that the first DVD selected is defective
G2 event that the second DVD selected is good
D2 event that the second DVD selected is defective
4 3 3
P D1 D2 P D1 P D2 | D1
20 19 95
Multiplication rule for
independent events
The probability of the
intersection of two
independent events A
and B is
P ( A B) P ( A) P( B)
Example 4.16
The probability that a patient is allergic to
penicillin is 0.20. Suppose this drug is
administered to three patients.
a) Find the probability that all three of them are
allergic to it.
Solution:
a)
Example 4.16 (cont’d)
Solution:
b)
Joint probability of mutually exclusive
events
The joint probability of two mutually exclusive
events is always zero. If A and B are two
mutually exclusive events, then
P( A B) 0
Example 4.17
Find for the events A and B in Example 4.14.
Solution:
A be the event that a person has normotensive
P( A B) 0
4.6 Union of events and the addition
rule
Union of events
Let A and B be two events defined in a sample
space. The union of events A and B is the
collection of all outcomes that belong either to A
or to B or to both A and B and is denoted by “A or
B ” (or A B ).
Union of events and the addition rule
Addition rule
The probability of the union of two events A and B
is P ( A B ) P ( A) P ( B ) P ( A B )
Union of events and the addition rule
Example 4.18
For the following data, what is the probability that
a randomly selected person with multiple jobs is a
male or single?
P ( Br A) P ( Br A)
P( Br | A)
P A P( Bi A)
P ( Br ) P( A | Br )
for r 1, 2,..., k
P( Bi ) P( A | Bi )
Bayes’ Rule
Looks complicated but actually quite simple………
Assume that:
B1 B2 We know P(B1), P(A|B1 ), P(B2)
and P(A|B2 )
A We don’t know P(A).
k k
P( A) P ( Bi A) P( Bi ) P ( A | Bi ).
i 1 i 1
Bayes’ Rule
Now lets twist around a little
B1 B2 What is P (B1|A):
A
P( Br A) P( Br ) P( A | Br )
P( Br | A) for r 1, 2,..., k
P( Bi A) P( Bi ) P( A | Bi )
Bayes’ Rule
Proof
S B1 B2 B3 ... Bk , Bi B j for i j , P Bi 0,
A A S A B1 B2 ... Bk
A B1 A B2 ... A Bk
where, A Bi A B j A Bi B j A
P A P A B1 P A B2 ... P A Bk
P B1 P A | B1 P B2 P A | B2 ... P Bk P A | Bk
k
P Bi P A | Bi
i 1
Bayes’ Rule
Example 4.19
According to a report, 7.0% of the population has
lung disease. Of those having lung disease,
90.0% are smokers; of those not having lung
disease, 25.3% are smokers.
Determine the probability that a randomly
selected smoker has lung disease.
Bayes’ Rule
Solution:
Let L be having lung disease, S be smokers.
P L 0.07, P S | L 0.90, P S | L 0.253
Bayes’ Rule
Example 4.20
In a certain assembly plant, three machines B1, B2, 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 are defective,
respectively.
Now, suppose that a finished product is randomly
selected.
(a) What is the probability that it is defective?
(b) If a product were chosen randomly and found to
be defective, what is the probability that it was made
by machine B3?
Bayes’ Rule
Solution:
The End
Chapter 4