• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:23
CEST 13:23
KST 20:23
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Classic Games #3: Rogue vs Serral at BlizzCon7[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway13
Community News
Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues22LiuLi Cup - September 2025 Tournaments3Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris76
StarCraft 2
General
#1: Maru - Greatest Players of All Time Classic Games #3: Rogue vs Serral at BlizzCon Team Liquid Map Contest #21 - Presented by Monster Energy [G] How to watch Korean progamer Streams. Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues
Tourneys
LiuLi Cup - September 2025 Tournaments Maestros of The Game—$20k event w/ live finals in Paris WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast
Brood War
General
alas... i aint gon' lie to u bruh... BW General Discussion [ASL20] Ro16 Preview Pt1: Ascent BGH Auto Balance -> http://bghmmr.eu/ The Korean Terminology Thread
Tourneys
[ASL20] Ro16 Group A [ASL20] Ro16 Group B [Megathread] Daily Proleagues Is there English video for group selection for ASL
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Iron Harvest: 1920+ Nintendo Switch Thread Warcraft III: The Frozen Throne
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Laptop on Rent in Delhi – Smart Choice for Student
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI UK Politics Mega-thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
Collective Intelligence: Tea…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1482 users

Difficult Math Puzzle ! - Page 2

Blogs > kdog3683
Post a Reply
Prev 1 2 All
qrs
Profile Blog Joined December 2007
United States3637 Posts
Last Edited: 2009-05-14 21:50:51
May 14 2009 21:33 GMT
#21
On May 15 2009 06:28 Muirhead wrote:
qrs I don't understand what's wrong (except in case k=0 which doesn't make any sense anyways)

No, that's all I meant: k=0. It makes sense, just it's a special case. It wasn't a serious error in your answer, of course, just a technicality.

I assumed that our answers worked out to the same thing otherwise. Let me recheck that.

Edit: Yeah, I assume it's the same: I wrote
2*[(2n - k - 1)! * n! * n! ]/ [2n! * (n - k)! * (n-1)!]

We can simplify that a little bit, at least:

2*[(2n - k - 1)! * n! * (n-1)]/ [2n! * (n - k)!]


obviously not the most readable notation, and you probably looked at the bottom version and assumed that the last bit of the numerator was (n-1)!, like yours, so the denominator made no sense. But it was just (n-1) and it was coincidental. My method was a bit different from yours: I let the man keep selecting until both boxes were finished and then counted how many of those satisfied the problem's requirements.

Your way is a little nicer, probably: it seems clumsy to be counting picks that he didn't make. Still, it should work out to the same.

Edit2: Anyway, both of us were wrong, I think. Pliers and aznmathfreak were right.
We didn't pay attention to the line "(after absentmindedly placing the box back in his pocket after using the last match)".
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
Dromar
Profile Blog Joined June 2007
United States2145 Posts
Last Edited: 2009-05-14 21:55:03
May 14 2009 21:53 GMT
#22
+ Show Spoiler +

(2C1)(nCn)(nCn-k)/(2nC2n-k)
=
2(nCn-k)/(2nC2n-k)

Explanation: There are 2 boxes, choose one to be empty at the end. In that box, there are n matches, choose n of them. In the other box, there are n matches, choose n-k of them. Finally, in total, there were 2n matches, and you chose 2n-k of them. This problem is very similar to a deck of cards, if you think of splitting the deck into two piles beforehand (ex, red and black).
food
Profile Blog Joined November 2008
United States1951 Posts
May 14 2009 23:26 GMT
#23
i wonder if kdog was capable of solving this
but sometimes human mind evolves at a rapid rate
Can someone ban this guy please? FA?
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
May 14 2009 23:43 GMT
#24
This is Banach match problem isnt it? Way to make your homework kiddo!
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
Last Edited: 2009-05-15 01:13:15
May 15 2009 00:12 GMT
#25
This is more a matter of being careful than being difficult.

I'm wondering if there's a simplified answer to a more difficult version:
what's the probability of winning n games before the opponent wins k games.
ThaddeusK
Profile Joined July 2008
United States231 Posts
May 15 2009 00:46 GMT
#26
+ Show Spoiler +
i have not read other answers because i wanted to try it myself. so if this has been said already, i apologize

i would try this a binomial probability problem, where pulling from the empty box is a failure, and pulling from the non empty box is a success, so you find probability of n-k sucesses in 2n-k trials, where the probability of success and failure is .5

(2n-k)!/((n-k)!(n!)) * (.5)^(n-k) * (.5)^(n)

that looks really ugly in text, but its just this with n= 2n-k and k = n-k
qrs
Profile Blog Joined December 2007
United States3637 Posts
Last Edited: 2009-05-15 02:33:46
May 15 2009 00:49 GMT
#27
On May 15 2009 09:12 igotmyown wrote:
This is more a matter of being careful than being difficult.

I'm wondering if there's a simplified answer to a more difficult version:
what's the probability of winning a best of 2n-1 series (whoever wins n games first) if you're down k games.

It depends how many games are left, of course.

So you're asking, in essence, if player X needs x games to win and player Y needs y games to win (where y = x - k), what is the probability of Y winning.


OK, changed everything.


We need to know how many arrangements there are of y wins by Y and up to x -1 wins by x. The up-to bit is annoying: I'd rather not use a sigma. Fortunately, it does not actually make a difference. So let's count the arrangements of y wins by y and x -1 wins by X. There are (y + x -1)! / [y! (x-1)!] of those. (If you want to know what the match result looks like, just ignore the final x's in each case.) By symmetry, of course, there are (y + x -1)! / [x! (y-1)!] cases where x wins. To make the answer look simpler, let's just call the first number A and the second number B.
Probability of Y winning the match is

A / (A + B)

Let's see if this simplifies:
+ Show Spoiler +

(y + x -1)! / [y! (x-1)!] / (y + x -1)! / [y! (x-1)!] + (y + x -1)! / [x! (y-1)!]

(y + x -1)! / [y! (x-1)!] / (y + x -1)! * (1/ [y! (x-1)!] + 1/ [x! (y-1)!] )

1/ [y! (x-1)!] / (1/ [y! (x-1)!] + 1/ [x! (y-1)!] )

1/ [y! (x-1)!] / ([x! (y-1)!] + [y! (x-1)!] / [y! (x-1)!] * [x! (y-1)!] )

[y! (x-1)!] * [x! (y-1)!] / [y! (x-1)! * ([x! (y-1)!] + [y! (x-1)!)]

[x! (y-1)!] / ([x! (y-1)!] + [y! (x-1)!)]

[x! (y-1)!] / (x! y!/y + y! x!/x)

[x! (y-1)!] / (x! y! (1/y +1/x))

(x! y!/y) / (x! y! (1/y +1/x)

1/y / (1/y + 1/x)

1/y / [(x + y)/yx]

yx / y(x + y)


x / (x + y)

and I am back to the same answer. Unbelievable.

well, someone will correct me if I have erred, I am sure. Right now, it's looking to me like arrangements of wins are actually irrelevant, although I am not sure why.
+ Show Spoiler [original method] +
We need to know how many arrangements there are of y wins by Y and up to x wins by x. The up-to bit is annoying: I'd rather not use a sigma. So let's count the arrangements of y wins by y AND x wins by X. There are (y + x )! / [y! (x)!] of those. In how many of those does y win the match? Well, in all cases where the last win (the guaranteed irrelevant one) is by x. So then, assuming that each player has an equal probability of winning, your answer is:

(y + x- 1)! / y! (x-1)! / (y + x )! / [y! (x)!] We can do some canceling:

x / (y + x)
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
May 15 2009 01:15 GMT
#28
On May 15 2009 09:49 qrs wrote:
Show nested quote +
On May 15 2009 09:12 igotmyown wrote:
This is more a matter of being careful than being difficult.

I'm wondering if there's a simplified answer to a more difficult version:
what's the probability of winning a best of 2n-1 series (whoever wins n games first) if you're down k games.

It depends how many games are left, of course.

So you're asking, in essence, if player X needs x games to win and player Y needs y games to win (where y = x - k), what is the probability of Y winning.

We need to know how many arrangements there are of y wins by Y and up to x wins by x. The up-to bit is annoying: I'd rather not use a sigma. So let's count the arrangements of y wins by y AND x wins by X. There are (y + x )! / [y! (x)!] of those. In how many of those does y win the match? Well, in all cases where the last win (the guaranteed irrelevant one) is by x. So then, assuming that each player has an equal probability of winning, your answer is:

(y + x- 1)! / y! (x-1)! / (y + x )! / [y! (x)!] We can do some canceling:

x / (y + x)

edit: and the simplicity of the reduced form suggests a better way of doing this:

Ignore the arrangement of wins--that's a red herring: Just think about the possible ways that the match can end. For example, if you need 3 wins and I need 5, it could finish with:
3:0 5:0
3:1 5:1
3:2 5:2
3:3
3:4

(y + x) possibilities (one of us gets all his wins: the other gets from 0 to all but one of his wins). x of them are good for me (the ones where you don't get all your wins). That's it.


Different arrangements do not have equal probabilities of occurring.
qrs
Profile Blog Joined December 2007
United States3637 Posts
Last Edited: 2009-05-15 06:28:12
May 15 2009 01:16 GMT
#29
I know, that doesn't make sense to me. So maybe I did make a mistake in the first calculation...
edit: redid everything a different way, still got same answer

Edited my answer above now.
_______

OK, maybe this is a better way to think of it: Suppose we have two equally skilled players, Bob and Mike, just to give them names, competing against each other to win 3 games. It stands to reason that since both are equally skilled, and both are trying to do exactly the same thing, their tasks are equally hard. Therefore we split the chances between the two of them and say that each has a 50% chance of winning.

Now suppose that Bob has to win 3 games while Mike has to win 5. This time, Mike's task is 5/3 as hard as Bob. Bob is the 5:3 favorite, making the odds of his winning 5/8 and the odd's of Mike's winning 3/8.
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
May 15 2009 08:02 GMT
#30
You're omitting the 1/2^(n+r) values. Take the 2004 Boston Red Sox being down 3-0 to the yankees. Boston does not have a 11+4) chance of winning the series.
qrs
Profile Blog Joined December 2007
United States3637 Posts
May 15 2009 13:58 GMT
#31
On May 15 2009 17:02 igotmyown wrote:
You're omitting the 1/2^(n+r) values. Take the 2004 Boston Red Sox being down 3-0 to the yankees. Boston does not have a 11+4) chance of winning the series.

You're right. I think my mistake was in counting only the outcomes that actually happen (with meaningless games not played) and assuming they all had the same probability, whereas really they don't, because "3-0 and wins" is shorthand for all the possible (unplayed) outcomes that begin with 3-0. If I'm going to take the count-the-outcomes approach, I had better count them all. So let me redo this as if it were a showmatch, where all games are played:

P= 2^(y + x - 1) outcomes possible.
F= (y + x - 1 CHOOSE y) + (y + x - 2 CHOOSE y + 1)...(y + 0 CHOOSE y) favorable outcomes. (There's probably a slicker way to count them but I can't think of one at the moment.)
Total = F/P.

So the Red Sox would have a 1/16 chance (but that was your point).
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 2: Playoffs Day 1
Reynor vs ZounLIVE!
Tasteless748
Crank 645
IndyStarCraft 111
CranKy Ducklings94
Rex89
3DClanTV 53
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 748
Crank 645
Harstem 121
IndyStarCraft 111
Rex 89
Lowko72
ProTech11
StarCraft: Brood War
Calm 3165
Rain 2943
Sea 2413
GuemChi 2023
Flash 1444
Bisu 1217
Jaedong 782
firebathero 429
sSak 372
BeSt 311
[ Show more ]
Stork 295
EffOrt 238
Snow 235
hero 211
Soulkey 208
Mini 159
Last 139
Light 128
Barracks 119
Soma 110
Shuttle 103
Backho 85
Pusan 82
Aegong 57
TY 48
ToSsGirL 47
Liquid`Ret 46
JulyZerg 46
Mong 40
ggaemo 40
Rush 37
Icarus 23
soO 22
sorry 21
sas.Sziky 20
Sharp 19
Sexy 14
HiyA 11
ajuk12(nOOB) 10
IntoTheRainbow 7
Bale 6
Terrorterran 5
Britney 0
Dota 2
The International84050
Gorgc6038
Dendi560
BananaSlamJamma128
Counter-Strike
olofmeister1701
shoxiejesuss616
x6flipin492
Other Games
B2W.Neo359
crisheroes329
DeMusliM242
Happy191
Mew2King71
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 1215
Other Games
gamesdonequick793
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• Ler69
League of Legends
• Jankos831
Upcoming Events
Kung Fu Cup
38m
TaeJa vs SHIN
ByuN vs Creator
The PondCast
1h 38m
RSL Revival
22h 38m
Classic vs TriGGeR
ByuN vs Maru
Online Event
1d
Kung Fu Cup
1d
BSL Team Wars
1d 7h
RSL Revival
1d 22h
Maestros of the Game
2 days
ShoWTimE vs Classic
Clem vs herO
Serral vs Bunny
Reynor vs Zoun
Cosmonarchy
2 days
Bonyth vs Dewalt
[BSL 2025] Weekly
2 days
[ Show More ]
RSL Revival
2 days
Maestros of the Game
3 days
BSL Team Wars
3 days
Afreeca Starleague
3 days
Snow vs Sharp
Jaedong vs Mini
Wardi Open
3 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Light vs Speed
Larva vs Soma
LiuLi Cup
5 days
Liquipedia Results

Completed

Copa Latinoamericana 4
SEL Season 2 Championship
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
Chzzk MurlocKing SC1 vs SC2 Cup #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025
BSL Season 21
BSL 21 Team A
EC S1
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.