math puzzle
- emeraldemon
- Gosei
- Posts: 1744
- Joined: Sun May 02, 2010 1:33 pm
- GD Posts: 0
- KGS: greendemon
- Tygem: greendemon
- DGS: smaragdaemon
- OGS: emeraldemon
- Has thanked: 697 times
- Been thanked: 287 times
math puzzle
Each game that I choose "random" in starcraft 2, I'm assigned Zerg, Terran, or Protoss with equal likelihood (I hope!). How many games would I have to play to have a 90% chance of playing each race at least once?
- jts
- Oza
- Posts: 2662
- Joined: Sat Sep 18, 2010 4:17 pm
- Rank: kgs 6k
- GD Posts: 0
- Has thanked: 310 times
- Been thanked: 632 times
Re: math puzzle
emeraldemon wrote:Each game that I choose "random" in starcraft 2, I'm assigned Zerg, Terran, or Protoss with equal likelihood (I hope!). How many games would I have to play to have a 90% chance of playing each race at least once?
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: math puzzle
Sounds like someone needs help with his homework!
No really, I know you'd never do that. This is a terrible place to ask for help on a Saturday night.
No really, I know you'd never do that. This is a terrible place to ask for help on a Saturday night.
- emeraldemon
- Gosei
- Posts: 1744
- Joined: Sun May 02, 2010 1:33 pm
- GD Posts: 0
- KGS: greendemon
- Tygem: greendemon
- DGS: smaragdaemon
- OGS: emeraldemon
- Has thanked: 697 times
- Been thanked: 287 times
Re: math puzzle
jts wrote:
after N games, there will be a sequence like "ZTZPP..." . What I want to know is, what's the probability that sequence contains at least one Z, one T, and one P.
- emeraldemon
- Gosei
- Posts: 1744
- Joined: Sun May 02, 2010 1:33 pm
- GD Posts: 0
- KGS: greendemon
- Tygem: greendemon
- DGS: smaragdaemon
- OGS: emeraldemon
- Has thanked: 697 times
- Been thanked: 287 times
Re: math puzzle
hyperpape wrote:Sounds like someone needs help with his homework!
No really, I know you'd never do that. This is a terrible place to ask for help on a Saturday night.
I thought it was pretty obvious, I was playing some starcraft and this little problem came to me when my "random" wasn't rolling up Zerg
- Joaz Banbeck
- Judan
- Posts: 5546
- Joined: Sun Dec 06, 2009 11:30 am
- Rank: 1D AGA
- GD Posts: 1512
- Kaya handle: Test
- Location: Banbeck Vale
- Has thanked: 1080 times
- Been thanked: 1434 times
Re: math puzzle
Code: Select all
1
|
----------------------------
| | |
2 2 1
| | |
----------- ----------- -----------
| | | | | | | | |
2 3 2 3 2 2 2 2 1
F(1) = 0
F(2) = 0
F(3) = 2/9
F(4) = 12/27
Hmmm...Hyperpape's formula does look right. It generates the right answer for N = 2 and N = 4. It generates a clearly wrong answer ( 4/9 ) for N = 3.
And it generates a rediculous answer ( -1 ) for N = 1.
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
- Joaz Banbeck
- Judan
- Posts: 5546
- Joined: Sun Dec 06, 2009 11:30 am
- Rank: 1D AGA
- GD Posts: 1512
- Kaya handle: Test
- Location: Banbeck Vale
- Has thanked: 1080 times
- Been thanked: 1434 times
Re: math puzzle
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
- emeraldemon
- Gosei
- Posts: 1744
- Joined: Sun May 02, 2010 1:33 pm
- GD Posts: 0
- KGS: greendemon
- Tygem: greendemon
- DGS: smaragdaemon
- OGS: emeraldemon
- Has thanked: 697 times
- Been thanked: 287 times
- Joaz Banbeck
- Judan
- Posts: 5546
- Joined: Sun Dec 06, 2009 11:30 am
- Rank: 1D AGA
- GD Posts: 1512
- Kaya handle: Test
- Location: Banbeck Vale
- Has thanked: 1080 times
- Been thanked: 1434 times
Re: math puzzle
BTW, my logic for finding the formula was to create a sort of 3-fold Pascal's Triangle, and to observe that there are obviously 3^(n-1) possibilities. Next I noticed that the paths that fail are close to 2^n, and should be exactly 2^n. Or so I thought.
I say 'close' because I finally realized that the paths that are all the same values (say, for example, Zerg Zerg Zerg etc) ecompass two 'failures' in one path. That is, they miss BOTH P and T every time, although they are only counted once. There is only one such path.
So the proper adjustment should be 2^n - 1.
( Dang, English is an imprecise language! )
I say 'close' because I finally realized that the paths that are all the same values (say, for example, Zerg Zerg Zerg etc) ecompass two 'failures' in one path. That is, they miss BOTH P and T every time, although they are only counted once. There is only one such path.
So the proper adjustment should be 2^n - 1.
( Dang, English is an imprecise language! )
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: math puzzle
I've always wished I'd taken either a probability or combinatorics class in college. I can think of five or ten classes I'd now trade for it.
- Li Kao
- Lives in gote
- Posts: 643
- Joined: Wed Apr 21, 2010 10:37 am
- Rank: KGS 3k
- GD Posts: 0
- KGS: LiKao / Loki
- Location: Munich, Germany
- Has thanked: 115 times
- Been thanked: 102 times
Re: math puzzle
Two more race distribution problems:
1) If you have all four players in a game of SC:BW are random, what is the probability to have the same race at least three times?
2) In a SC:BW 1on1 with both players random, what is the probability of a mirror matchup?
1) If you have all four players in a game of SC:BW are random, what is the probability to have the same race at least three times?
2) In a SC:BW 1on1 with both players random, what is the probability of a mirror matchup?
Sanity is for the weak.
- ChradH
- Dies with sente
- Posts: 106
- Joined: Wed Apr 21, 2010 8:40 am
- Rank: EGF 8k
- GD Posts: 0
- Universal go server handle: ChradH
- Location: Germany
- Has thanked: 64 times
- Been thanked: 7 times
Re: math puzzle
Joaz Banbeck wrote:( Dang, English is an imprecise language! )
I'm relieved others find it difficult to put their reasoning in words, too.
This is how I got there:
edit: added hide tags
To sig or not to sig, that is the question.
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
Re: math puzzle
In the spirit of Starcraft and math, here is another puzzle: I'm a Protoss player. Suppose I'm equally likely to face a Terran (PvT), a Zerg (PvZ), or a Protoss (PvP) on the ladder. Which of the following will take a fewer number of games on average: successively playing ladder games until I play a PvT then a PvT then a PvZ, or a PvT then a PvZ then a PvT ? (I hate mirror match-ups
.)
-
phillip1882
- Lives in gote
- Posts: 323
- Joined: Sat Jan 08, 2011 7:31 am
- Rank: 6k
- GD Posts: 25
- OGS: phillip1882
- Has thanked: 4 times
- Been thanked: 39 times
Re: math puzzle
i'd say they're both the same.
you have a 1/3 chance of playing any race on a match, and you have three matches. regardless of the arrangement of the races, this is the case.
its a bit like asking if Heads Tails Heads is more likely than Heads Heads Tails.
since starcraft probability math seems to be the theme, here's another.
an opponent will chose Zerg 28% of the time, terran 35% of the time, and protoss 37% of the time.
zerg beats protoss 57% of the time, terran beats zerg 55% of the time, and protoss beats terran 53% of the time.
if you pick a random race, what are your chances of winning?
if you want to pick the OP (overpowered) race, what race should you be?
you have a 1/3 chance of playing any race on a match, and you have three matches. regardless of the arrangement of the races, this is the case.
its a bit like asking if Heads Tails Heads is more likely than Heads Heads Tails.
since starcraft probability math seems to be the theme, here's another.
an opponent will chose Zerg 28% of the time, terran 35% of the time, and protoss 37% of the time.
zerg beats protoss 57% of the time, terran beats zerg 55% of the time, and protoss beats terran 53% of the time.
if you pick a random race, what are your chances of winning?
if you want to pick the OP (overpowered) race, what race should you be?