Compute probability last passenger gets own seat
SchonfeldData Scientist · Online AssessmentLast updated
This question evaluates a candidate's understanding of probability theory, combinatorics, and reasoning about sequential random processes, with emphasis on symmetry and conditional dependence.
There are 100 passengers boarding a plane with 100 seats, numbered 1 to 100. Passenger i (for 1 ≤ i ≤ 100) has a ticket for seat i.
The boarding process is as follows:
- Passenger 1 is drunk and ignores the seat assignment. They choose one of the 100 seats uniformly at random and sit there.
- For each subsequent passenger
kfrom 2 to 100:
- If seat
k(their assigned seat) is still empty, they sit in seatk. - Otherwise (if their assigned seat is already occupied), they choose uniformly at random from all the remaining empty seats and sit in one of those.
You are passenger 100. What is the probability that you end up sitting in your own assigned seat (seat 100)?
Give the final probability as a simplified fraction or decimal.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.