{"id":140,"date":"2005-12-05T01:01:22","date_gmt":"2005-12-04T14:01:22","guid":{"rendered":"http:\/\/www.somethinkodd.com\/oddthinking\/?p=140"},"modified":"2005-12-05T08:35:14","modified_gmt":"2005-12-04T21:35:14","slug":"traffic-lights-and-pedestrians-an-analysis","status":"publish","type":"post","link":"https:\/\/www.somethinkodd.com\/oddthinking\/2005\/12\/05\/traffic-lights-and-pedestrians-an-analysis\/","title":{"rendered":"Traffic Lights and Pedestrians: An Analysis"},"content":{"rendered":"<h2>Operation of Traffic Lights<\/h2>\n<p>Picture in your mind some platonic ideal of a set of traffic lights in operation. Take a bird&#8217;s-eye view.<\/p>\n<p>Chances are you are conjuring a simple image of a simple cross-intersection with traffic travelling North and South for a bit, and then East and West for a bit, before repeating the two-state cycle.<\/p>\n<h2>An Element of Reality<\/h2>\n<p>In reality, traffic lights tend to be more complicated. It is common for one direction, e.g. North, to be given a green right-arrows, meaning South must be stopped.<\/p>\n<div class=\"aside\">Note to international readers: I am assuming traffic drives on the left-hand side of the road. Reverse all directions, as appropriate. In Australia, when right-hand turns are given priority over oncoming traffic, this is indicated with a green arrow-shaped light. In other regions, this may be indicated differently. (For example, in Canada, the equivalent is a flashing green light, which was most disconcerting the first time I encountered one.)<\/div>\n<p>So, commonly, rather than a length-2 cycle, it is actually a length-4 cycle.<\/p>\n<h2>Too Much Reality<\/h2>\n<p>There are more elaborate systems, including, but not limited to; more than 4 roads intersecting; only 3 roads intersecting; pedestrian crossings; pedestrians being permitted to cross diagonally; and systems that react to cars pulling up in a lane or a lane getting busy.<\/p>\n<p>However, I am going to focus on the four-way intersection with the length-4 cycle, because they are quite common on busy city roads.<\/p>\n<h2>The Pedestrian&#8217;s Dilemma<\/h2>\n<p>Imagine a law-abiding pedestrian that is at the <abbr title=\"North West\">NW<\/abbr> corner, and needs to get to the SE corner.<\/p>\n<p>The pedestrian has two choices: Head East then South, or head South then East. Which way is preferable?<\/p>\n<div class=\"aside\">Actually, for long journeys there are additional choices: cross one way now, and then walk down the block before you cross the other way. <a href=\"http:\/\/www.caseyporn.com\">Casey<\/a> has <a href=\"http:\/\/caseyporn.com\/blog\/archives\/000917.html\">analysed (and simulated)<\/a> this, for length-2 cycle traffic lights apparently found in New York.<\/div>\n<p>The obvious answer is to take whichever green walk signal appears first.<\/p>\n<p>In a length-2 cycle, that is the simple solution to the dilemma: both ways have the same expected time.<\/p>\n<p>Unexpectedly, in a length-4 cycle, the answer is not that simple. It is sometimes desirable to ignore a green light. It is this mildly-surprising result that I analyze here.<\/p>\n<h2>Valid Length-4 Cycles<\/h2>\n<p>When a traffic light is showing green for cars coming from the West, only the NW&harr;NE crosswalk is open to foot traffic. In particular, the SW&harr;SE crosswalk is closed, and cars turning right (from the West to the South) get a green arrow.<\/p>\n<p>Under such restrictions, there are six possible length-4 cycles. I&#8217;ve listed them below in a canonical form &#8211; each row, represents one cycle:<\/p>\n<ol>\n<li>NW&harr;NE; NE&harr;SE; SW&harr;SE; NW&harr;SW (Clockwise)<\/li>\n<li>NW&harr;NE; NE&harr;SE; NW&harr;SW; SW&harr;SE<\/li>\n<li>NW&harr;NE; SW&harr;SE; NE&harr;SE; NW&harr;SW<\/li>\n<li>NW&harr;NE; SW&harr;SE; NW&harr;SW; NE&harr;SE;<\/li>\n<li>NW&harr;NE; NW&harr;SW; NE&harr;SE; SW&harr;SE;<\/li>\n<li>NW&harr;NE; NW&harr;SW; SW&harr;SE; NE&harr;SE; (Anti-clockwise)<\/li>\n<\/ol>\n<div class=\"aside\">I am not making a claim that each of these cycles is equally prevalent. There may be a good traffic-engineering reason why one is more prevalent than others. I know I have observed &#8220;Clockwise&#8221; several times in the field.<\/div>\n<h2>Evaluating Travel Costs<\/h2>\n<p>The following assumptions are fairly arbitrary, but I think they illustrate the point.<\/p>\n<ul>\n<li>Assume that each stage in the cycle is the same period. Define that to be 1 time unit.<\/li>\n<li>Assume it takes 0.5 time units to walk across  cross the road.<\/li>\n<li>Assume that the flashing red signal is shown after 0.5 time units, and that the pedestrian obeys the law by not crossing the road unless they have already started.<\/li>\n<li>Assume the changeover time, where all signals are red, is close enough to zero to be irrelevant.<\/li>\n<li>Assume that the pedestrian approaches the intersection at a random time, evenly distributed throughout the cycle.<\/li>\n<\/ul>\n<h2>Impact of the Cycle Pattern on the Decision<\/h2>\n<p>For our pedestrian trying to travel from the NW to SE corner, Cycle #2 is the best. Follow the obvious rule and take whichever light is green first to get to the other side. I compute the average time to get across the intersection is 2.0 time units (with a range of 1.0 to 3.0 time units.)<\/p>\n<p>Cycles #3, #4 and #5 are also best approached with the same, obvious, rule, although the lights are less favourable. <\/p>\n<p>Cycle #3: Average time: 3.25 time units; Range: 2.0 &#8211; 5.0 time units.<br \/>\nCycle #4: Average time: 4.0 time units; Range: 3.0 &#8211; 5.0 time units.<br \/>\nCycle #5: Average time: 3.75 time units; Range: 2.0 &#8211; 5.0 time units.<\/p>\n<p>So far, no real surprises.<\/p>\n<p>Cycles #1 and #6 represent clockwise and anti-clockwise patterns in the green lights.<\/p>\n<p>They, similarly, exhibit a &#8220;handedness&#8221; in optimal behaviour. The pedestrian should always choose to travel in one direction around the intersection, <strong>even if it means ignoring a green light<\/strong> if it would take you in the wrong direction. The average time to cross the intersection is 3.0 time units, with a range from 1.0 to 5.0 time units.<\/p>\n<p>Ignoring the rule, and instead adopting the simple &#8220;first green light&#8221; approach, is sub-optimal. It increases the average travel time by 0.75 time units to 3.75, and the worst-case travel time to 6.0 time units.<\/p>\n<p>This preference for travel in one direction is very strong; it sometimes applies in the case where you simply want to cross <em>one<\/em> road, instead of two. In the extreme case, where you are just miss the walk signal, it can drop your travel time from 4.0 time units to 3.0 time units, to cross three roads to get to your destination, instead of waiting for the single green.<\/p>\n<div class=\"aside\">You may like to consider the increased risk of injury from crossing a busy intersection three times against the time saved.<\/div>\n<h2>Conclusion<\/h2>\n<p>For some traffic lights, it is possible to negotiate a diagonal street-crossing at a cross intersection faster by selectively ignoring green lights. <\/p>\n<p>To make this decision, you need some local knowledge about the green-light cycles at that particular intersection. The difficulty is in giving pedestrians clues as to the optimal direction.<\/p>\n<p>[Update: Corrected the time taken to do three-crossings instead of one.]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I give a theoretical analysis of the time taken for a pedestrian to negotiate diagonally across an intersection, depending on the cycles of the traffic lights&#8230;  although my name&#8217;s not Bamber.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[33],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-puzzle-solving"],"_links":{"self":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":0,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}