{"id":330,"date":"2010-10-01T14:00:56","date_gmt":"2010-10-01T12:00:56","guid":{"rendered":"http:\/\/occamstypewriter.org\/boboh\/2010\/10\/01\/am_i_wasting_my_time\/"},"modified":"2010-10-01T14:00:56","modified_gmt":"2010-10-01T12:00:56","slug":"am_i_wasting_my_time","status":"publish","type":"post","link":"https:\/\/occamstypewriter.org\/boboh\/2010\/10\/01\/am_i_wasting_my_time\/","title":{"rendered":"Am I wasting my time?"},"content":{"rendered":"<p><span style=\"float: left;padding: 5px\"><a href=\"http:\/\/www.researchblogging.org\"><img decoding=\"async\" alt=\"ResearchBlogging.org\" src=\"http:\/\/www.researchblogging.org\/public\/citation_icons\/rb2_large_gray.png\" style=\"border:0\" \/><\/a><\/span>Physicists have it easy. When they&#8217;re not <a href=\"http:\/\/www.guardian.co.uk\/science\/life-and-physics\/2010\/sep\/28\/safety-large-hadron-collider-lhc\">talking about stuffing their hands into their equipment<\/a>, they&#8217;re measuring their fundamental constants to 38 significant figures. Chemists too have a simple time &#8211; they get to make stinks and bangs with expensive toys. But at least they know exactly what they get. Even most biologists are lucky &#8211; the crowd who do the molecular stuff are like chemists, but a bit less stinky. But us poor ecologists, who have to work with the real world&#8230;<\/p>\n<p><!--more--><br \/>\nThe problem with the real world is that it&#8217;s just so messy. I once ran a field experiment looking at mildew epidemics where I missed about a month of data because there was no epidemic: it simply didn&#8217;t rain (by the way, this was in East Anglia, i.e. <a href=\"http:\/\/twitter.com\/#!\/easternblot\/status\/25864046960\">near Cambridge, Eva<\/a>).<br \/>\nBut this is part of Life. One of the things I&#8217;m interested in in my research is how the this messiness affects populations, and how we can predict how species will react to future climate change using the messy weather data. This has obvious practical implications, but it&#8217;s only worth doing if adding the weather variables into our models improves our predictions significantly.<br \/>\nFor this reason I had a bit of an &#8220;eek!&#8221; moment yesterday when I flicked through the in eTOCs my inbox. In there was a paper that suggested that the whole fitting of climate variables to time series is a waste of time. I couldn&#8217;t ignore it, now, could I?<br \/>\nThe authors of the paper, Jonas Knape and Perry de Valpine from Berkeley in California, took 492 time series from the <a href=\"http:\/\/www3.imperial.ac.uk\/cpb\/research\/patternsandprocesses\/gpdd\">Global Population Dynamics Database<\/a>. For each of them, they extracted the estimated weather and climate variables from standard databases, for the 0.5 &times; 0.5\u02da resolution (if I&#8217;ve <a href=\"http:\/\/en.wikipedia.org\/wiki\/Latitude#Degree_length\">read Wikipedia correctly<\/a> this would be about 50km &times; 28km for Frankfurt. This is a fairly course resolution: it&#8217;s the scale we use when looking at patterns all over Europe. Anyway, they end up using maximum and minimum temperatures and rainfall for different seasons, plus two climatic variables: NAO and SO. NAO is the <a href=\"http:\/\/en.wikipedia.org\/wiki\/North_Atlantic_oscillation\">North Atlantic Oscillation<\/a>, which summarises whether the European climate is warm and dry or <strike>English<\/strike>cold and wet. SO is the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Southern_Oscillation_Index\">Southern Oscillation<\/a>, which does something similar for the Pacific, and is related to El Ni\u00f1o.<br \/>\nThe authors created two collections of weather and climate variables: a small one with summer and winter weather variables plus NAO and SO, and a large one with four season&#8217;s worth of variables, and using more lags into the past (i.e. this year&#8217;s weather, plus last years&#8217;, plus two years ago). The point behind this was that using lots of variables, something is bound to come out as &#8220;significant&#8221;, but this might be due to chance. This means that the model can be over-fitted: it describes the data very well, but is lousy at prediction because the model is too rigid. This is a Bad Thing.<br \/>\nSo the Knape and de Valpine fit these covariates to their 492 time series, selecting their best models with AIC (and also looking at model-averaged results, but their conclusions are pretty much the same either way) to come up with some &#8220;good&#8221; models for their data. They then ask how well these models perform: how much do they reduce prediction error, and also how well they do compared to randomly selected covariates.<br \/>\nTheir results are summarised in the figure below. This plots the amount by which the weather covariates decrease the unexplained variance: if half of the variation in the time series is explained by the covariates, this value would be 0.5. If the weather explains nothing, the value is 1. So, low values are good. They plot this against the length of the time series, i.e. the amount of data.<br \/>\n<span class=\"mt-enclosure mt-enclosure-image\"><img loading=\"lazy\" decoding=\"async\" alt=\"F1.large.jpg\" src=\"http:\/\/blogs.nature.com\/boboh\/F1.large.jpg\" width=\"405\" height=\"480\" class=\"mt-image-center\" style=\"text-align: center;margin: 0 auto 20px\" \/><\/span><br \/>\nAs the amount of data increases (as <i>n<\/i> goes up), the amount of variation explained decreases: the weather variables don&#8217;t do as well in explaining the population dynamics. In addition, the dots are the data where the model doesn&#8217;t do significantly better than chance at explaining the variation (i.e. the randomised data does as well in reducing the variance). Both of these point to over-fitting: with less data and a pile of covariates, it&#8217;s more likely that something will fit well by chance. With more data, there is more information to winnow out these chance relationships, so they get excluded from the model, and the explanatory power decreases. And whilst the analyses with lots of covariates tend to explain the data better, they still tend not to work much better than chance.<br \/>\nThe authors also found that NAO and SO weren&#8217;t flagged any better than chance as predictors, when compared to weather variables. There&#8217;s a slight wrinkle in this: all of their data was from Europe and the USA, but NAO mainly affects Europe (and Western Europe, and the UK in particular), whilst SO will affect the Pacific coast. It would be interesting to see this analysis broken down by geographic area.<br \/>\nSo things look pretty bad: weather variables can&#8217;t predict population dynamics very well. Fortunately, I don&#8217;t think things are this bad (or perhaps I should write that fortunately I can find some reasons why this paper hasn&#8217;t torpedoed my own work). The approach the authors used was to make the whole process a black box. Their weather variables are measured at a course scale, but we all know that it can change over much smaller distances: this is the weather outside just now:<br \/>\n<span class=\"mt-enclosure mt-enclosure-image\"><img loading=\"lazy\" decoding=\"async\" alt=\"WeatherNow.JPG\" src=\"http:\/\/blogs.nature.com\/boboh\/WeatherNow.JPG\" width=\"640\" height=\"480\" class=\"mt-image-center\" style=\"text-align: center;margin: 0 auto 20px\" \/><\/span><br \/>\nTaunus (the hills in the distance) is covered in cloud, and is probably pretty wet and miserable. Those of us living in the river valley are a bit warmer, and much less wet (well, except for those living in the river). So, climate changes over much smaller distances, and there is often significant variation in topography and hence climate over a few kilometers, so measuring it at a finer scale might be much more effective.<br \/>\nAnother problem is that it is not always clear what the right variable is. Are maximum and minimum temperatures the best? These are outliers, so perhaps mean temperature might be better. And perhaps maximum daily rainfall is better than overall rainfall. And also there may be critical times when a variable is important (e.g. for plants, low minimum temperature in the spring, i.e. frosts, could be critical). A generic search might not pick out these important effects. It might be that we can find methods to explore the data to pick out the crucial weather variables, but this would mean fitting many more models, so the over-fitting problem would be immense.<br \/>\nPlant ecophysiologists have a measurement they use called GDD5: Growing Degree Days above 5\u02daC.This is the sum of daily temperatures above 5\u02daC. It&#8217;s a bit of a heuristic measure, but is based on biological knowledge of how plants grow (i.e. not when it&#8217;s cold). This sort of measure might work better. Similarly, my (now ex-) student and I have <a href=\"http:\/\/dx.doi.org\/10.1111\/j.1365-2656.2010.01743.x\">a paper online<\/a> where we tackle the same sorts of issues with moth data. But we talked to a moth biologist first, and got some idea about which variables would be important. And we get some reasonable results that way.<br \/>\nSo, I guess my take-home message is that the paper shows that shot-gun approaches to fitting weather data to time series doesn&#8217;t work very well. The devil will be in the detail. There are some easy things to do: use local weather, not something averaged over a large region. Deciding which weather variables to use is trickier, but some thought should help, as should expert knowledge and data from experiments or more detailed field measurements. Oh, and we really need lots of data, time series of over 50 years, please?<\/p>\n<h3>Reference<\/h3>\n<p><span class=\"Z3988\" title=\"ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.jtitle=Proceedings+of+the+Royal+Society+B%3A+Biological+Sciences&amp;rft_id=info%3Adoi%2F10.1098%2Frspb.2010.1333&amp;rfr_id=info%3Asid%2Fresearchblogging.org&amp;rft.atitle=Effects+of+weather+and+climate+on+the+dynamics+of+animal+population+time+series&amp;rft.issn=0962-8452&amp;rft.date=2010&amp;rft.volume=&amp;rft.issue=&amp;rft.spage=&amp;rft.epage=&amp;rft.artnum=http%3A%2F%2Frspb.royalsocietypublishing.org%2Fcgi%2Fdoi%2F10.1098%2Frspb.2010.1333&amp;rft.au=Knape%2C+J.&amp;rft.au=de+Valpine%2C+P.&amp;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CMathematics%2CEcology%2C+Probability+and+Statistics\">Knape, J., &amp; de Valpine, P. (2010). Effects of weather and climate on the dynamics of animal population time series <span style=\"font-style: italic\">Proceedings of the Royal Society B: Biological Sciences<\/span> DOI: <a rev=\"review\" href=\"http:\/\/dx.doi.org\/10.1098\/rspb.2010.1333\">10.1098\/rspb.2010.1333<\/a><\/span><br \/>\n<span class=\"Z3988\" title=\"ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.jtitle=Journal+of+Animal+Ecology&amp;rft_id=info%3Adoi%2F10.1111%2Fj.1365-2656.2010.01743.x&amp;rfr_id=info%3Asid%2Fresearchblogging.org&amp;rft.atitle=A+multispecies+perspective+on+ecological+impacts+of+climatic+forcing&amp;rft.issn=00218790&amp;rft.date=2010&amp;rft.volume=&amp;rft.issue=&amp;rft.spage=0&amp;rft.epage=0&amp;rft.artnum=http%3A%2F%2Fdoi.wiley.com%2F10.1111%2Fj.1365-2656.2010.01743.x&amp;rft.au=Mutshinda%2C+C.&amp;rft.au=O%E2%80%99Hara%2C+R.&amp;rft.au=Woiwod%2C+I.&amp;rfe_dat=bpr3.included=1;bpr3.tags=Biology%2CMathematics%2CEcology%2C+Probability+and+Statistics\">Mutshinda, C., O&#8217;Hara, R., &amp; Woiwod, I. (2010). A multispecies perspective on ecological impacts of climatic forcing <span style=\"font-style: italic\">Journal of Animal Ecology<\/span> DOI: <a rev=\"review\" href=\"http:\/\/dx.doi.org\/10.1111\/j.1365-2656.2010.01743.x\">10.1111\/j.1365-2656.2010.01743.x<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Physicists have it easy. When they&#8217;re not talking about stuffing their hands into their equipment, they&#8217;re measuring their fundamental constants to 38 significant figures. Chemists too have a simple time &#8211; they get to make stinks and bangs with expensive &hellip; <a href=\"https:\/\/occamstypewriter.org\/boboh\/2010\/10\/01\/am_i_wasting_my_time\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-research-blogging"],"_links":{"self":[{"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":0,"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"wp:attachment":[{"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/occamstypewriter.org\/boboh\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}