Probability

Brain teasers and puzzles involving randomness, probability, and statistics

Random Turns

You are in a city with streets on a perfect grid – every street is north-south or east-west. You are are driving north, and decide to randomly turn left or right with equal probability at the next 10 intersections.

After these 10 random turns, what is the probability you are still driving north?

View Solution

Tale of Two Trains

There are two trains that run between two cities. The trains are identical and run on identical routes, so passengers have no preference between the two and would take whichever train that pulls into the station. The trains run at the same frequency: exactly once an hour.

You often travel between the two cities on a whim, and when you do so, you show up at the station at a completely random time. Yet after many trips over the years, you notice that you have taken one of the trains three times as often as the other. Is this just really bad/good luck, or is there another likely explanation?

Continue reading “Tale of Two Trains”

Chance of Rain

You are driving to Seattle to meet some friends, and want to know whether you should bring an umbrella. You call up 3 of your friends who live there and independently ask them if it’s raining. Your friends like to mess with you, so each of them has a 1/3 chance of lying. If all 3 friends tell you it is raining, what is the probability it is actually raining there?


This question was asked in an actual Facebook data scientist/data analytics interview.

Preparing for a brain teaser interview? Check out our ultimate guide to brain teaser interviews.

Continue reading “Chance of Rain”

Game the Coin Flip Game

A small company is losing money and the boss is looking for ways to cut costs. The boss is a foolish gambler, so he offers two employees the choice of either taking flat 10% pay cut, or playing the following coin flip game for each paycheck:

  1. The employees each flip a fair coin – 50% heads and 50% tails; the boss will ensure they are not pulling any tricks.
  2. They can see their own outcome but not the outcome of the other employee’s coin flip. They must then guess the outcome of the other employee’s coin flip.
  3. If at least one of them guesses correctly, they get their full paycheck.
  4. If both of them guess incorrectly, they get nothing.

The two employees take some time to work out a strategy, and then confidently accept the offer to play the coin flip game.

What strategy did they come up with that made them confident the coin flip game will give them more money?

Continue reading “Game the Coin Flip Game”