Foundations of Probability: Part II: Cyr Emile M'LAN, PH.D
Foundations of Probability: Part II: Cyr Emile M'LAN, PH.D
II
Cyr Emile MLAN, Ph.D.
[email protected]
p. 1/25
Counting Rules
Text Reference: Introduction to Probability and Its
Application, Chapter 2.
Reading Assignment: Sections 2.4-2.5, January
28-February 2
p. 2/25
Counting Techniques
Fundamental Principles of Counting
Our first counting rule applies to any situation in which
an event consists of ordered pairs of objects and we
wish to count the number of such pairs.
Theorem 2.2a:
If the first task of an experiment can result in n1 possible
outcomes and, for each of these such outcomes, the second
task can result in n2 possible outcomes, then there are n1 n2
possible outcomes for the two tasks together.
Example 2.7:
Counting Techniques
Solution:
If we denote the plumbers by P1 , . . . , P12 and the electricians by
Q1 , . . . , Q9 , then we wish the number of pairs of the form (Pi , Qj ).
With n1 = 12 and n2 = 9, the product rule yields N = (12)(9) = 108
possible ways of choosing the two types of contractors.
Counting Techniques
Example 2.8:
Solution:
There are four choices of an appetizer. For each choice
of appetizer, there 7 choices of entre, and that for each
of the 4 7 = 28 choices, there are 2 choices for desert.
Hence, a total of 4 7 2 = 56 different meals can be
ordered.
Foundations of Probability: Part II
p. 5/25
Counting Techniques
Example 2.9:
You have just been hired as a book representative for
Prentice Hall. On your first day, you must travel to seven
schools to introduce yourself. How many different
routes are possible?
Solution:
The seven schools are different. Lets call the schools
A, B, C, D, E, F, and G. School A can be visited first,
second, third, fourth, fifth, sixth or seven. So we have
seven choices for school A. We would then have six
choices for school B, five choices for school C, and so
on. Hence, 7 6 5 4 3 2 1 = 5040 different routes are
possible.
Foundations of Probability: Part II
p. 6/25
Counting Techniques
Example 2.10: Passwords
Suppose a local area network requires eight characters
for password. The first character must be a letter, but
the remaining seven characters can either be a letter or
a digit (0 through 9). Lower- and uppercase letters are
considered the same. How many user names are
possible for the local area network?
Solution:
The first task consisting of selecting a letter has 26
possible outcomes. Each of the remaining 7
consecutive task has 36 possible outcomes. Hence,
there are 26 367 different passwords.
p. 7/25
Counting Techniques
Example 2.9 illustrates a type of counting problem
referred to as a permutation.
Permutations
A permutation is any ordered sequence of r objects taken from a
set of n distinct objects by selecting successively from this set
without replacement so that no element can appear more than once.
p. 8/25
Counting Techniques
Example 2.11: Problem of Repeated Birthdays
Suppose that n people are present in a room. What is
the probability, Pn , that no two persons in the room
celebrate their birthday on the same day?
n
12
16
20
22
23
Pn
.984
.926
.833
.716
.589
.524
.493
Qn
.016
.074
.167
.284
.411
.476
.507
24
28
32
40
48
56
64
Pn
.462
.346
.247
.109
.039
.012
.003
Qn
.538
.654
.753
.891
.961
.988
.997
Pn
Qn
(365)(364)(363) (365 n + 1)
=
.
n
(365)
Foundations of Probability: Part II
= 1 Pn .
p. 9/25
Jokes
p. 10/25
Counting Techniques
Example 2.12:
Ten teaching assistants are available for grading papers
in a particular course. The first consists of four
questions, and the professor wishes to select a different
assistant to grade each question (only one assistant per
question). In how many ways can assistants be chosen
to grade the exam?
Solution:
Here n = 10 and r = 4. The number of different grading
assignments is then P410 = (10)(9)(8)(7) = 5040.
The professor has 5040 possible assignments of
graders.
Counting Techniques
Combinations
Given a set of n distinct objects, any unordered
subset of size r of the objects taken without
replacement is called a combination.
p. 12/25
Counting Techniques
Example 2.13: Connecticut Lotto
Most states conduct lotteries as a means of raising revenue. In
Connecticuts lottery, a player selects six number from 1 to 44. For
each drawing, white balls numbered from 1 to 44 are placed in a
hopper. Six balls are drawn from the hopper at random and without
replacement. To win the jackpot, all six of the players numbers must
match those drawn in any order. To win something, at least four of
the players numbers must match those drawn in any order.
a.
b.
Solution:
Balls are drawn at random and without replacement. In
addition, the order in which the balls are drawn does not
matter. Thus, the number of potential winning number is
44
6 = 7, 059, 052.
Foundations of Probability: Part II
p. 13/25
Counting Techniques
a.
44 =
6
b.
1
7, 059, 052
38
0
10545 + 228 + 1
7, 059, 052
10774
= 0.001526267
7, 059, 052
p. 14/25
Counting Techniques
Example 2.14: Acceptance Sampling
Suppose you have received a shipment of 100 televisions. Although
you dont know this, 6 are defective. To determine whether you will
accept the shipment, you randomly select 5 televisions and test them.
If all 5 televisions work, you will accept the shipment; otherwise the
shipment is reject. What is the probability of accepting the shipment.
Solution:
There are 100 televisions of which we must select 5 at random and
without replacement. In addition the order does not matter. Thus
100
there are 5 = 75, 287, 520 ways of selecting 5 television. To accept
the shipment all 5 televisions must come from the pool of 94
non-defective television. Thus the probability of accepting the
shipment is
6 94
54, 891, 018
0
5
=
0.7291
100
75,
287,
520
5
Foundations of Probability: Part II
p. 15/25
Counting Techniques
Example 2.15:
A closet contains 8 pairs of shoes. If 4 shoes are
randomly selected, what is the probability that there will
be
a. no complete pairs?
b. exactly 1 complete pair?
Solution:
There is a total of 16 shoes of which we must select 4 at
random and without replacement. In addition the order
16
does not matter. Thus there are 4 = 1820 ways of
selecting 4 shoes (this is the size of the sample space).
a. To obtain an incomplete pair, one would have to
select 4 pairs of shoes and in each pair one would
have to select one shoe. Thus,
Foundations of Probability: Part II
p. 16/25
Counting Techniques
8 2 2 2 2
4 1 1 1 1
16
4
8
1120
=
=
61.54%
1820
13
b.
2 1
16
4
24
672
=
=
36.92%
1820
65
p. 17/25
Counting Techniques
Theorem 2.5:
The number of ways of partitioning n distinct objects into
k groups containing n1 , . . . , nk objects respectively, where
Pk
each object appears in exactly one group and i=1 ni = n,
is
The terms
n
n1 n2 nk
n
n1 n2 nk
n!
=
.
n1 !n2 ! nk
Example 2.16:
Counting Rules
Solution:
10!
There are
=
= 2520 different vertical
5! 3! 2!
arrangements of 10 flags.
10
53 2
Example 2.17:
How many different distinguishable strings of letters can
be formed by using all the letters in the word
STATISTICS?
Solution:
Each string formed with will have letters: three Ss,
three Ts, two Is, one A, one C. Hence, the numbers of
choices is
10
10!
=
= 50400
3! 3! 2! 1! 1!
33 211
Foundations of Probability: Part II
p. 19/25
Counting Rules
Example 2.18:
A labor dispute has arisen concerning the distribution of 20
laborers to four different construction jobs. The first job
(considered to be very undesirable) required 6 laborers; the
second, third, and fourth utilized 4,5, and 5 laborers, resp. The
dispute arose over an alleged random distribution of the
laborers to the jobs that placed all 4 members of a particular
ethnic group on job 1. In considering whether the assignment
represented injustice, a mediation panel desired the probability
of the observed event.
(a)
(b)
p. 20/25
Counting Rules
Solution:
(a)
(b)
p. 21/25
Counting Rules
We now consider the case where order is not important
and sampling is carried out with replacement.
Theorem 2.6:
The number of ways of making r selections from n objects
when selection is made with replacement and order is not
important is
n+r1
r
Counting Techniques
Example 2.19: Lottery
Sufficient time is allowed between selections of a ball for the
previously selected ball to be mixed with the others. To win the
jackpot, all six of the players numbers must match those drawn in
any order. What is the probability of winning the jackpot?
Solution:
Balls are drawn at random and with replacement. In
addition, the order in which the balls are drawn does not
matter. Thus, the number of potential winning number is
44+61
49
= 6 = 13, 983, 816. Hence,
6
1
1
P (all 6 winning numbers) = 49 =
13, 983, 816
6
Foundations of Probability: Part II
p. 23/25
Counting Rules
All counting rule can be summarized in the table below
Table 1:
n+r1
r
With Replacement
Without Replacement
Prn
n!
=
(n r)!
Crn
n
r
n!
=
r!(n r)!
p. 24/25
Joke on Probability
p. 25/25