Are all yellow lights the same duration?
No. But there are similarities in the durations from one situation to another. Yellow lights in residential areas where the speed limit is 25-30 MPH are considerably shorter than yellow traffic signals that are placed where two state highways with 65 MPH speed limits are placed. The cars traveling at 65 will need more distance to safely slow to a stop. There are some formulas used to get basic settings, but after that they are tuned to the specific intersection.