Lecture 4-Counting Techniques and Probability
Lecture 4-Counting Techniques and Probability
Elementary Statistics
(STATS 1)
Lecture 5: Counting
Techniques
4! 4 3 2 1 24
By special definition, 0! = 1.
Factorial Rule
n!
n Pr
(n r )!
Permutations Rule
(when some items are identical to others)
Requirements:
1. There are n items available, and some items are identical to
others.
2. We select all of the n items (without replacement).
3. We consider rearrangements of distinct items to be different
sequences.
n!
n1 !n2 ! nk !
Combinations Rule
Requirements:
1. There are n different items available.
2. We select r of the n items (without replacement).
3. We consider rearrangements of the same items to be the same.
(The combination of ABC is the same as CBA.)
n!
n Cr
(n r )!r !
Permutations versus
Combinations
6. In How many ways can you arrange two letters from the
word “LOVE”?
7. How many ways can we award a 1st, 2nd , and 3rd place prize among
eight contestant? (GOLD/SILVER/BRONZE)
8. How many ways can you arrange 4 number combinations of
4 digits master lock?
9. In how many ways can you arrange the word STATISTICS?
11. In how many ways can you select 3 engineers from a pool of 15
engineers?
EXAMPLE:
In classical birthday problem, in which we find the probability that
in a randomly selected group of 25 people (assumption), at least 2
share the same birthday. The theoretical solution is somewhat
difficult. It isn’t practical to survey many different groups of 25
people, so a simulation is a helpful alternative. Describe a
simulation that could be used to find the probability that among 25
randomly selected people, at least 2 share the same birthday.
To start the simulation, lets represent birthdays by integers from 1
through 365, where 1=January 1, 2=2 January 2…….365= December 31.
Then use a calculator or computer program to generate 25 random
numbers, each between 1 and 365. Those numbers can then be sorted,
so it becomes easy to examine the list to determine whether any 2 of the
simulated birth dates are the same (see Excel).
Baye’s Theoream
Baye's Theorem is a theorem that relates the two conditional probability.
For example, if is given but we want to find , Baye's theorem can help
us accomplish this.
EXAMPLE:
1. Drug testing. Suppose, a particular test for whether someone has been
using cannabis is 90% sensitive, meaning the true positive rate
(TPR)=0.90. Therefore, it leads to 90% true positive results (correct
identification of drug use) for cannabis users. The test is also 80%
specific, meaning true negative rate (TNR)=0.80. Therefore, the test
correctly identifies 80% of non-use for non-users, but also generates
20% false positives, or false positive rate (FPR)=0.20, for non-users.