Sign up to mark as complete
Sign up to bookmark this question
Knockout Stage
32 teams are playing in a competition. They are currently at the knock out stage, where each game 2 teams compete with each other to continue to the next round. The stages look as follows:
The teams are numbered from 1 to 32, according to their superiority. In other words, Team #1 always beats Team #2, Team #2 always beats Team #3, etc.
What's the probability that Team #1 and Team #3 will play in the final?
The teams are numbered from 1 to 32, according to their superiority. In other words, Team #1 always beats Team #2, Team #2 always beats Team #3, etc.
What's the probability that Team #1 and Team #3 will play in the final?
Solution
Consider the "two sides" of the knockout stage table, being the left side of the table, and the right side of the table. As you can see in the figure, teams from opposite sides of the final can only meet in the final. Therefore, we need to meet two conditions:
It would be possible to solve this using combinatorial analysis as well, however, it's more intensive to do so.
If you want to simulate this with Python, try the following:
- Team #3 needs to be on the opposite side of the table compared to Team #1, otherwise they won't meet in the final.
- Team #2 needs to be on the same side as Team #1, such that it will be eliminated agains Team #1 and it won't face (and eliminate) Team #3.
(1)
- "1" because Team #1 can start at either the left side or the right side.
- because Team #3 needs to be at the opposite side from Team #1, where it can be at any of the 16 of the remaining 31 spots.
- because team #2 needs to be at the same side as Team #1, where it can be at any of the 15 of the remaining 30 spots. The reason it's 15 and not 16 is because Team #1 already has one spot at that side of the tree.
It would be possible to solve this using combinatorial analysis as well, however, it's more intensive to do so.
- In order to construct a halve of the three, there is a total of ways to do so.
- Considering the positions of Teams #1 (first halve), #2 (first halve), and #3 (second halve) are fixed, the number of successful ways to order the teams in the first halve is .
(2)
SimulationIf you want to simulate this with Python, try the following:
import random
def simulate_tournament():
teams = list(range(1, 33))
random.shuffle(teams)
half1 = teams[:16]
half2 = teams[16:]
if 1 in half1 and 3 in half2 and 2 in half1:
return True
elif 1 in half2 and 3 in half1 and 2 in half2:
return True
else:
return False
def estimate_probability(num_simulations=100000):
count = 0
for _ in range(num_simulations):
if simulate_tournament():
count += 1
return count / num_simulations
probability = estimate_probability()
probability
Related Questions
Title | Category | Subcategory | Difficulty | Status |
---|---|---|---|---|
All Faces | Probability and Statistics Theory | General | Medium | |
All-Boy City | Probability and Statistics Theory | General | Easy | |
Bikes on Road | Probability and Statistics Theory | General | Easy | |
Birthday Problem #1 | Probability and Statistics Theory | General | Easy | |
Birthday Problem #2 | Probability and Statistics Theory | General | Easy | |
Both Card Colors | Probability and Statistics Theory | General | Easy | |
Checkmate | Probability and Statistics Theory | General | Easy | |
Coins Race #1 | Probability and Statistics Theory | General | Easy | |
Complementary | Probability and Statistics Theory | General | Medium | |
Even Heads | Probability and Statistics Theory | General | Easy | |
Even Sum | Probability and Statistics Theory | General | Easy | |
Exponential Distribution #2 | Probability and Statistics Theory | General | Medium | |
Five Ascending Cards | Probability and Statistics Theory | General | Medium | |
Gambler's Ruin | Probability and Statistics Theory | General | Easy | |
Going to the Beach | Probability and Statistics Theory | General | Hard | |
Higher Card | Probability and Statistics Theory | General | Medium | |
Jumping Robots | Probability and Statistics Theory | General | Hard | |
Lower Dice | Probability and Statistics Theory | General | Medium | |
Meeting Probability | Probability and Statistics Theory | General | Easy | |
Old Phone #1 | Probability and Statistics Theory | General | Medium | |
Old Phone #2 | Probability and Statistics Theory | General | Hard | |
Optimal Spread | Probability and Statistics Theory | General | Hard | |
Outcome Dice | Probability and Statistics Theory | General | Easy | |
Perfect Correlation | Probability and Statistics Theory | General | Easy | |
Rainy Day | Probability and Statistics Theory | General | Medium | |
Tennis Game | Probability and Statistics Theory | General | Medium | Example |
Uniform Distribution #2 | Probability and Statistics Theory | General | Medium | |
Uniform Distribution #3 | Probability and Statistics Theory | General | Medium | |
Uniformly Distributed Profit | Probability and Statistics Theory | General | Medium | |
Variance of Two Variables | Probability and Statistics Theory | General | Easy | |
Walking Home | Probability and Statistics Theory | General | Easy | |
Win in 2 or 3 Sets | Probability and Statistics Theory | General | Easy |
Discussion
Please log in to see the discussion.