SlideShare uma empresa Scribd logo
1 de 57
1
Gambling, Probability, and Risk
(Basic Probability and Counting Methods)
A gambling experiment
 Everyone in the room takes 2 cards
from the deck (keep face down)
 Rules, most to least valuable:

Pair of the same color (both red or both black)

Mixed-color pair (1 red, 1 black)

Any two cards of the same suit

Any two cards of the same color
In the event of a tie, highest card wins (ace is top)
What do you want to bet?
 Look at your two cards.
 Will you fold or bet?
 What is the most rational strategy given
your hand?
Rational strategy
 There are N people in the room
 What are the chances that someone in
the room has a better hand than you?
 Need to know the probabilities of
different scenarios
 We’ll return to this later in the lecture…
Probability
 Probability – the chance that an uncertain
event will occur (always between 0 and 1)
Symbols:
P(event A) = “the probability that event A will occur”
P(red card) = “the probability of a red card”
P(~event A) = “the probability of NOT getting event A” [complement]
P(~red card) = “the probability of NOT getting a red card”
P(A & B) = “the probability that both A and B happen” [joint probability]
P(red card & ace) = “the probability of getting a red ace”
Assessing Probability
1. Theoretical/Classical probability—based on theory
(a priori understanding of a phenomena)
e.g.: theoretical probability of rolling a 2 on a standard die is 1/6
theoretical probability of choosing an ace from a standard deck
is 4/52
theoretical probability of getting heads on a regular coin is 1/2
2. Empirical probability—based on empirical data
e.g.: you toss an irregular die (probabilities unknown) 100 times and
find that you get a 2 twenty-five times; empirical probability of
rolling a 2 is 1/4
empirical probability of an Earthquake in Bay Area by 2032 is .
62 (based on historical data)
empirical probability of a lifetime smoker developing lung cancer
is 15 percent (based on empirical data)
Recent headlines on earthquake
probabiilites…
http://www.guardian.co.uk/world/2011/may/26/italy-quake-expe
Computing theoretical
probabilities:counting methods
Great for gambling! Fun to compute!
If outcomes are equally likely to occur…
outcomesof#total
occurcanAwaysof#
)( =AP
Note: these are called “counting methods” because we have
to count the number of ways A can occur and the number
of total possible outcomes.
Counting methods: Example 1
0769.
52
4
deckin thecardsof#
deckin theacesof#
)aceandraw( ===P
Example 1: You draw one card from a deck of
cards. What’s the probability that you draw an ace?
Counting methods: Example 2
Example 2. What’s the probability that you draw 2 aces when you draw
two cards from the deck?
52
4
deckin thecardsof#
deckin theacesof#
)drawfirstonacedraw( ==P
51
3
deckin thecardsof#
deckin theacesof#
)toodrawsecondonaceandraw( ==P
51
3
x
52
4
ace)ANDacedraw( =∴P
This is a “joint probability”—we’ll get back to this on Wednesday
Counting methods: Example 2
Numerator: A♣A♦, A♣A♥, A♣A♠, A♦A♥, A♦A♠, A♦A♣, A♥A♦, A♥A♣, A♥A♠,
A♠A♣, A♠A♦, or A♠A♥ = 12
drawcouldyousequencescard-2differentof#
aceace,drawcanyouwaysof#
)aces2draw( =P
.
.
.
52 cards 51 cards
.
.
.
Two counting method ways to calculate this:
1. Consider order:
Denominator = 52x51 = 2652 -- why?
5152
12
)aces2draw(
x
P =∴
drawcouldyouhandscard-twodifferentof#
acesofpairsof#
)aces2draw( =P
Numerator: A♣A♦, A♣A♥, A♣A♠, A♦A♥, A♦A♠, A♥A♠ = 6
Divide
out
order!
Denominator =
Counting methods: Example 2
2. Ignore order:
2
5152
6
)aces2draw(
x
P =∴
1326
2
5152
=
x
Summary of Counting Methods
Counting methods for computing probabilities
With replacement
Without replacement
Permutations—
order matters!
Combinations—
Order doesn’t
matter
Without replacement
Summary of Counting Methods
Counting methods for computing probabilities
With replacement
Without replacement
Permutations—
order matters!
Permutations—Order matters!
A permutation is an ordered arrangement of objects.
With replacement=once an event occurs, it can occur again
(after you roll a 6, you can roll a 6 again on the same die).
Without replacement=an event cannot repeat (after you draw
an ace of spades out of a deck, there is 0 probability of
getting it again).
Summary of Counting Methods
Counting methods for computing probabilities
With replacement
Permutations—
order matters!
With Replacement – Think coin tosses, dice, and DNA.
“memoryless” – After you get heads, you have an equally likely chance of getting a
heads on the next toss (unlike in cards example, where you can’t draw the same card
twice from a single deck).
What’s the probability of getting two heads in a row (“HH”) when tossing a coin?
H
H
T
T
H
T
Toss 1:
2 outcomes
Toss 2:
2 outcomes 22
total possible outcomes: {HH, HT, TH, TT}
Permutations—with replacement
outcomespossible2
HHgetway to1
)( 2
=HHP
What’s the probability of 3 heads in a row?
outcomespossible82
1
)( 3
=
=HHHP
Permutations—with replacement
H
H
T
T
H
T
Toss 1:
2 outcomes
Toss 2:
2 outcomes
Toss 3:
2 outcomes
H
T
H
T
H
T
H
T
HH
H
HHT
HTH
HTT
THH
THT
TTH
TTT
36
1
6
66,rollway to1
)6,6( 2
=P
When you roll a pair of dice (or 1 die twice),
what’s the probability of rolling 2 sixes?
What’s the probability of rolling a 5 and a 6?
36
2
6
6,5or5,6:ways2
)6&5( 2
==P
Permutations—with replacement
Summary: order matters, with
replacement
Formally, “order matters” and “with
replacement” use powers
reventsof#the
nevent)peroutcomespossible(# =
Summary of Counting Methods
Counting methods for computing probabilities
Without replacement
Permutations—
order matters!
Permutations—without
replacement
Without replacement—Think cards (w/o reshuffling)
and seating arrangements.
Example: You are moderating a debate of
gubernatorial candidates. How many different ways
can you seat the panelists in a row? Call them
Arianna, Buster, Camejo, Donald, and Eve.
Permutation—without
replacement
 “Trial and error” method:
Systematically write out all combinations:
A B C D E
A B C E D
A B D C E
A B D E C
A B E C D
A B E D C
.
.
.
Quickly becomes a pain!
Easier to figure out patterns using a the
probability tree!
Permutation—without
replacement
E
B
A
C
D
E
A
B
D
A
B
C
D
…….
Seat One:
5 possible
Seat Two:
only 4 possible
Etc….
# of permutations = 5 x 4 x 3 x 2 x 1 = 5!
There are 5! ways to order 5 people in 5 chairs
(since a person cannot repeat)
Permutation—without
replacement
What if you had to arrange 5 people in only 3 chairs
(meaning 2 are out)?
==
!2
!5
12
12345
x
xxxx
E
B
A
C
D
E
A
B
D
A
B
C
D
Seat One:
5 possible
Seat Two:
Only 4 possible
E
B
D
Seat Three:
only 3 possible
)!35(
!5
−
=345 xx
Permutation—without
replacement
!5
!0
!5
)!55(
!5
==
−
Note this also works for 5 people and 5 chairs:
Permutation—without
replacement
5152
)!252(
!52
x=
−
How many two-card hands can I draw from a deck when order
matters (e.g., ace of spades followed by ten of clubs is
different than ten of clubs followed by ace of spades)
.
.
.
52 cards 51 cards
.
.
.
Summary: order matters,
without replacement
Formally, “order matters” and “without
replacement” use factorials
)1)...(2)(1(or
)!(
!
draws)!orchairscardsorpeople(
cards)!orpeople(
+−−−
−
=
−
rnnnn
rn
n
rn
n
Practice problems:
1. A wine taster claims that she can distinguish
four vintages or a particular Cabernet. What
is the probability that she can do this by
merely guessing (she is confronted with 4
unlabeled glasses)? (hint: without
replacement)
2. In some states, license plates have six
characters: three letters followed by three
numbers. How many distinct such plates are
possible? (hint: with replacement)
Answer 1
1. A wine taster claims that she can distinguish four vintages or a particular
Cabernet. What is the probability that she can do this by merely
guessing (she is confronted with 4 unlabeled glasses)? (hint: without
replacement)
P(success) = 1 (there’s only way to get it right!) / total # of guesses she could make
Total # of guesses one could make randomly:
glass one: glass two: glass three: glass four:
4 choices 3 vintages left 2 left no “degrees of freedom” left
∴P(success) = 1 / 4! = 1/24 = .04167
= 4 x 3 x 2 x 1 = 4!
Answer 2
2. In some states, license plates have six characters: three letters
followed by three numbers. How many distinct such plates are
possible? (hint: with replacement)
263
different ways to choose the letters and 103
different ways to
choose the digits 
∴total number = 263
x 103
= 17,576 x 1000 = 17,576,000
Summary of Counting Methods
Counting methods for computing probabilities
Combinations—
Order doesn’t
matter
Without replacement
2. Combinations—Order
doesn’t matter
Introduction to combination function, or
“choosing”





 n
r
rn C or     
Spoken: “n choose r”
Written as:
Combinations
2)!252(
!52
2
5152
−
=
x
How many two-card hands can I draw from a deck when order
does not matter (e.g., ace of spades followed by ten of clubs is
the same as ten of clubs followed by ace of spades)
.
.
.
 
 52 cards 51 cards
.
.
.
 
Combinations
?
4849505152 xxxx
How many five-card hands can I draw from a deck when order
does not matter?
.
.
.
 
 
52 cards
51 cards
.
.
.
 
.
.
.
 
.
.
.
 
.
.
.
 
50 cards
49 cards
48 cards
Combinations
 
How many repeats total??
1.
2.
3.
….
Combinations
 
i.e., how many different ways can you arrange 5 cards…?
1.
2.
3.
….
Combinations
 
That’s a permutation
without replacement.
5! = 120
!5)!552(
!52
!5
4849505152
hands card-5 of # total
−
==
xxxx
Combinations
 How many unique 2-card sets out of 52
cards?
 5-card sets?
 r-card sets?
 r-card sets out of n-cards?
!2)!252(
!52
2
5152
−
=
x
!5)!552(
!52
!5
4849505152
−
=
xxxx
!)!52(
!52
rr−
!)!(
!
rrn
nn
r −
=





Summary: combinations
If r objects are taken from a set of n objects without replacement and 
disregarding order, how many different samples are possible? 
Formally, “order doesn’t matter” and “without replacement”
use choosing
 
!)!(
!
rrn
nn
r −
=





Examples—Combinations
A lottery works by picking 6 numbers from 1 to 49. How
many combinations of 6 numbers could you choose?
816,983,13
!6!43
!4949
6
==





Which of course means that your probability of winning is 1/13,983,816!
Examples
  How many ways can you get 3 heads in 5 coin tosses?  
10
!2!3
!55
3
==





Summary of Counting
Methods
Counting methods for computing probabilities
With replacement: nr
Permutations—
order matters!
Without replacement:
n(n-1)(n-2)…(n-r+1)=
Combinations—
Order doesn’t
matter
Without
replacement:
)!(
!
rn
n
−
!)!(
!
rrn
nn
r −
=





Gambling, revisited
 What are the probabilities of the
following hands?

Pair of the same color

Pair of different colors

Any two cards of the same suit

Any two cards of the same color
Pair of the same color?
 P(pair of the same color) =
nscombinatio card twoof # total
color same of pairs #
−
Numerator = red aces, black aces; red kings, black kings;
etc.…= 2x13 = 26
1326
2
52x51
rDenominato 252 === C
chance 1.96%  
1326
26
  color) same  theofP(pair  So, ==
Any old pair?
 P(any pair) =
1326nscombinatiocardtwoof#total
pairs#
=−
chance5.9%
1326
78
pair)P(any ==∴
pairspossibletotal7813x6
...
6
2
34
!2!2
4!
Ckingsofpairspossibledifferentofnumber
6
2
34
!2!2
4!
Cacesofpairspossibledifferentofnumber
24
24
=
====
====
x
x
Two cards of same suit?
3124784
11!2!
13!
suits4C:Numerator 213 === xxx
chance23.5%
1326
312
suit)sametheofcardsP(two ==∴
Two cards of same color?
Numerator: 26C2 x 2 colors = 26!/(24!2!) = 325 x 2 = 650
Denominator = 1326
So, P (two cards of the same color) = 650/1326 = 49% chance
A little non-intuitive? Here’s another way to look at it…
.
.
.
 
 52 cards
26 red branches
26 black branches
From a Red branch: 26 black left, 25 red left
.
.
.
 
From a Black branch: 26 red left, 25 black left
26x25 RR
26x26 RB
26x26 BR
26x25 BB
50/102
Not
quite
50/100
Rational strategy?
 To bet or fold?
 It would be really complicated to take into
account the dependence between hands in the
class (since we all drew from the same deck), so
we’re going to fudge this and pretend that
everyone had equal probabilities of each type of
hand (pretend we have “independence”)… 
 Just to get a rough idea...
Rational strategy?
**Trick! P(at least 1) = 1- P(0)
P(at least one same-color pair in the class)=
1-P(no same-color pairs in the whole class)=
paircolor-sameoneleastatofchance.4%55.446-1(.98)-1 40
==
40
)98(.)....98(.*)98(.*)98(.class)wholein thepairscolor-sameP(no
.98.0196-1pair)color-sameagettdon'P(I
==
≅=
Rational strategy?
P(at least one pair)= 1-P(no pairs)=
1-(.94)40
=1-8%=92% chance
P(>=1 same suit)= 1-P(all different suits)=
1-(.765)40
=1-.00002 ~ 100%
P(>=1 same color) = 1-P(all different colors)=
1-(.51) 40
=1-.000000000002 ~ 100%
Rational strategy…
 Fold unless you have a same-color pair or a
numerically high pair (e.g., Queen, King,
Ace).
How does this compare to class?
-anyone with a same-color pair?
-any pair?
-same suit?
-same color?
Practice problem:
 A classic problem: “The Birthday Problem.” What’s
the probability that two people in a class of 25 have
the same birthday? (disregard leap years)
What would you guess is the probability?
Birthday Problem Answer
1. A classic problem: “The Birthday Problem.” What’s the
probability that two people in a class of 25 have the same
birthday? (disregard leap years)
 **Trick! 1- P(none) = P(at least one)
Use complement to calculate answer. It’s easier to calculate 1- P(no
matches) = the probability that at least one pair of people have the
same birthday.
What’s the probability of no matches?
Denominator: how many sets of 25 birthdays are there?
--with replacement (order matters)
36525
Numerator: how many different ways can you distribute 365 birthdays
to 25 people without replacement?
--order matters, without replacement:
[365!/(365-25)!]= [365 x 364 x 363 x 364 x ….. (365-24)]
 ∴ P(no matches) = [365 x 364 x 363 x 364 x ….. (365-24)] / 36525
Use SAS as a calculator
 Use SAS as calculator… (my calculator won’t do factorials as high as 365, so I had to
improvise by using a loop…which you’ll learn later in HRP 223):
 
%LET num = 25; *set number in the class;
data null;
top=1; *initialize numerator;
do j=0 to (&num-1) by 1;
top=(365-j)*top;
end;
BDayProb=1-(top/365**&num);
put BDayProb;
run;
 From SAS log:
 
0.568699704, so 57% chance!
For class of 40 (our class)?
For class of 40?
10 %LET num = 40; *set number in the class;
11 data null;
12 top=1; *initialize numerator;
13 do j=0 to (&num-1) by 1;
14 top=(365-j)*top;
15 end;
16 BDayProb=1-(top/365**&num);
17 put BDayProb;
18 run;
0.891231809, i.e. 89% chance of a
match!
In this class?
 --Jan?
 --Feb?
 --March?
 --April?
 --May?
 --June?
 --July?
 --August?
 --September?
 ….

Mais conteúdo relacionado

Mais procurados

Week 5 lecture_math_221_nov_2012
Week 5 lecture_math_221_nov_2012Week 5 lecture_math_221_nov_2012
Week 5 lecture_math_221_nov_2012Brent Heard
 
Week 5 Lecture Math 221 Mar 2012
Week 5 Lecture Math 221 Mar 2012Week 5 Lecture Math 221 Mar 2012
Week 5 Lecture Math 221 Mar 2012Brent Heard
 
Probability - Question Bank for Class/Grade 10 maths.
Probability - Question Bank for Class/Grade 10 maths.Probability - Question Bank for Class/Grade 10 maths.
Probability - Question Bank for Class/Grade 10 maths.Let's Tute
 
03 Probability Review for Analysis of Algorithms
03 Probability Review for Analysis of Algorithms03 Probability Review for Analysis of Algorithms
03 Probability Review for Analysis of AlgorithmsAndres Mendez-Vazquez
 
Gmat quant topic 8 probability solutions
Gmat quant topic 8   probability solutionsGmat quant topic 8   probability solutions
Gmat quant topic 8 probability solutionsRushabh Vora
 
Lesson 11 3 theoretical probability
Lesson 11 3 theoretical probabilityLesson 11 3 theoretical probability
Lesson 11 3 theoretical probabilitymlabuski
 
Gmat quant topic 7 p and c sol
Gmat quant topic 7   p and c solGmat quant topic 7   p and c sol
Gmat quant topic 7 p and c solRushabh Vora
 
Math for 800 06 statistics, probability, sets, and graphs-charts
Math for 800   06 statistics, probability, sets, and graphs-chartsMath for 800   06 statistics, probability, sets, and graphs-charts
Math for 800 06 statistics, probability, sets, and graphs-chartsEdwin Lapuerta
 
Probability revision card
Probability revision cardProbability revision card
Probability revision cardPuna Ripiye
 
Introduction of Probability
Introduction of ProbabilityIntroduction of Probability
Introduction of Probabilityrey castro
 
09a 5 mm1f_methods_unit_1f_-_november_2012
09a 5 mm1f_methods_unit_1f_-_november_201209a 5 mm1f_methods_unit_1f_-_november_2012
09a 5 mm1f_methods_unit_1f_-_november_2012claire meadows-smith
 
Discrete probability distributions
Discrete probability distributionsDiscrete probability distributions
Discrete probability distributionsCikgu Marzuqi
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 

Mais procurados (20)

Probability and Statistics - Week 2
Probability and Statistics - Week 2Probability and Statistics - Week 2
Probability and Statistics - Week 2
 
Week 5 lecture_math_221_nov_2012
Week 5 lecture_math_221_nov_2012Week 5 lecture_math_221_nov_2012
Week 5 lecture_math_221_nov_2012
 
Week 5 Lecture Math 221 Mar 2012
Week 5 Lecture Math 221 Mar 2012Week 5 Lecture Math 221 Mar 2012
Week 5 Lecture Math 221 Mar 2012
 
Probability - Question Bank for Class/Grade 10 maths.
Probability - Question Bank for Class/Grade 10 maths.Probability - Question Bank for Class/Grade 10 maths.
Probability - Question Bank for Class/Grade 10 maths.
 
03 Probability Review for Analysis of Algorithms
03 Probability Review for Analysis of Algorithms03 Probability Review for Analysis of Algorithms
03 Probability Review for Analysis of Algorithms
 
Probability
ProbabilityProbability
Probability
 
Gmat quant topic 8 probability solutions
Gmat quant topic 8   probability solutionsGmat quant topic 8   probability solutions
Gmat quant topic 8 probability solutions
 
Lesson 11 3 theoretical probability
Lesson 11 3 theoretical probabilityLesson 11 3 theoretical probability
Lesson 11 3 theoretical probability
 
Gmat quant topic 7 p and c sol
Gmat quant topic 7   p and c solGmat quant topic 7   p and c sol
Gmat quant topic 7 p and c sol
 
Probability
Probability    Probability
Probability
 
Math for 800 06 statistics, probability, sets, and graphs-charts
Math for 800   06 statistics, probability, sets, and graphs-chartsMath for 800   06 statistics, probability, sets, and graphs-charts
Math for 800 06 statistics, probability, sets, and graphs-charts
 
Basic Concepts of Probability
Basic Concepts of ProbabilityBasic Concepts of Probability
Basic Concepts of Probability
 
Probability revision card
Probability revision cardProbability revision card
Probability revision card
 
Introduction of Probability
Introduction of ProbabilityIntroduction of Probability
Introduction of Probability
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
09a 5 mm1f_methods_unit_1f_-_november_2012
09a 5 mm1f_methods_unit_1f_-_november_201209a 5 mm1f_methods_unit_1f_-_november_2012
09a 5 mm1f_methods_unit_1f_-_november_2012
 
Probability Theory for Data Scientists
Probability Theory for Data ScientistsProbability Theory for Data Scientists
Probability Theory for Data Scientists
 
Discrete probability distributions
Discrete probability distributionsDiscrete probability distributions
Discrete probability distributions
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 
Maths prim 1
Maths  prim 1Maths  prim 1
Maths prim 1
 

Destaque

Topic 6 stat probability theory
Topic 6 stat probability theoryTopic 6 stat probability theory
Topic 6 stat probability theorySizwan Ahammed
 
The fundamental counting principle
The fundamental counting principleThe fundamental counting principle
The fundamental counting principleEmma Balbastro
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpointmesmith1
 
Counting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationCounting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationChie Pegollo
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probabilityIkhlas Rahman
 
Basic Probability
Basic Probability Basic Probability
Basic Probability kaurab
 
Probability powerpoint
Probability powerpointProbability powerpoint
Probability powerpointTiffany Deegan
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probabilityguest45a926
 
Probability Powerpoint
Probability PowerpointProbability Powerpoint
Probability Powerpointspike2904
 

Destaque (10)

Probability
ProbabilityProbability
Probability
 
Topic 6 stat probability theory
Topic 6 stat probability theoryTopic 6 stat probability theory
Topic 6 stat probability theory
 
The fundamental counting principle
The fundamental counting principleThe fundamental counting principle
The fundamental counting principle
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpoint
 
Counting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationCounting Technique, Permutation, Combination
Counting Technique, Permutation, Combination
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probability
 
Basic Probability
Basic Probability Basic Probability
Basic Probability
 
Probability powerpoint
Probability powerpointProbability powerpoint
Probability powerpoint
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probability
 
Probability Powerpoint
Probability PowerpointProbability Powerpoint
Probability Powerpoint
 

Semelhante a Gambling standard

probability 2.ppt
probability 2.pptprobability 2.ppt
probability 2.pptIzah Catli
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Statistics Homework Helper
 
Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andmanishhmishra001
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combinationsarath4droid
 
Week-7_Day-1_Complementary-Events_PPT.pptx
Week-7_Day-1_Complementary-Events_PPT.pptxWeek-7_Day-1_Complementary-Events_PPT.pptx
Week-7_Day-1_Complementary-Events_PPT.pptxDariusRosete
 
Probability maths lesson for education.ppt
Probability maths lesson for education.pptProbability maths lesson for education.ppt
Probability maths lesson for education.pptWaiTengChoo
 
Probability Overview
Probability OverviewProbability Overview
Probability Overviewmmeddin
 
Lesson 11 5 compound events
Lesson 11 5 compound eventsLesson 11 5 compound events
Lesson 11 5 compound eventsmlabuski
 
9.1 Simple Events
9.1 Simple Events9.1 Simple Events
9.1 Simple Eventsrlowery
 

Semelhante a Gambling standard (20)

probability 2.ppt
probability 2.pptprobability 2.ppt
probability 2.ppt
 
Probably probability
Probably probabilityProbably probability
Probably probability
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚
 
Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic and
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Counting
CountingCounting
Counting
 
5. Probability.pdf
5. Probability.pdf5. Probability.pdf
5. Probability.pdf
 
Unit 2 Probability
Unit 2 ProbabilityUnit 2 Probability
Unit 2 Probability
 
Week-7_Day-1_Complementary-Events_PPT.pptx
Week-7_Day-1_Complementary-Events_PPT.pptxWeek-7_Day-1_Complementary-Events_PPT.pptx
Week-7_Day-1_Complementary-Events_PPT.pptx
 
Probability maths lesson for education.ppt
Probability maths lesson for education.pptProbability maths lesson for education.ppt
Probability maths lesson for education.ppt
 
Chapter7ppt.pdf
Chapter7ppt.pdfChapter7ppt.pdf
Chapter7ppt.pdf
 
Probability Overview
Probability OverviewProbability Overview
Probability Overview
 
Mathematics Homework Help
Mathematics Homework HelpMathematics Homework Help
Mathematics Homework Help
 
Unit 1-probability
Unit 1-probabilityUnit 1-probability
Unit 1-probability
 
Probability
ProbabilityProbability
Probability
 
Principles of Counting
Principles of CountingPrinciples of Counting
Principles of Counting
 
Lesson 11 5 compound events
Lesson 11 5 compound eventsLesson 11 5 compound events
Lesson 11 5 compound events
 
9.1 Simple Events
9.1 Simple Events9.1 Simple Events
9.1 Simple Events
 

Mais de Tarun bhatt

Shoppers stop retail visit, analysis,
Shoppers stop retail visit, analysis,Shoppers stop retail visit, analysis,
Shoppers stop retail visit, analysis,Tarun bhatt
 
Pack-its case analysis
Pack-its case  analysisPack-its case  analysis
Pack-its case analysisTarun bhatt
 
Stake holder map
Stake holder mapStake holder map
Stake holder mapTarun bhatt
 
Pgdm2 1544-tarun bhatt
Pgdm2 1544-tarun bhattPgdm2 1544-tarun bhatt
Pgdm2 1544-tarun bhattTarun bhatt
 
Motivational theory(vroom's)
Motivational theory(vroom's)Motivational theory(vroom's)
Motivational theory(vroom's)Tarun bhatt
 

Mais de Tarun bhatt (7)

Shoppers stop retail visit, analysis,
Shoppers stop retail visit, analysis,Shoppers stop retail visit, analysis,
Shoppers stop retail visit, analysis,
 
Pack-its case analysis
Pack-its case  analysisPack-its case  analysis
Pack-its case analysis
 
Stake holder map
Stake holder mapStake holder map
Stake holder map
 
Dragonfly
DragonflyDragonfly
Dragonfly
 
Pgdm2 1544-tarun bhatt
Pgdm2 1544-tarun bhattPgdm2 1544-tarun bhatt
Pgdm2 1544-tarun bhatt
 
Motivational theory(vroom's)
Motivational theory(vroom's)Motivational theory(vroom's)
Motivational theory(vroom's)
 
Tarun
TarunTarun
Tarun
 

Último

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 

Último (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 

Gambling standard

  • 1. 1 Gambling, Probability, and Risk (Basic Probability and Counting Methods)
  • 2. A gambling experiment  Everyone in the room takes 2 cards from the deck (keep face down)  Rules, most to least valuable:  Pair of the same color (both red or both black)  Mixed-color pair (1 red, 1 black)  Any two cards of the same suit  Any two cards of the same color In the event of a tie, highest card wins (ace is top)
  • 3. What do you want to bet?  Look at your two cards.  Will you fold or bet?  What is the most rational strategy given your hand?
  • 4. Rational strategy  There are N people in the room  What are the chances that someone in the room has a better hand than you?  Need to know the probabilities of different scenarios  We’ll return to this later in the lecture…
  • 5. Probability  Probability – the chance that an uncertain event will occur (always between 0 and 1) Symbols: P(event A) = “the probability that event A will occur” P(red card) = “the probability of a red card” P(~event A) = “the probability of NOT getting event A” [complement] P(~red card) = “the probability of NOT getting a red card” P(A & B) = “the probability that both A and B happen” [joint probability] P(red card & ace) = “the probability of getting a red ace”
  • 6. Assessing Probability 1. Theoretical/Classical probability—based on theory (a priori understanding of a phenomena) e.g.: theoretical probability of rolling a 2 on a standard die is 1/6 theoretical probability of choosing an ace from a standard deck is 4/52 theoretical probability of getting heads on a regular coin is 1/2 2. Empirical probability—based on empirical data e.g.: you toss an irregular die (probabilities unknown) 100 times and find that you get a 2 twenty-five times; empirical probability of rolling a 2 is 1/4 empirical probability of an Earthquake in Bay Area by 2032 is . 62 (based on historical data) empirical probability of a lifetime smoker developing lung cancer is 15 percent (based on empirical data)
  • 7. Recent headlines on earthquake probabiilites… http://www.guardian.co.uk/world/2011/may/26/italy-quake-expe
  • 8. Computing theoretical probabilities:counting methods Great for gambling! Fun to compute! If outcomes are equally likely to occur… outcomesof#total occurcanAwaysof# )( =AP Note: these are called “counting methods” because we have to count the number of ways A can occur and the number of total possible outcomes.
  • 9. Counting methods: Example 1 0769. 52 4 deckin thecardsof# deckin theacesof# )aceandraw( ===P Example 1: You draw one card from a deck of cards. What’s the probability that you draw an ace?
  • 10. Counting methods: Example 2 Example 2. What’s the probability that you draw 2 aces when you draw two cards from the deck? 52 4 deckin thecardsof# deckin theacesof# )drawfirstonacedraw( ==P 51 3 deckin thecardsof# deckin theacesof# )toodrawsecondonaceandraw( ==P 51 3 x 52 4 ace)ANDacedraw( =∴P This is a “joint probability”—we’ll get back to this on Wednesday
  • 11. Counting methods: Example 2 Numerator: A♣A♦, A♣A♥, A♣A♠, A♦A♥, A♦A♠, A♦A♣, A♥A♦, A♥A♣, A♥A♠, A♠A♣, A♠A♦, or A♠A♥ = 12 drawcouldyousequencescard-2differentof# aceace,drawcanyouwaysof# )aces2draw( =P . . . 52 cards 51 cards . . . Two counting method ways to calculate this: 1. Consider order: Denominator = 52x51 = 2652 -- why? 5152 12 )aces2draw( x P =∴
  • 12. drawcouldyouhandscard-twodifferentof# acesofpairsof# )aces2draw( =P Numerator: A♣A♦, A♣A♥, A♣A♠, A♦A♥, A♦A♠, A♥A♠ = 6 Divide out order! Denominator = Counting methods: Example 2 2. Ignore order: 2 5152 6 )aces2draw( x P =∴ 1326 2 5152 = x
  • 13. Summary of Counting Methods Counting methods for computing probabilities With replacement Without replacement Permutations— order matters! Combinations— Order doesn’t matter Without replacement
  • 14. Summary of Counting Methods Counting methods for computing probabilities With replacement Without replacement Permutations— order matters!
  • 15. Permutations—Order matters! A permutation is an ordered arrangement of objects. With replacement=once an event occurs, it can occur again (after you roll a 6, you can roll a 6 again on the same die). Without replacement=an event cannot repeat (after you draw an ace of spades out of a deck, there is 0 probability of getting it again).
  • 16. Summary of Counting Methods Counting methods for computing probabilities With replacement Permutations— order matters!
  • 17. With Replacement – Think coin tosses, dice, and DNA. “memoryless” – After you get heads, you have an equally likely chance of getting a heads on the next toss (unlike in cards example, where you can’t draw the same card twice from a single deck). What’s the probability of getting two heads in a row (“HH”) when tossing a coin? H H T T H T Toss 1: 2 outcomes Toss 2: 2 outcomes 22 total possible outcomes: {HH, HT, TH, TT} Permutations—with replacement outcomespossible2 HHgetway to1 )( 2 =HHP
  • 18. What’s the probability of 3 heads in a row? outcomespossible82 1 )( 3 = =HHHP Permutations—with replacement H H T T H T Toss 1: 2 outcomes Toss 2: 2 outcomes Toss 3: 2 outcomes H T H T H T H T HH H HHT HTH HTT THH THT TTH TTT
  • 19. 36 1 6 66,rollway to1 )6,6( 2 =P When you roll a pair of dice (or 1 die twice), what’s the probability of rolling 2 sixes? What’s the probability of rolling a 5 and a 6? 36 2 6 6,5or5,6:ways2 )6&5( 2 ==P Permutations—with replacement
  • 20. Summary: order matters, with replacement Formally, “order matters” and “with replacement” use powers reventsof#the nevent)peroutcomespossible(# =
  • 21. Summary of Counting Methods Counting methods for computing probabilities Without replacement Permutations— order matters!
  • 22. Permutations—without replacement Without replacement—Think cards (w/o reshuffling) and seating arrangements. Example: You are moderating a debate of gubernatorial candidates. How many different ways can you seat the panelists in a row? Call them Arianna, Buster, Camejo, Donald, and Eve.
  • 23. Permutation—without replacement  “Trial and error” method: Systematically write out all combinations: A B C D E A B C E D A B D C E A B D E C A B E C D A B E D C . . . Quickly becomes a pain! Easier to figure out patterns using a the probability tree!
  • 24. Permutation—without replacement E B A C D E A B D A B C D ……. Seat One: 5 possible Seat Two: only 4 possible Etc…. # of permutations = 5 x 4 x 3 x 2 x 1 = 5! There are 5! ways to order 5 people in 5 chairs (since a person cannot repeat)
  • 25. Permutation—without replacement What if you had to arrange 5 people in only 3 chairs (meaning 2 are out)? == !2 !5 12 12345 x xxxx E B A C D E A B D A B C D Seat One: 5 possible Seat Two: Only 4 possible E B D Seat Three: only 3 possible )!35( !5 − =345 xx
  • 27. Permutation—without replacement 5152 )!252( !52 x= − How many two-card hands can I draw from a deck when order matters (e.g., ace of spades followed by ten of clubs is different than ten of clubs followed by ace of spades) . . . 52 cards 51 cards . . .
  • 28. Summary: order matters, without replacement Formally, “order matters” and “without replacement” use factorials )1)...(2)(1(or )!( ! draws)!orchairscardsorpeople( cards)!orpeople( +−−− − = − rnnnn rn n rn n
  • 29. Practice problems: 1. A wine taster claims that she can distinguish four vintages or a particular Cabernet. What is the probability that she can do this by merely guessing (she is confronted with 4 unlabeled glasses)? (hint: without replacement) 2. In some states, license plates have six characters: three letters followed by three numbers. How many distinct such plates are possible? (hint: with replacement)
  • 30. Answer 1 1. A wine taster claims that she can distinguish four vintages or a particular Cabernet. What is the probability that she can do this by merely guessing (she is confronted with 4 unlabeled glasses)? (hint: without replacement) P(success) = 1 (there’s only way to get it right!) / total # of guesses she could make Total # of guesses one could make randomly: glass one: glass two: glass three: glass four: 4 choices 3 vintages left 2 left no “degrees of freedom” left ∴P(success) = 1 / 4! = 1/24 = .04167 = 4 x 3 x 2 x 1 = 4!
  • 31. Answer 2 2. In some states, license plates have six characters: three letters followed by three numbers. How many distinct such plates are possible? (hint: with replacement) 263 different ways to choose the letters and 103 different ways to choose the digits  ∴total number = 263 x 103 = 17,576 x 1000 = 17,576,000
  • 32. Summary of Counting Methods Counting methods for computing probabilities Combinations— Order doesn’t matter Without replacement
  • 33. 2. Combinations—Order doesn’t matter Introduction to combination function, or “choosing”       n r rn C or      Spoken: “n choose r” Written as:
  • 34. Combinations 2)!252( !52 2 5152 − = x How many two-card hands can I draw from a deck when order does not matter (e.g., ace of spades followed by ten of clubs is the same as ten of clubs followed by ace of spades) . . .    52 cards 51 cards . . .  
  • 35. Combinations ? 4849505152 xxxx How many five-card hands can I draw from a deck when order does not matter? . . .     52 cards 51 cards . . .   . . .   . . .   . . .   50 cards 49 cards 48 cards
  • 36. Combinations   How many repeats total?? 1. 2. 3. ….
  • 37. Combinations   i.e., how many different ways can you arrange 5 cards…? 1. 2. 3. ….
  • 38. Combinations   That’s a permutation without replacement. 5! = 120 !5)!552( !52 !5 4849505152 hands card-5 of # total − == xxxx
  • 39. Combinations  How many unique 2-card sets out of 52 cards?  5-card sets?  r-card sets?  r-card sets out of n-cards? !2)!252( !52 2 5152 − = x !5)!552( !52 !5 4849505152 − = xxxx !)!52( !52 rr− !)!( ! rrn nn r − =     
  • 40. Summary: combinations If r objects are taken from a set of n objects without replacement and  disregarding order, how many different samples are possible?  Formally, “order doesn’t matter” and “without replacement” use choosing   !)!( ! rrn nn r − =     
  • 41. Examples—Combinations A lottery works by picking 6 numbers from 1 to 49. How many combinations of 6 numbers could you choose? 816,983,13 !6!43 !4949 6 ==      Which of course means that your probability of winning is 1/13,983,816!
  • 43. Summary of Counting Methods Counting methods for computing probabilities With replacement: nr Permutations— order matters! Without replacement: n(n-1)(n-2)…(n-r+1)= Combinations— Order doesn’t matter Without replacement: )!( ! rn n − !)!( ! rrn nn r − =     
  • 44. Gambling, revisited  What are the probabilities of the following hands?  Pair of the same color  Pair of different colors  Any two cards of the same suit  Any two cards of the same color
  • 45. Pair of the same color?  P(pair of the same color) = nscombinatio card twoof # total color same of pairs # − Numerator = red aces, black aces; red kings, black kings; etc.…= 2x13 = 26 1326 2 52x51 rDenominato 252 === C chance 1.96%   1326 26   color) same  theofP(pair  So, ==
  • 46. Any old pair?  P(any pair) = 1326nscombinatiocardtwoof#total pairs# =− chance5.9% 1326 78 pair)P(any ==∴ pairspossibletotal7813x6 ... 6 2 34 !2!2 4! Ckingsofpairspossibledifferentofnumber 6 2 34 !2!2 4! Cacesofpairspossibledifferentofnumber 24 24 = ==== ==== x x
  • 47. Two cards of same suit? 3124784 11!2! 13! suits4C:Numerator 213 === xxx chance23.5% 1326 312 suit)sametheofcardsP(two ==∴
  • 48. Two cards of same color? Numerator: 26C2 x 2 colors = 26!/(24!2!) = 325 x 2 = 650 Denominator = 1326 So, P (two cards of the same color) = 650/1326 = 49% chance A little non-intuitive? Here’s another way to look at it… . . .    52 cards 26 red branches 26 black branches From a Red branch: 26 black left, 25 red left . . .   From a Black branch: 26 red left, 25 black left 26x25 RR 26x26 RB 26x26 BR 26x25 BB 50/102 Not quite 50/100
  • 49. Rational strategy?  To bet or fold?  It would be really complicated to take into account the dependence between hands in the class (since we all drew from the same deck), so we’re going to fudge this and pretend that everyone had equal probabilities of each type of hand (pretend we have “independence”)…   Just to get a rough idea...
  • 50. Rational strategy? **Trick! P(at least 1) = 1- P(0) P(at least one same-color pair in the class)= 1-P(no same-color pairs in the whole class)= paircolor-sameoneleastatofchance.4%55.446-1(.98)-1 40 == 40 )98(.)....98(.*)98(.*)98(.class)wholein thepairscolor-sameP(no .98.0196-1pair)color-sameagettdon'P(I == ≅=
  • 51. Rational strategy? P(at least one pair)= 1-P(no pairs)= 1-(.94)40 =1-8%=92% chance P(>=1 same suit)= 1-P(all different suits)= 1-(.765)40 =1-.00002 ~ 100% P(>=1 same color) = 1-P(all different colors)= 1-(.51) 40 =1-.000000000002 ~ 100%
  • 52. Rational strategy…  Fold unless you have a same-color pair or a numerically high pair (e.g., Queen, King, Ace). How does this compare to class? -anyone with a same-color pair? -any pair? -same suit? -same color?
  • 53. Practice problem:  A classic problem: “The Birthday Problem.” What’s the probability that two people in a class of 25 have the same birthday? (disregard leap years) What would you guess is the probability?
  • 54. Birthday Problem Answer 1. A classic problem: “The Birthday Problem.” What’s the probability that two people in a class of 25 have the same birthday? (disregard leap years)  **Trick! 1- P(none) = P(at least one) Use complement to calculate answer. It’s easier to calculate 1- P(no matches) = the probability that at least one pair of people have the same birthday. What’s the probability of no matches? Denominator: how many sets of 25 birthdays are there? --with replacement (order matters) 36525 Numerator: how many different ways can you distribute 365 birthdays to 25 people without replacement? --order matters, without replacement: [365!/(365-25)!]= [365 x 364 x 363 x 364 x ….. (365-24)]  ∴ P(no matches) = [365 x 364 x 363 x 364 x ….. (365-24)] / 36525
  • 55. Use SAS as a calculator  Use SAS as calculator… (my calculator won’t do factorials as high as 365, so I had to improvise by using a loop…which you’ll learn later in HRP 223):   %LET num = 25; *set number in the class; data null; top=1; *initialize numerator; do j=0 to (&num-1) by 1; top=(365-j)*top; end; BDayProb=1-(top/365**&num); put BDayProb; run;  From SAS log:   0.568699704, so 57% chance!
  • 56. For class of 40 (our class)? For class of 40? 10 %LET num = 40; *set number in the class; 11 data null; 12 top=1; *initialize numerator; 13 do j=0 to (&num-1) by 1; 14 top=(365-j)*top; 15 end; 16 BDayProb=1-(top/365**&num); 17 put BDayProb; 18 run; 0.891231809, i.e. 89% chance of a match!
  • 57. In this class?  --Jan?  --Feb?  --March?  --April?  --May?  --June?  --July?  --August?  --September?  ….