



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Math^ 245:^ Dis^ rete
Mathemati^ s Counting^ and^ Probabilit
y Gambling^ Like^ a^ Mathemati
an Le^ ture^ Notes^ #13^ Peter^ BlomgrenDepartment^ of^ Mathemati^ s^ and
Statisti^ s San^ Diego^ State^ Universit
y San^ Diego,^ CA^ 92182-7720 [email protected]://terminus.SDSU.EDU $Id:^ lecture.tex,v^ 1.
2006/12/02^ 21:08:
blomgren^ Exp^ $ Counting and Probability: Gambling Like a Mathematican – p. 1/
The^ Birthday^ Problem
1 of^2
Consider^ the^ Birthda
y^ problem^ :^ The^ probabilit
y^ that^ n^ p^ eople^ have dierent^ birthdays^ is
given^ by 365 − 0365 −^1365 −^ (nP (n) = · · · ·^365
−^ 1)365!=^365 (365^ −^ n)!^
n· 365 10 20 30
40 50 60 P(n) : The Probability for Different Birthdays (^1) 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0
P(n) P(22) = 0.5243 P(23) = 0.4927 Counting and Probability: Gambling Like a Mathematican – p. 2/
The^ Birthday^ Problem
2 of^2 This^ means^ that^ in a^ group^ of^23 or^ more^ p^ eople,^ the^ probabilit
y
that^ two^ p^ ersons^ have
the^ same^ birthday^ is
greater^ than^ 50%;^ this^ is
somewhat^ surprising!In^ a^ lass^ of^42 students,
the^ probability^ of^42
unique^ birthdays^ is 0.^0860 (8.6%).Sin^ e^ the^ result^ ab^ ove
is^ somewhat^ surprising,
we^ an^ nd^ some^ un- lu^ ky^ fo^ ol^ who^ has^ not
taken^ this^ lass^ and make^ a^ friendly^ w
ager.
In^ a^ ro^ om^ of^23 p^ eople
(sele^ ted^ at^ random
from^ the^ p^ opulation)
you
will^ win^ the^ b^ et^ at^ least
two^ p^ eople^ have^ the
same^ birthday^ 50.73% of^ the^ time.^ If^ you^ b
et^ with^ 1-to-1^ o^ dds, your^ average^ (or^ exp
e^ ted^ )
payo^ (p^ er^ dollar)^ is P
∗^ 2 +^ P∗^ 0 = $1win lose^
.^0146 so,^ in^ the^ long^ run^ y
ou^ make^ money!Counting and Probability: Gambling Like a Mathematican – p. 3/
Exp^ e^ ted^ ValueFormally,^ the^ exp^ e^ ted
value^ is^ dened^ as: Denition:^ Exp^ e^ ted
Value^ Supp^ ose^ the^ p^ ossible
out^ omes^ of^ an^ exp
eriment,^ or^ random^
pro-
ess,^ are^ real^ numb^ ers
a,^ a,^.. .,^ a,^ whi^12 n h^ o^ ur^ with^ probabili- ties^ p,^ p,^.. .,^ p.^12 n
The^ exp^ e^ ted^ value
of^ the^ pro^ ess^ is n∑ apkk k=1 Counting and Probability: Gambling Like a Mathematican – p. 4/
Exp^ e^ ted^ Value:^ Appli
ation^ ^ California^
Lottery^1 of^2
The^ Sup^ er^ Lotto^ Plus
draw^ onsists^ of^ a^ Mega
numb^ er^ in^ the^ range 127,^ and^ ve^ numb
ers^ in^ the^ range^ 147.
Hen^ e,^ there^ are (^ )^4727 ·^ = 41,^4165 ,^353 possible combinations The^ following^ ombinations
onstitute^ winning^ ti^ kets Combination^
∗Possibilities Odds 5 of^5 +^ Mega^
1 1 in^ 41,416, 5 of^5
26 1 in^ 1,592, 4 of^5 +^ Mega^
^ ´^5 ·^ 42 = 210^1 in^ 197,221^4^ ´^54 of 5 4 ·^42 ·^ 26 = 5,^460 1 in^ 7, 3 of 5 + Mega ´^^ ´^542 ·^ = 8,^610 1 in^ 4,810 32 ^ ´^52 of 5 + Mega 2^ ´^42 ·^ = 114,^800 1 in^3
^ ´^^5423 of 5 ·^32 ´^ ·^ 26 = 223,^860 1 in^185 ^ ´^51 of 5 + Mega 1^ ´^42 ·^ = 559,^650 1 in^4
^ ´^50 of 5 + Mega 0^ ´^42 ·^ = 850,^668 1 in^5
Counting and Probability: Gambling Like a Mathematican – p. 5/
Exp^ e^ ted^ Value:^ Appli
ation^ ^ California^
Lottery^2 of^2
In^ a^ draw^ #1837^ (11/10/2004)
the^ winning^ amounts
where Combination^ Odds
∗^ (p)^ Value^ (a)^ k^ k
a·^ pk^ k 5 of^5 +^ Mega^1 in^
5 of^5 1 in
4 of^5 +^ Mega^1
in^ 197,221^ 1,^
4 of^5
1 in^ 7,585^104
3 of^5 +^ Mega^
1 in^ 4,810^49
2 of^5 +^ Mega^
1 in^361
3 of^5
1 in^185
1 of^5 +^ Mega^
1 in^74
0 of^5 +^ Mega^
1 in^49
Exp^ e^ ted^ Value:^
1.^107950 Hen^ e,^ in^ this^ parti^ ula
r^ draw,^ the^ exp^ e^ ted
return^ of^ investment
p^ er
dollar^ was^1.^10.^ The
ja^ kp^ ot^ starts^ at^ $7,000,000,
in^ su^ h^ a^ draw^ the exp^ e^ ted^ value^ is^ (app
roximately)^ only^0.^20
. Counting and Probability: Gambling Like a Mathematican – p. 6/
Appli^ ation^ ^ Mega
Millions^
Even^ Worse^ Odds! The^ Mega^ Millions
draw^ onsists^ of^ a^ Mega^ numb^ er^ in^ the
range
146,^ and^ ve^ numb
ers^ in^ the^ range^ 156.
Hen^ e,^ there^ are (^ )^5646 ·^ = 175,^7115 ,^536 possible combinations The^ following^ ombinations
onstitute^ winning^ ti^ kets Combination^
∗Possibilities Odds 5 of^5 +^ Mega^
1 1 in^ 175,711, 5 of^5
45 1 in^ 3,904, 4 of^5 +^ Mega^
^ ´^5 ·^ 51 = 255^1 in^ 689,065^4^ ´^54 of 5 ·^4 51 ·^ 45 = 11,^475 1 in^ 15, ^53 of 5 + Mega 3 ´^^ ´^51 ·^ = 12,^750 1 in^ 13,781^2 ^ ´^^5513 of 5 ·^32 ´^ ·^ 45 = 573,^750 1 in^306 ^ ´^52 of 5 + Mega 2^ ´^51 ·^ = 208,^250 1 in^3
^ ´^^51 of 5 + Mega ·^1 ´^51 = 1,^249 ,^500 1 in^1414 ^ ´^^50 of 5 + Mega ·^0 ´^51 = 2,^349 ,^060 1 in^755 Counting and Probability: Gambling Like a Mathematican – p. 7/
Exp^ e^ ted^ Value: Comments From^ a^ mathemati^ al
standp^ oint^ it^ makes^
sense^ to^ play^ the^ Califo
rnia
lottery^ (or^ any^ other
state^ lottery,^ e.g.^ p
owerball)^ when^ the
value
of^ the^ ja^ kp^ ot^ approa
hes^ the^ numb^ er^ of^
ombinations^ p^ ossible
in^ the
lottery.^ Note^ that^ y
our^ han^ es^ of^ winning
do^ not^ improve,^ but the^ exp^ e^ ted^ payo
is^ greater^ than^ the
pri^ e^ of^ the^ ti^ ket! In^ all^ Las^ Vegas^ st
yle^ gambling,^ the^ exp
e^ ted^ payo^ is^ less^
than
one-to-one;^ so^ in^ the
long^ run^ the^ house
always^ wins. In^ some^ games,^ e.g.
Bla^ kja^ k^ ,^ the^ o^ dds
(and^ therefore^ exp^ e
ted
payo^ )^ hange^ as^ the
game^ progresses.^ This
is^ where^ ^ ounting^
ards
(keeping^ tra^ k^ of^ what
ards^ have^ b^ een^ pla
yed)^ an^ help^ the^ pla
yer
a^ hieve^ an^ exp^ e^ ted
value^ greater^ than^
1.^ Casinos^ ombat^
this^ by
shuing^ as^ many^ as
8 de^ ks^ of^ ards^ together,
and^ only^ playing^ half of^ the^ ards^ b^ efore^ the
next^ reshue. See:^ Edward^ O.^ Thorp,^
Beat^ the^ Dealer^ A^ Winning
Strategy^ for^ the^ Game^ of Twenty- One,^ Vintage;^ Revised^ edition
(April^ 12,^ 1966).Counting and Probability: Gambling Like a Mathematican – p. 8/
Texas^ Hold'em^
Preop^
2 of^2
Hand^
Count^ Count^
Odds^ Probability Pair^ of^ A^ es^
(^ )^46 1 in^2212
Some^ pair^
in^17 0. A^ e-King^ suited^
4 4 1 in^332
∗^ A e-King o-suit 4 ·^3 4 1 in^111
Two^ ards^ suited^
1 in^4 0. ∗^ a.k.a^ "Big^ Sli^ k" This^ far,^ it's^ pretty^ straight
forward.^ As^ long^ as^
(^ )^4 you know that = 6^2 ,
(^ )^ (^ )^1352 = 78,^ and^22
= 1,^326 al^ ulating
the^ o^ dds/probabilities
an
b^ e^ done^ qui^ kly^ in^ y our^ head^ (with^ some
pra^ ti^ e). Counting and Probability: Gambling Like a Mathematican – p. 13/
Texas^ Hold'em^
The^ Flop^
1 of^3
The^ op^ is^ something
of^ a^ main^ event...^
(^ )^52 There are = 22^3 ,^100
three-^ ard^ ombinations
that^ an^ op. From^ the^ p^ oint^ of^ view
of^ the^ TV-audien^ e,
(^ )^52 −^2 n there are p^ ossible^3 ops^ in^ an^ n-player^ game^ (sin^ e^2 n^ ards
are^ already^ known.) n^2
#^ ops^ 17,296^ 15,
From^ the^ p^ oint^ of^ view
of^ a^ player,^ holding
two^ ards^ from^ the
pre- (op, there are now )^50 = 19,^600 p^ ossible 3 ops.^ From^ now^ on,
unless
otherwise^ sp^ e^ ied,^ we^ take^ the^ stan^ e^ of
one^ player: Counting and Probability: Gambling Like a Mathematican – p. 14/
Texas^ Hold'em^
The^ Flop^
2 of^3 You,^ the^ player,^ hold
A♠-K♠,^ from^ the^ p
reop. Flop^
Count^ Count^ Odds^
Probability^
Hand
Q♠-J♠-10♠^
1 1 1 in^ 19,
−^5 5. 1020 · 10 Royal^ Flush
A♣-A♥-A♦^
1 1 1 in^ 19,
−^5 5. 1020 · 10 Four-of-a-kind K♣-K♥-K♦^
1 1 1 in^ 19,
−^5 5. 1020 · 10 Four-of-a-kind A-A-K^
^ ´^ ´^339 1 in^ 2,178^21
−^4 4. 5918 · 10 Full House^ (A-K)
A-K-K^
^ ´^ ´^339 1 in^ 2,178^12
−^4 4. 5918 · 10 Full House^ (K-A)
A-A-(non^ A/K)^
^ ´^ ´^344132 1 in^14821
0.0067^ Three-of-a-Kind K-K-(non^ A/K)^
^ ´^ ´^344132 1 in^14821
0.0067^ Three-of-a-Kind Any^3 ♠^
`^ ´^11165 1 in^1193
Flush ^3 A-K-(non A/K) 1 ´^ ´`^ ´^344396 1 in^11
2 Pairs
Any^2 ♠^ +^ ♥/♦/♣^ ^ ´^ ´^11392145 1 in^21
∗^1 Flush Draw
No^ ♠,^ A^ or^ K^
`^ ´^33 5,456^1 in^5
0.2784^ Mostly^ Nothing ∗^2
∗^1 In^ ludes^ pair^ of^ a^ es,^ and
[logi^ al^ xor℄^ pair^ of^ kings. ∗^2 In^ ludes^27 A-K-Q-J-
straights,^ and^ an^ untold^ numb^ er^ of^ straight-draws. Counting and Probability: Gambling Like a Mathematican – p. 15/
Texas^ Hold'em^
The^ Flop^
3 of^3 You,^ the^ player,^ hold
K♠-K♣,^ from^ the^ p
reop. Flop^
Count^ Count^ Odds^
Probability^
Hand
3 A^ es^
`^ ´^44 1 in^49003
−^4 2. 0408 · 10 Full
∗^1 House (A-K)
K-A-A^
^ ´^ ´^2412 1 in^163312
−^4 6. 1237 · 10 Full
∗^2 House (K-A)
K-K-other^
48 48 1 in^408
0.0024^ Four-of-a-Kind K-(non A pair) ´^ ´`^ ´^2114132 1 in 112
Full^ House^ (K+other)
Any^3 ♠^
`^ ´^12220 1 in^89
0.0112^ Flush
Draw ^ ´^2 K-(non pair) 1 ´^ ´^ ´^1244384 1 in 211
Three-of-a-Kind Pair-(non K) ´^ ´`^ ´^12441584 1 in 221
∗^32 Pairs
Any^2 ♠^
^ ´^ ´^1239 2,574^1 in^21
∗^4 Flush Draw
^ ´^123 non-pair, non-K 3 ´^ ´^ ´^444 14,080^1 in 111
Pair-of-K
∗^1 Loses^ to^ a^ player^ holding
the^ remaining^ a^ e^ (four-of-a-kind). ∗^2 Loses^ to^ p^ o^ ket^ a^ es^ (four-of-a-kind).∗^3 Loses^ to^ three-of-a-kind.∗^4 Long^ shot,^ results^ in^ ush
1 in^24 (0.0416).^ Counting and Probability: Gambling Like a Mathematican – p. 16/
Texas^ Hold'em^
The^ Turn^ &^ River
1 of^2
You^ hold^ A♠-A♦,^ and
the^ op^ is^ K♣-Q♠
Final^ Hand^
Count^ Count^ Odds
Probability^ Comment A♠-A♦-A♣-A♥^
1 1 1 in^1081
−^4 9. 2507 · 10 You^ win
A-A-K-K-K^
`^ ´^33 1 in^3602
^ ´^ ´^236 1 in^11
A-A-A-(K-K^ or^ Q-Q^ or^ J-J)
^ ´^ ´^291 in^60 0. A-A-(low^ pair)^
^ ´^ ´^8448 1 in^12
^ ´^ ´^29 ·^472 1in^15 0. A-A-K-K^
^ ´^ ´^338114in^9 0. A-K-Q-J-^
^ ´^^ ´^44 ·^ 43 +^1781 in^6 0. A-A^
^ ´^ ´`^ ´^8444481 in^2 0. Note^ that^ two^ pairs
is^ quite^ vulnerable,
sin^ e^ it^ loses^ to^ three-of-a- kind.^ With^ a^ pair^ on
the^ table,^ there^ is^
(^ )^ (^ )(^22 a (·^ 44 +^ )/^12 )^45 = 2
89 /990 = 0.^0899 probabilit
y^ that^ a^ parti^ ular^ opp
onent^ has^ at^ three- or^ four-of-a-kind.^
Counting and Probability: Gambling Like a Mathematican – p. 17/
Texas^ Hold'em^
The^ Turn^ &^ River
2 of^2
You^ hold^ A♦-Q♦,^ and
the^ op^ is^7 ♦-^4 ♦-^2
♣ Final^ Hand^ Count
Count^ Odds^ Probabilit
y^ Note ^ ´^^ ´`^99 ♦-Flush +^21 ´^38378 1 in^3
`^ ´^33 1 in^360
`^ ´^33 1 in^360
^ ´^3 A-A-Q-Q 1´^39 1 in^120
^ ´^3 A-A-7-7 1´^39 1 in^120
^ ´^3 Q-Q-7-7 1´^39 1 in^120
^ ´^6 A-A or Q-Q 1 ´^24144 1 in^8
∗^1 When^ the^ se^ ond^ pair omes^ ompletely^ from^ the
b^ oard^ you^ are^ vulnerable
sin^ e^ a
single^7 in^ an^ opp^ onents^ hand
gives^ him/her^ a^ three-of-a-kind.^ Counting and Probability: Gambling Like a Mathematican – p. 18/
What^ Are^ the^ Odds
of^ Winning?!? So^ far^ we^ have^ al^ ulated
the^ probabilities^ that
you^ an^ form^ ertain hands.The^ real^ question^ is
whether^ you^ will^ win
or^ lose.^ At^ every^ stage
of
the^ game^ you^ an^ in a^ similar^ way^ ompute
the^ probabilities^ that
your
opp^ onent(s)^ have^ stronger
hands^ than^ you.^ After
the^ op,^ there^ are (^ )^47 = 1,^081 two-^ a^2
rd^ ombinations^ (p^ o ket^ ards)^ your^ opp
onent(s)
may^ b^ e^ holding.If^ your^ hand^ is^ vulnerable
to^ single^ ards,^ then
you^ want^ to^ for^ e^ other opp^ onents^ out^ of^ the
game^ by^ b^ etting^ aggressively;
this^ will^ redu^ e your^ risk^ of^ losing^ to
a^ dumb-lu^ k^ hand. In^ the^ long^ run,^ understanding
the^ relative^ strengths
of^ the^ hands and^ b^ eing^ able^ to^ qui
kly^ (in^ your^ head)^
ompute^ rough^ estimates
of
the^ probabilities^ on
the^ y^ should^ give
you^ an^ advantage^ over
the
average^ player.^ Just rememb^ er^ that^ in^ any
given^ round^ of^ play
dumb
lu^ k^ b^ eats^ skill!^ (Never
b^ et^ more^ than^ you^ an
aord^ to^ lose!)Counting and Probability: Gambling Like a Mathematican – p. 19/