• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:08
CEST 05:08
KST 12:08
  • 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
HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6Code S RO8 Preview: herO, Zoun, Bunny, Classic7
Community News
Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1Weekly Cups (June 9-15): herO doubles on GSL week4
StarCraft 2
General
Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BW General Discussion ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ StarCraft & BroodWar Campaign Speedrun Quest Unit and Spell Similarities
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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 Vanilla Mini Mafia
Community
General
Trading/Investing Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 563 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
PiGosaur Monday
00:00
#38
PiGStarcraft690
rockletztv 37
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft690
RuFF_SC2 170
Livibee 105
StarCraft: Brood War
MaD[AoV]227
Icarus 7
Dota 2
monkeys_forever623
febbydoto36
League of Legends
JimRising 777
Counter-Strike
summit1g8803
taco 317
PGG 34
Super Smash Bros
hungrybox550
Heroes of the Storm
Khaldor98
Other Games
tarik_tv8110
Fnx 2980
shahzam649
Maynarde170
WinterStarcraft62
CosmosSc2 18
Organizations
Other Games
gamesdonequick1174
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 102
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki9
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift4819
• Jankos1451
• masondota2553
Other Games
• Scarra1547
Upcoming Events
Replay Cast
20h 53m
The PondCast
1d 6h
RSL Revival
1d 6h
ByuN vs Classic
Clem vs Cham
WardiTV European League
1d 12h
Replay Cast
1d 20h
RSL Revival
2 days
herO vs SHIN
Reynor vs Cure
WardiTV European League
2 days
FEL
2 days
Korean StarCraft League
2 days
CranKy Ducklings
3 days
[ Show More ]
RSL Revival
3 days
FEL
3 days
Sparkling Tuna Cup
4 days
RSL Revival
4 days
FEL
4 days
BSL: ProLeague
4 days
Dewalt vs Bonyth
Replay Cast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
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
IEM Cologne 2025
FISSURE Playground #1
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.