• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:23
CEST 17:23
KST 00: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
TL.net Map Contest #21: Voting7[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)80Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
Revisiting the game after10 years and wow it's bad Ladder Impersonation (only maybe) 5.0.15 Patch Balance Hotfix (2025-10-8) TL.net Map Contest #21: Voting How to Block Australia, Brazil, Singapore Servers
Tourneys
WardiTV Mondays RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams LiuLi Cup - September 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW General Discussion Question regarding recent ASL Bisu vs Larva game [Interview] Grrrr... 2024 Pros React To: BarrackS + FlaSh Coaching vs SnOw BW caster Sayle
Tourneys
[ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues [ASL20] Semifinal A
Strategy
Current Meta Relatively freeroll strategies BW - ajfirecracker Strategy & Training Siegecraft - a new perspective
Other Games
General Games
Dawn of War IV Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Series you have seen recently... Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Rocket League: Traits, Abili…
TrAiDoS
Inbreeding: Why Do We Do It…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1166 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 States233 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
Wardi Open
11:00
WardiTV Mondays #56
ByuN vs Clem
WardiTV1275
TKL 366
IndyStarCraft 215
Rex133
CranKy Ducklings84
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 366
LamboSC2 237
IndyStarCraft 215
Rex 133
StarCraft: Brood War
Britney 41360
Calm 6448
Rain 4040
Bisu 3532
Horang2 1329
Yoon 1209
Shuttle 952
Jaedong 837
Light 671
Soma 604
[ Show more ]
actioN 569
Snow 454
sSak 207
Mini 206
Soulkey 203
firebathero 192
Leta 182
hero 175
Hyun 162
ggaemo 113
Aegong 88
ZerO 81
Zeus 73
JYJ68
Killer 57
Sharp 57
ToSsGirL 48
sorry 47
Movie 42
Mong 35
Free 31
Terrorterran 21
Rush 20
Noble 7
Dota 2
Gorgc7134
qojqva3280
XcaliburYe403
Other Games
B2W.Neo796
Lowko390
DeMusliM353
Liquid`VortiX159
Skadoodle131
KnowMe118
QueenE60
C9.Mang029
Trikslyr26
ZerO(Twitch)13
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis7048
• Jankos2119
• TFBlade735
Other Games
• Shiphtur72
Upcoming Events
3D!Clan Event
37m
CranKy Ducklings
18h 37m
Safe House 2
1d 1h
Sparkling Tuna Cup
1d 18h
Safe House 2
2 days
Monday Night Weeklies
3 days
Tenacious Turtle Tussle
5 days
The PondCast
5 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
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.