ELEC2600 Lecture 3
ELEC2600 Lecture 3
\
|
=
=
+
=
=
k
n
k k n
n
k
k n n- n- n
k
n k
C
n
k
! )! (
!
!
1 2 1
objects order to ways of number
from objects choose to ways ordered of number
\
|
ball 2
b
a
l
l
1
Example 2.21
What is the number of distinct permutations of k white balls and
n-k black balls (n balls in total)
Solution
Note that each permutation is uniquely specified by the
locations of the white balls.
Thus, the number of permutations is equal to the number of
ways to choose k positions out of n possible positions, C
n
k
.
For example, if there are two white balls and two black balls,
the six combinations are:
Elec2600 Lecture 3 17
WWBB WBWB WBBW BWWB BWBW BBWW
4
2
4! 4 3 2 1
6
(4 2)!2! 2 1 2 1
C
= = =
Example 2.22 (modified)
A batch of 50 items contains 10 defective items. Suppose that
12 items are selected at random and tested. What is the
probability that exactly 5 of the items tested are defective.
Solution
The number of ways of selecting 12 items from 50 is
The number of ways of choosing exactly 5 items is N
1
N
2
where
N
1
= # of ways to select 5 defective items from 10 =
N
2
= # of ways to select 7 non-defective items from 40 =
Thus, the probability is
Elec2600 Lecture 3 18
50
12
| |
|
\ .
10
5
| |
|
\ .
40
7
| |
|
\ .
10 40
5 7
0.0387
50
12
| || |
| |
\ .\ .
=
| |
|
\ .
Example 2.22 More Questions
Can you determine the probability that:
At least 7 selected items are defective?
None of the selected items are defective?
Elec2600 Lecture 3 19
Elec2600 Lecture 3 20
Elec 210: Lecture 3
Computing Probabilities using Counting Methods
Sample Size Computation and Examples
Probabilities and Poker!
Elec2600 Lecture 3 21
Poker
Played with pack of 52 cards with 4 suits
13 hearts : 2 3 4 5 6 7 8 9 10 J Q K A
13 diamonds : 2 3 4 5 6 7 8 9 10 J Q K A
13 clubs: : 2 3 4 5 6 7 8 9 10 J Q K A
13 spades: : 2 3 4 5 6 7 8 9 10 J Q K A
Very Basic Rules (no bets):
Each player dealt 5 cards
Each player looks at cards, and gives back to dealer n cards that they dont
want
Dealer then gives n new cards to the player
Player with highest ranking hand wins!
Elec2600 Lecture 3 22
Poker
What is the
probability of
being dealt each
type of poker
hand?
Elec2600 Lecture 3 23
Poker: Computing Probabilities
Size of sample space:
Number of different possible poker hands
Can you compute this?
Size of event: A particular type of hand is dealt
Number of possibilities (possible outcomes) for this specific hand
E.g., for a Royal Flush, the size is 4
Can you compute this for:
A straight flush
Four of a kind
Full house
Probability of hand being dealt = Size of event / Size of sample space
Elec2600 Lecture 3 24
Poker: Final Note
We are considering here standard 5-card poker
There are different variations, each with different probabilities:
Texas Hold Em
7 Card Poker
Lowball Poker
.
http://en.wikipedia.org/wiki/Poker_probability