Skip to content

Flip 100 Coins

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
If I flip 100 coins and then multiply the number of heads by the number of tails, what is the expected value of that number?
$X$ is the amount of heads. E[X] is equal to $\frac{100}{2}=50$. The expected value of the number of interest is given by \begin{equation} E[X(100-X)] = 100E[X] - E[X^2] \end{equation} Here, $E[X]$ is already known, which is 50. $E[X^2]$ has to be estimated as follows. \begin{equation} Var(X) = E[X^2] - E[X]^2=E[X^2]-50^2 \end{equation} The variance of $X$ is given by the binomial distribution. For $n=100$ and $p=0.5$, we have \begin{equation} Var(X) = n*p(1-p)=25 \end{equation} So, now we know that \begin{equation} E[X^2] = Var(X) + E[X]^2 =25+2500=2525 \end{equation} Then we can conclude that \begin{equation} E[X(100-X)] = 5000 - 2525 = 2475 \end{equation}
Correct Answer: 2475
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
100-Sided Die Probability and StatisticsExpected ValueHard
Unlock with a membership
5 Descending Cards Probability and StatisticsExpected ValueMedium
Unlock with a membership
Basketball Practice #1 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Basketball Practice #2 Probability and StatisticsExpected ValueHard
Unlock with a membership
Biased Coin #1 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Biased Coin #2 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Biased Coin #3 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Biased Coin #4 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Biased Coin #5 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Bullseye Bet Probability and StatisticsExpected ValueMedium
Unlock with a membership
Bust on Ten Probability and StatisticsExpected ValueEasy
Unlock with a membership
Capsule Colors Probability and StatisticsExpected ValueEasy
Unlock with a membership
Card On Top Probability and StatisticsExpected ValueEasy
Unlock with a membership
Cash or Reroll Probability and StatisticsExpected ValueEasy
Example
Coefficient of Variation Probability and StatisticsExpected ValueHard
Unlock with a membership
Coin Toss #2 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Coins and Dice Probability and StatisticsExpected ValueEasy
Unlock with a membership
Collecting Stickers Probability and StatisticsExpected ValueEasy
Unlock with a membership
Company Acquired or Not Probability and StatisticsExpected ValueMedium
Unlock with a membership
Costly Reroll Probability and StatisticsExpected ValueMedium
Unlock with a membership
Croissant or Muffin Probability and StatisticsExpected ValueEasy
Unlock with a membership
Diamond Variance Probability and StatisticsExpected ValueMedium
Unlock with a membership
Dice Game #1 Probability and StatisticsExpected ValueHard
Unlock with a membership
Dice Game #2 Probability and StatisticsExpected ValueHard
Unlock with a membership
Dice Sum Game Probability and StatisticsExpected ValueEasy
Unlock with a membership
Dice vs Coins Probability and StatisticsExpected ValueMedium
Unlock with a membership
Dice With Same Numbers Probability and StatisticsExpected ValueMedium
Example
Different Outcome Probability and StatisticsExpected ValueEasy
Unlock with a membership
Divisible Throws Probability and StatisticsExpected ValueEasy
Unlock with a membership
Double Down Coin Bet Probability and StatisticsExpected ValueEasy
Unlock with a membership
Double Roll Pay Probability and StatisticsExpected ValueEasy
Unlock with a membership
Drunk Student #1 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Drunk Student #2 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Empty Boxes Probability and StatisticsExpected ValueEasy
Unlock with a membership
Exponential Distribution #1 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Faster Sixes Probability and StatisticsExpected ValueHard
Unlock with a membership
First Ace Probability and StatisticsExpected ValueEasy
Unlock with a membership
First Flip Wins Probability and StatisticsExpected ValueEasy
Unlock with a membership
First Prime Probability and StatisticsExpected ValueMedium
Unlock with a membership
Flip 4 Coins Probability and StatisticsExpected ValueMedium
Unlock with a membership
Flowers in Bloom Probability and StatisticsExpected ValueMedium
Unlock with a membership
Free Seat Probability and StatisticsExpected ValueEasy
Unlock with a membership
Free Ticket Probability and StatisticsExpected ValueHard
Unlock with a membership
Game Show Stop or Go Probability and StatisticsExpected ValueEasy
Unlock with a membership
Kelly Betting #1 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Kelly Betting #2 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Largest Sunflower Probability and StatisticsExpected ValueEasy
Unlock with a membership
Other Than Six Probability and StatisticsExpected ValueEasy
Unlock with a membership
Patient Roller Probability and StatisticsExpected ValueEasy
Unlock with a membership
Remaining Coins Probability and StatisticsExpected ValueMedium
Unlock with a membership
Repeating Dice Probability and StatisticsExpected ValueEasy
Example
Roll and Spin Probability and StatisticsExpected ValueEasy
Unlock with a membership
Rowing Reshuffle Probability and StatisticsExpected ValueMedium
Unlock with a membership
Same Flips Probability and StatisticsExpected ValueEasy
Unlock with a membership
Shooting Star Probability and StatisticsExpected ValueEasy
Unlock with a membership
Shuttle Wait Probability and StatisticsExpected ValueEasy
Unlock with a membership
Specific Card #1 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Spin in Two Regions Probability and StatisticsExpected ValueMedium
Unlock with a membership
Sum Remaining Odd Dice Probability and StatisticsExpected ValueEasy
Unlock with a membership
Sum Two Dice Probability and StatisticsExpected ValueEasy
Unlock with a membership
Sum Until Success Probability and StatisticsExpected ValueEasy
Unlock with a membership
Tennis Tournament Probability and StatisticsExpected ValueEasy
Unlock with a membership
The Highest Face Probability and StatisticsExpected ValueMedium
Unlock with a membership
Third Six Probability and StatisticsExpected ValueEasy
Unlock with a membership
Three Blue Orbs Probability and StatisticsExpected ValueMedium
Unlock with a membership
Throw a 6 #1 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Throw a 6 #2 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Throw a 6 #3 Probability and StatisticsExpected ValueHard
Unlock with a membership
Throw a 6 #4 Probability and StatisticsExpected ValueMedium
Unlock with a membership
Throw Until Matched Probability and StatisticsExpected ValueMedium
Example
Toy Collection #1 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Toy Collection #2 Probability and StatisticsExpected ValueEasy
Unlock with a membership
Tripling Die Probability and StatisticsExpected ValueMedium
Unlock with a membership
Two at a Time Probability and StatisticsExpected ValueEasy
Unlock with a membership
Two Consecutive Fives Probability and StatisticsExpected ValueMedium
Unlock with a membership
Two Dice Difference Probability and StatisticsExpected ValueEasy
Unlock with a membership
Two Hues Left Probability and StatisticsExpected ValueHard
Unlock with a membership
Two Rolls Payoff Probability and StatisticsExpected ValueEasy
Unlock with a membership
Two Same Dice Probability and StatisticsExpected ValueEasy
Unlock with a membership
Uniform Distribution #1 Probability and StatisticsExpected ValueHard
Unlock with a membership
Up Days Probability and StatisticsExpected ValueEasy
Unlock with a membership
Voucher Swap Probability and StatisticsExpected ValueEasy
Unlock with a membership
Warming Spells Probability and StatisticsExpected ValueMedium
Unlock with a membership
Widening Wheel Probability and StatisticsExpected ValueHard
Unlock with a membership

Please log in to see the discussion.