Skip to content

Knockout Stage

Get access to track progress Get access to bookmark
Asset Pricingx / 34
Behavioral Questionsx / 7
Brain Teasersx / 79
Derivatives Theoryx / 107
Digital Assets - Cryptox / 82
Energy Tradingx / 55
Linear Algebrax / 24
Machine Learningx / 62
Math Questionsx / 50
Probability and Statisticsx / 369
Programmingx / 54
Totalx / 923
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 advance to the next round. The stages look as follows:

knockoutstage

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?
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:
  • 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.
So, the probability that Team #1 and Team #3 meet in the final is equal to \begin{equation} 1 * \frac{16}{31} * \frac{15}{30}  = \frac{8}{31}  \end{equation}
  • "1" because Team #1 can start at either the left side or the right side.
  • $ \frac{16}{31}$ 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.
  • $\frac{15}{30} $ 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.
Alternative method - Combinatorial Analysis

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 half of the three, there is a total of $\binom{32}{16} = 601.080.390$ ways to do so.
  • Considering the positions of Teams #1 (first half), #2 (first half), and #3 (second half) are fixed, the number of successful ways to order the teams in the first half is $\binom{32-3}{16-2} = 77.558.760$.
This is only done for if Teams #1 and #2 are in the first half of the tree, and Team #3 in the other half. It can also happen the other way around. Therefore, the probability that Team #1 and Team #3 end up in the final, is equal to \begin{equation} 2 * \frac{77.558.760}{601.080.390} = \frac{155.117.520}{601.080.390} = \frac{8}{31} \end{equation} Simulation
If 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
Correct Answer: 0.26
Python scratchpad
# Run Python right here in your browser
def two_sum(nums, target):
    seen = {}
    for i, n in enumerate(nums):
        if target - n in seen:
            return [seen[target - n], i]
        seen[n] = i
    return []

print(two_sum([2, 7, 11, 15], 9))  # [0, 1]
Run Python in your browser

Write and execute code — numpy, pandas & scikit-learn included — right on the question page.

Log in to start coding
Title Category Subcategory Difficulty Status
230 Heads Probability and StatisticsGeneralMedium
Unlock with a membership
All Faces Probability and StatisticsGeneralEasy
Example
All-Boys City Probability and StatisticsGeneralEasy
Unlock with a membership
Any Cake Left Probability and StatisticsGeneralEasy
Unlock with a membership
Arcade Triple Probability and StatisticsGeneralEasy
Unlock with a membership
Beta Gap Probability and StatisticsGeneralMedium
Unlock with a membership
Bikes on the Road Probability and StatisticsGeneralEasy
Unlock with a membership
Birthday Problem #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Birthday Problem #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Both Card Colors Probability and StatisticsGeneralEasy
Unlock with a membership
Candle Batch Probability and StatisticsGeneralMedium
Unlock with a membership
Caught Mid-Switch Probability and StatisticsGeneralEasy
Unlock with a membership
Checkmate Probability and StatisticsGeneralEasy
Unlock with a membership
Cherry Streak Probability and StatisticsGeneralMedium
Unlock with a membership
Claw Machine Probability and StatisticsGeneralEasy
Unlock with a membership
Clean Statue Probability and StatisticsGeneralEasy
Unlock with a membership
Coin Race #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Coins in Boxes Probability and StatisticsGeneralEasy
Unlock with a membership
Complementary Probability and StatisticsGeneralMedium
Unlock with a membership
Correlation Flip Probability and StatisticsGeneralMedium
Unlock with a membership
Covariance Ceiling Probability and StatisticsGeneralEasy
Unlock with a membership
Diagonal Duel Probability and StatisticsGeneralMedium
Unlock with a membership
Different Digits Probability and StatisticsGeneralEasy
Unlock with a membership
Even Heads Probability and StatisticsGeneralEasy
Unlock with a membership
Even Sum Probability and StatisticsGeneralEasy
Unlock with a membership
Exponential Distribution #2 Probability and StatisticsGeneralMedium
Unlock with a membership
Five Ascending Cards Probability and StatisticsGeneralMedium
Unlock with a membership
Five In Million Probability and StatisticsGeneralEasy
Unlock with a membership
Football or Cupcake Probability and StatisticsGeneralEasy
Unlock with a membership
Four Digit Difference Probability and StatisticsGeneralHard
Unlock with a membership
Four Fives #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Four Fives #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #2 Probability and StatisticsGeneralEasy
Unlock with a membership
Gambler's Ruin #3 Probability and StatisticsGeneralMedium
Unlock with a membership
Going to the Beach #2 Probability and StatisticsGeneralHard
Unlock with a membership
Higher Card Probability and StatisticsGeneralMedium
Unlock with a membership
How Many Children Probability and StatisticsGeneralHard
Unlock with a membership
Jumping Robots Probability and StatisticsGeneralHard
Unlock with a membership
Low Total Probability and StatisticsGeneralEasy
Unlock with a membership
Lower Die Probability and StatisticsGeneralMedium
Unlock with a membership
Meeting Probability Probability and StatisticsGeneralEasy
Unlock with a membership
Mismatched Dice Probability and StatisticsGeneralEasy
Unlock with a membership
Multiply 3 Dice Probability and StatisticsGeneralEasy
Example
Old Phone #1 Probability and StatisticsGeneralMedium
Unlock with a membership
Old Phone #2 Probability and StatisticsGeneralMedium
Unlock with a membership
Opening Round Draw Probability and StatisticsGeneralEasy
Unlock with a membership
Optimal Spread Probability and StatisticsGeneralHard
Unlock with a membership
Outcome Dice Probability and StatisticsGeneralEasy
Unlock with a membership
Pentagon Ants Probability and StatisticsGeneralEasy
Unlock with a membership
Perfect Correlation Probability and StatisticsGeneralEasy
Unlock with a membership
Poker Chip Drop Probability and StatisticsGeneralEasy
Unlock with a membership
Radar Sweep Probability and StatisticsGeneralMedium
Unlock with a membership
Rainy Day Probability and StatisticsGeneralMedium
Unlock with a membership
Spinner Duel Probability and StatisticsGeneralEasy
Unlock with a membership
Sum Two Random Numbers Probability and StatisticsGeneralEasy
Unlock with a membership
Tennis Game Probability and StatisticsGeneralMedium
Example
Tennis Match: Win in 2 or 3 Sets Probability and StatisticsGeneralMedium
Unlock with a membership
Twin Drums Probability and StatisticsGeneralEasy
Unlock with a membership
Two Digit Number Probability and StatisticsGeneralEasy
Unlock with a membership
Uniform Distribution #2 Probability and StatisticsGeneralMedium
Unlock with a membership
Uniform Distribution #3 Probability and StatisticsGeneralMedium
Unlock with a membership
Uniformly Distributed Profit Probability and StatisticsGeneralMedium
Unlock with a membership
Variance of Two Variables Probability and StatisticsGeneralEasy
Unlock with a membership
Walking Home #1 Probability and StatisticsGeneralEasy
Unlock with a membership
Walking Home #2 Probability and StatisticsGeneralEasy
Unlock with a membership

Please log in to see the discussion.