No Stopping At Red Lights
2023/07/01
There’s something about red lights that I find irritating, and recently, they’ve become an unavoidable part of my daily routine.
Each day, I undertake a 20-minute stroll from Broadtec Royal International to my office situated near Beijing Jinhui Mansion, both framed in blue. Sounds idyllic, doesn’t it? What’s even better is the simplicity of the route. It’s a straight path along a gentle curve that eliminates any risk of me losing my way.
Despite these pleasures, my journey is regularly interrupted by the nuisance of five intersections (highlighted in red) with traffic lights along my route. More often than not, I find myself halted, at least once, before the red signal. It’s particularly frustrating when the sun is shining mercilessly overhead, and I’m rushing to reach my destination. I can’t help but wonder about the possibility of making this journey without a single stop at a red light, and I’m determined to find the odds.
Model
I recreated the route as seen below. In this simplified illustration, each hatched square symbolizes an intersection, and each rectangle signifies the stretch of road between these intersections. On my journey back home, I start from point P0 and end at P4xy. Needless to say, the reverse journey from home to my office follows the same pattern.
I also need the following assumptions to complete the model:
- Each traffic light shows only red and green (ignore yellow lights), and they last for an equal length of time
- Each time when I have 2 options to choose
- On points like P0, I choose whichever way I can see a green light (so, each way shares an equal probability)
- On points like P0y, I choose P0y→P0xy when there is a green light, otherwise I choose P0y→P1 (also, each way shares an equal probability)
- Each time when I have only 1 option, either on point P0x (P0x→P0xy) or P0xy (P0xy→P1x), I have to wait whenever there is a red light
Based on these assumptions, I know the following initial probabilities
P0=1,P0x=0,P0y=0,
where P0x=0 and P0y=0 indicates I am still at P0.
This is then changed to
P0′=0,P0x′=21,P0y′=21.
For the routes P0y→P0xy and P0x→P0xy, there is still a possibility that I come across a red light after a green light on the routes P0→P0y and P0→P0x, which happens when the previous green light has not finished. For simplicity, I also assume
- I only need half of the green light time to finish P0→P0y or P0→P0x, then I have to wait at the red light in such cases
So, the probability of P0y→P0xy and P0x→P0xy both become half of their previous ones, meaning that the probability of reaching the upper-right corner is
P0xy=21P0x′+21P0y′,=21⋅21+21⋅21,=21.
Solution
Let’s take a closer look at a general model unit as below, where i=0,1,2,⋯.
For each iteration, we follow the same pattern, getting Pi+1 and P(i+1)x from Pi and Pix. After (i+1)th iteration,
Pi+1P(i+1)x=41Pi,=Pixy=21Pix′+21Piy′+21Pix=21Pi+21Pix.
So, for n≥1, knowing the initial probabilities are P0=1,P0x=0, we have
PnPnx=(41)nP0,=21Pn−1+21P(n−1)x=21(41)n−1P0+21P(n−1)x=21(41)n−1+21P(n−1)x.
Noticing that I need to compute the probability of P4y→P4xy and add it to P4xy, which is not included in the first 4 iterations, the final answer is actually P5x. Then we have
P5x=21⋅(41)4+(21)2(41)3+(21)3(41)2+(21)4(41)+(21)5+(21)5⋅0=291+2+22+23+24=2925−1=51231≈6.05%,
which is surprisingly low!
Let that sink in for a moment. The chance that I can walk my entire route without hitting a single red light is a slender 6.05%! The odds are slim, indeed, but isn’t there a certain allure to this unpredictability? Each day presents a new roll of the dice, a fresh challenge to conquer.
So the next time you find yourself stopping at a red light, perhaps you’ll share in my curiosity and wonderment. What are the odds of your journey being uninterrupted? While it might seem trivial, these are the sorts of mysteries that bring a bit of excitement to our daily routines. And who knows, maybe one magical day, the traffic lights will all align in my favor, and I’ll stroll through my route as if the red lights were merely illusions! Until then, I’ll keep tracking my progress and embracing the adventure that each new day brings.