Traffic Colors 🚦

"¿Que le dijo un semáforo al otro?

'No me veas, me estoy cambiando.'"

— chiste de mi amigo chileno

Back when I was fifteen in driver's ed, I remember our teacher asked a cool irl mathematical question. We were covering stoplights, and the teacher asked which color was most common. My first knee-jerk thought was that they'd be about equal. I knew more about geometry than driving at the time :( .

Then I forced myself to think the problem through. You're trying to guarantee people on perpedicular paths of an intersection don't kill each other. So I came up with some thoughts:

I came up with this vague sketch in my head:

traffic-diagram-line.png
Figure 1: Traffic light colors compared

So answering the instructor's question, red is the most common traffic color. green second, yellow the remnant third. This is a very symmetric diagram. It assumes both roads are equally "green". But the main point is that if you add up both lights' colors-seconds per cycle, red has to be half of the color-time at a minimum, but usually the majority1 outright.

And what is color-time? I mention it above a few times, but since this is such a cyclical model, color-time is just the proportion of each color's light in a complete traffic light period.

I made up a cooler diagram of two "gears" of stoplight colors with angles representing the color-time versus the boring line segments above:

traffic-diagram-wheel.png
Figure 2: Cyclical changing of colors in stoplight

A cool thought I wanted to share that I've remembered many times during long, boring red lights on the road.

Footnotes:

1

except poor Olaf 😞