Professional Documents
Culture Documents
4 – Counting formulae
Number of
outcomes in A
Use counting
Classical formulae to find
𝑵 𝑨 N(A) and N(S)
definition 𝑷 𝑨 =
of 𝑵 𝑺 when the values
probability are large or
experiments are
Number of complex.
outcomes in the
sample space
Counting Rules: 1) Addition rule
2) Multiplication rule
3) Factorials
4) Permutations
5) Combinations
Addition rule
Either can be You can do
Experiment 1
done in one or the
can be done
(n1 + n2) different other but not
in n1 ways
ways both (at the
same time)
Multiplication rule
Experiment 2
can be done Both can be You can/will do
in n2 ways done in both (at the
(n1 x n2) same time)
different ways
Example You have 3 pairs of shoes and 2 pairs of boots.
How many outfits can you make using this footwear?
Addition
rule
Experiment 1:
Pick a pair of shoes You can only pick
shoes OR pick boots
𝑛1 = 3 to wear… 𝑛1 + 𝑛2
Experiment 2: =3+2
…you can do =5
Pick a pair of boots
EITHER exp.
𝑛2 = 2
3 pairs of shoes 2 pairs of boots
3+2=5
You have 3 pairs of shoes and 2 pairs of socks.
Example
How many outfits can you make?
Multiplication
Experiment 1: rule
Pick a pair of shoes
𝑛1 = 3 You can pick BOTH
𝑛1 × 𝑛2
shoes and socks to
Experiment 2: wear =3×2
=6
Pick a pair of socks
𝑛2 = 2
Start
Exp. 1
Exp. 2
1 2 3 4 5 6
You need to choose a 4 digit pin code for your safe.
Example You have the following numbers to choose from:
0, 1, 2, 3, 4, 5
How many possible codes can you choose from?
Number of possibilities
for each position of the 6 × 6 × 6 × 6 = 1296
digits
0 0 0 0
1 1 1 1
Actual possibilities for 2 2 2 2
3 3 3 3
each position of the
4 4 4 4
digits 5 5 5 5
If digits cannot be repeated…
Exp. 3: Exp. 4:
Exp. 2: 4 balls to 3 balls to
Exp. 1: 5 balls to choose from choose from
n1=6 choose from n3=4 n4=3
n2=5
Second position:
First position: Any of the
Any number remaining 5
from 0 to 5 numbers.
Factorial Notation
3 objects:
3x2x1=3!
n Experiments: 4 objects:
4x3x2x1=4!
Exp. 1 – pick which item goes in the 1st
position n objects:
n x (n-1) x (n-2) x… x 3 x 2 x 1 = n !
Exp. 2 – pick which item goes in the 2nd
position
Define: 0! = 1 and 1! = 1
etc
Permutations and Combinations
1st picked:
wins a holiday How many
Suppose you have to Spain
4 people. different
You will pick 2. outcomes
2nd picked : are there?
wins a holiday to
A B C D Cape Town
Cape
Options Spain Are these the same?
Town
1 NO !
2
3
1st line:
A goes to Spain and C goes to
4
Cape Town
5
6 2nd line:
7 C goes to Spain and A goes to
8 Cape Town
9
10 4!
Order
11 Permutation 𝑛𝑃𝑟 = = 12
matters 2!
12
Order does not matter… what does that mean?
1st picked :
wins a holiday to
Suppose you have How many
Spain
4 people. different
You will pick 2. outcomes
2nd picked :
also wins a are there?
A B C D holiday to Spain
Options Spain Spain Are these the same?
Yes !
1
1st line:
A goes to Spain and C goes to
2
Spain
3 2nd line:
C goes to Spain and A goes to
4 Spain
5 Order 4!
does not Combination 𝑛𝐶𝑟 = =6
2! 2!
6 matter
Example How many different 5-digit phone numbers be created from
the numbers: 1, 2, 3, …, 9
if digits must not be repeated?
36409
Are these phone Order matters:
numbers the same? NO Permutation
36490
9 x 8 x 7 x 6 x 5 = 15120
Example 2 How many different 5-card hands can be drawn from a deck of 52 cards?
𝑁 𝐴
Pick 4 𝑃 𝐴 =
3f 𝑁 𝑆
17 n
Combinations 20
𝑁 𝑆 =
4
Out of the 3
Exp. 1: pick 1 f 3
Look at this as 𝑛1 = faulty we are
1
2 experiments. getting 1.
Exp. 2: pick 3 n’s
Out of the 17
17
𝑛2 = non-faulty we
3
are getting 3.
𝑁 𝐴 = 𝑁 1 𝑓𝑎𝑛𝑑 3 𝑛′ 𝑠
3 17
= ×
1 3
We are doing both experiments.
Use multiplication rule.
A = get 3 n’s and 1 f
𝑁 𝐴
𝑃 𝐴 =
𝑁 𝑆
3 17
×
= 1 3
20
Pick 4 4
3f
17 n = 0.421
A batch of 20 computers contains 3 that are faulty. Four computers are
selected at random from this batch.
What is the probability that at least 2 of the computers are faulty?
𝑁 𝐵
𝑃 𝐵 =
𝑁 𝑆
20
𝑁 𝑆 =
4
B = get at least 2 f’s
𝑁 𝐵 = 𝑁 2 𝑓 ′ 𝑠 or 3 𝑓 ′ 𝑠 or 4 𝑓 ′ 𝑠
= 𝑁 2 𝑓 ′𝑠 + 𝑁 3 𝑓 ′𝑠 + 𝑁 4 𝑓 ′𝑠
3 17 0
×
2 2 3 17 since there
× are only 3 f’s
3 1
B = get at least 2 f’s
3 17 3 17
𝑁 𝐵 × + ×
𝑃 𝐵 = = 2 2 3 1
𝑁 𝑆
20
4
3f
Pick 4
17 n
Counting Formulae
= FACT ( number )
= COMBIN(number ; number_chosen )