{"id":311,"date":"2011-10-14T11:23:20","date_gmt":"2011-10-14T10:23:20","guid":{"rendered":"http:\/\/jeremyshiers.com\/blog\/?p=311"},"modified":"2011-10-15T09:38:12","modified_gmt":"2011-10-15T08:38:12","slug":"a-very-bad-way-to-calculate-sea-level-rise","status":"publish","type":"post","link":"http:\/\/jeremyshiers.com\/blog\/a-very-bad-way-to-calculate-sea-level-rise\/","title":{"rendered":"A Very Bad Way To Calculate Sea Level Rise"},"content":{"rendered":"<p>I have been intrigued by these graphs of sea level rise<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/jeremyshiers.com\/blog\/?attachment_id=310\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-310 aligncenter\" title=\"Environment Agency Sea Levels\" src=\"http:\/\/jeremyshiers.com\/blog\/wp-content\/uploads\/2011\/10\/eaSeaLevels.gif\" alt=\"Environment Agency Sea Levels\" width=\"449\" height=\"494\" srcset=\"http:\/\/jeremyshiers.com\/blog\/wp-content\/uploads\/2011\/10\/eaSeaLevels.gif 449w, http:\/\/jeremyshiers.com\/blog\/wp-content\/uploads\/2011\/10\/eaSeaLevels-272x300.gif 272w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p>which the UK Environment Agency (EA) used to display on this page of their website, although the page was removed some time around 13 October 2011.<\/p>\n<p><a href=\"http:\/\/www.environment-agency.gov.uk\/cy\/ymchwil\/llyfrgell\/data\/34449.aspx\">http:\/\/www.environment-agency.gov.uk\/cy\/ymchwil\/llyfrgell\/data\/34449.aspx<\/a><\/p>\n<p>It was claimed that these graphs indicate an average sea level rise of between 2.3 and 4mm\/year sea level rise.\u00a0 These graphs are part of the way EA attempts to justify its policy of managed realignment (abandoning or knocking down sea walls and flooding land). The argument seems to be that sea level rise means the we can not afford to maintain sea walls so we might as well get rid of them.<\/p>\n<p>However EA are spending billions of tax payer pounds on their preferred policy, outlined in the Shoreline Management Plan.\u00a0 So if the claimed rate of sea level rise is too large we should ask why are EA proceeding with this plan.<\/p>\n<p>Although the scale of these graphs is very small it seemed that these figures are too high. Just looking at the graphs, without a magnifying glass, and doing approximate sums it seemed that.<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<th>Location<\/th>\n<th>Rise in Sea Level<\/th>\n<th>Period<\/th>\n<th>Rate of Rise<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>North Shields<\/td>\n<td>200 mm<\/td>\n<td>100 years<\/td>\n<td>2 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>\n<div>Sheerness<\/div>\n<\/td>\n<td>200 mm<\/td>\n<td>170 years<\/td>\n<td>1.2 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>Liverpool<\/td>\n<td>300 mm<\/td>\n<td>150 years<\/td>\n<td>2 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>Newlyn<\/td>\n<td>100 mm<\/td>\n<td>80 years<\/td>\n<td>1.25 mm\/year<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>So the sea level rise was actually 1 to 2mm\/year, half what was claimed.<\/p>\n<p>Fortunately the data on sea level rise is publicly available at <a href=\"http:\/\/www.psmsl.org\">Permanent Service For Mean Sea Level<\/a><\/p>\n<p>So I downloaded the data and used the free stats program R to perform linear regression.<\/p>\n<p>Linear regression is a way of finding a line which best goes through a set of points on a graph, for example observations of sea level on different dates.<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<th>Location<\/th>\n<th>Rate of Rise<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>North Shields<\/td>\n<td>1.95 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>\n<div>Sheerness<\/div>\n<\/td>\n<td>1.67 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>Liverpool<\/td>\n<td>1.08 mm\/year<\/td>\n<\/tr>\n<tr>\n<td>Newlyn<\/td>\n<td>1.78 mm\/year<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>So my approximations were a bit off but they&#8217;re in the right ball park. And in the interest of disclosure there are 2 datasets for Liverpool. One going from 1858 to 1983. The second from 1992 to 2007 but even so having 3 missing years. I only used the older dataset.<\/p>\n<p>So I made a Freedom of Information request to the EA to supply the data and calculation they had used, and EA sent me an Excel spreadsheet.<\/p>\n<p>To my amazement the average sea level rise had been calculated using the average worksheet function.<\/p>\n<p>Sounds fair enough doesn&#8217;t it. You want to find out average sea level rise use the average function.<\/p>\n<p>But there&#8217;s a problem and that problem is missing data.<\/p>\n<p>To illustrate the problem lets generate some data, ranging from 1000 to 3000 in steps of 100. Linear regression requires to ranges, so we&#8217;ll just run a count from 1 to 21. In the spreadsheet below the count is in the column A, labelled x. Column B, labelled y, contains the values 1000 to 3000. In column C the spreadsheet calculates the change in y from the previous row which is, surprise surprise, 100.<\/p>\n<p>In cell E3 the average change is calculated using the average function and in E4 the slope function (which uses linear regression) calculates the overall rate of change. Both methods give 100. So far so good.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/docs.google.com\/spreadsheet\/pub?hl=en_US&amp;hl=en_US&amp;key=0AkGnKfBjPABedDRWYTNibFBzOEM2ZUpfQnJPdEhKRXc&amp;single=true&amp;gid=0&amp;range=A1%3AF22&amp;output=html&amp;widget=true\" frameborder=\"0\" width=\"100%\" height=\"300\"><\/iframe><\/p>\n<p>Now lets simulate missing data by only using one row in 5.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/docs.google.com\/spreadsheet\/pub?hl=en_US&amp;hl=en_US&amp;key=0AkGnKfBjPABedDRWYTNibFBzOEM2ZUpfQnJPdEhKRXc&amp;single=true&amp;gid=0&amp;range=H1%3AM6&amp;output=html&amp;widget=true\" frameborder=\"0\" width=\"100%\" height=\"300\"><\/iframe><\/p>\n<p>The slope function gives us the correct result, but average is 5 times to large. Well we&#8217;ve used 1\/5 the number of rows so it is logical that the average of change over the rows that have been used will be 5 times greater.\u00a0 Suppose each row of the original spreadsheet gave the sea level on successive years.\u00a0 Looking at every fifth row would give the sea level every five years.\u00a0 Hence, as the data was generated with a constant rise year on year, the\u00a0 rise after 5 years will be 5 times as great as after 1 year.<\/p>\n<p>So the summary is don&#8217;t use average if there is missing data.<\/p>\n<p>Sea levels vary about 4 meters between high and low tides. The rate of sea level rise is tiny in comparison, about 1 mm\/year. In the following sheet I have simulated this, with no missing rows.<\/p>\n<p>The starting sea level is 6000mm.<br \/>\nThere is a rise of 1mm\/row<br \/>\nThe tides ranges +\/- 2000mm<br \/>\nThere is one tide every 4 rows.<\/p>\n<p>The average and slope columns contain the results up to the current row.<br \/>\nComparing average and slope columns it can be seen that slope settles to a value around 1 fairly quickly but average continues to vary widely.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/docs.google.com\/spreadsheet\/pub?hl=en_US&amp;hl=en_US&amp;key=0AkGnKfBjPABedDRWYTNibFBzOEM2ZUpfQnJPdEhKRXc&amp;single=true&amp;gid=0&amp;range=o1%3AV105&amp;output=html&amp;widget=true\" frameborder=\"0\" width=\"100%\" height=\"300\"><\/iframe><\/p>\n<p>And a graphic comparison of slope (red) and average (blue).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/docs.google.com\/spreadsheet\/oimg?key=0AkGnKfBjPABedDRWYTNibFBzOEM2ZUpfQnJPdEhKRXc&amp;oid=2&amp;zx=lo27vly4goly\" alt=\"\" \/><\/p>\n<p>But remember there are only about 100 rows, 2 tides a day so 50 days.<\/p>\n<p>Even so don&#8217;t use average use linear regression(slope).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been intrigued by these graphs of sea level rise which the UK Environment Agency (EA) used to display on this page of their website, although the page was removed some time around 13 October 2011. http:\/\/www.environment-agency.gov.uk\/cy\/ymchwil\/llyfrgell\/data\/34449.aspx It was &hellip; <a href=\"http:\/\/jeremyshiers.com\/blog\/a-very-bad-way-to-calculate-sea-level-rise\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,18],"tags":[],"_links":{"self":[{"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/posts\/311"}],"collection":[{"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":56,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":365,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions\/365"}],"wp:attachment":[{"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jeremyshiers.com\/blog\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}