30 秒でわかる
In this episode of Real Numbers, Sawyer asks for the chance that six independently selected cars contain three consecutive taxis. He leaves that challenge open and solves the previous episode’s problem: the chance of at least two undisturbed nights in five is 131/243.
- 1Three taxis in a rowEach of six cars is independently a taxi with probability 1/2. The challenge asks for the probability that at least three adjacent cars are taxis.
- 2A table of sleep outcomesColumns count nights and rows track zero, one, or at least two full nights of sleep.
- 3Combine disjoint pathsAfter two nights, there are two ways to get exactly one full night, each with probability 2/9.
- 4Count the complementSubtract the probability of zero or one undisturbed night from one to obtain 131/243.
ポイント
- Track a probability distribution over states to calculate outcomes one trial at a time.
- Multiply probabilities along independent paths and add mutually exclusive paths leading to the same state.
- The complement of at least two successes is zero or one success.
- The five-night sleep problem has probability 131/243, approximately 0.5391.
- The new challenge asks about a run of three taxis among six independent cars.
チャプターごとに整えた全文を読む
The taxi challenge
Sawyer introduces six independent cars, each with a one-half chance of being a taxi. He asks for the chance of three consecutive taxis.
Welcome to Real Numbers, where we explore mathematics through real-world problems. This week’s challenge takes us to the traffic lights of Metropolis, where half the cars are yellow taxis.
You and a superstitious friend want a taxi that is immediately behind another taxi and immediately in front of a third. Six cars are stopped at a light, and each is independently a taxi with probability 1/2. What is the probability that at least three taxis appear consecutively?

A computational solution
The previous problem asks about two full nights of sleep in five. A table updates the probabilities of zero, one, and at least two full nights.
First, let’s solve last week’s problem. While dog-sitting Fluffy for five nights, we are disturbed on each night with probability 2/3. What is the probability that we get at least two full nights of sleep? One approach tracks the probabilities one night at a time.
Draw a table whose columns represent the number of nights and whose rows represent zero, one, or at least two full nights of sleep. Each entry is the probability of reaching that state after the number of nights in its column. Since we only need at least two, we can combine all larger counts in the final row.
At zero nights, the probability of zero full nights is 1 and the other entries are 0. Each new night leaves the count unchanged with probability 2/3, or increases it with probability 1/3. Arrows between entries can show these transitions.
To follow an arrow, multiply the probability of the starting state by the transition probability. After one night the probabilities are 2/3 for zero full nights and 1/3 for one full night.
After two nights, zero full nights can occur only if we were disturbed on both nights. Independence gives (2/3) × (2/3) = 4/9.
Exactly one full night can happen in two disjoint ways: sleep the first night and be disturbed the second, or be disturbed first and sleep the second. Each has probability 2/9, so adding them gives 4/9.
Two full nights require two undisturbed nights, with probability (1/3) × (1/3) = 1/9. The column sums to 4/9 + 4/9 + 1/9 = 1, as the probabilities of all possible outcomes should.

Continue updating the table through the fifth night to obtain the probability of at least two full nights. Rather than watch every calculation, let’s look at another method based on counting.
A combinatorial solution
Count the complementary cases of zero and one full night. Both methods yield 131/243; the taxi puzzle is left for viewers.
Combinatorics is the mathematics of counting. The complement of at least two full nights is at most one: either exactly zero or exactly one. These cases are disjoint, so subtract their combined probability from 1.
There is only one way to get zero full nights: Fluffy disturbs us all five nights. The probability is (2/3)^5 = 32/243.
Exactly one full night can occur on any of the five nights. Each arrangement has probability (2/3)^4 × (1/3), and there are five such arrangements. Therefore the probability is 5 × (2/3)^4 × (1/3) = 80/243.

The desired probability is 1 − (32/243 + 80/243) = 131/243, or approximately 0.5391. The computational table produces the same result: slightly more than half the time we get at least two full nights of sleep.
Now try the new problem: six cars in a row are independently taxis with probability 1/2 each. What is the chance of three consecutive taxis? Explain your reasoning and submit your solution.
同じチャンネルの記事
1:48:29EN
1:05:45EN
1:25:00EN
1:16:29EN
4:41EN
1:34:29EN