{"id":12,"date":"2008-02-29T20:42:38","date_gmt":"2008-03-01T03:42:38","guid":{"rendered":"http:\/\/anthony.darrouzet-nardi.net\/scienceblog\/?p=12"},"modified":"2013-01-15T12:17:10","modified_gmt":"2013-01-15T17:17:10","slug":"fit-vs-predictive-power-of-statistical-models","status":"publish","type":"post","link":"http:\/\/scienceblog.darrouzet-nardi.net\/?p=12","title":{"rendered":"Fit vs. predictive power of statistical models"},"content":{"rendered":"<p>I had an interesting conversation yesterday with <a href=\"http:\/\/instaar.colorado.edu\/\">INSTAAR<\/a> post-doc and statistical modeling whiz Chris Randin. We were discussing the relative importance of model fit and model predictive power in multivariate statistical models. Basically, I was arguing that we should optimize our models for predictive power and not for fit, especially because you&#8217;re probably going to overfit anyway. Chris countered convincingly that optimizing for fit and optimizing for predictive power give you different kinds of information.<\/p>\n<p>To back up and give an example, say you have a response variable like nitrogen dioxide pollution levels across a landscape and you have a bunch of other predictor variables like temperature, moisture, vegetation greenness, and human population across the same landscape. You want to figure out interesting stuff about the relations between these predictor variables and the response variable. This is an increasingly common situation in our increasingly data-saturated world.<\/p>\n<p>One thing you could figure out is the strength of the correlations between individual predictive variables and the response variable (nitrogen dioxide levels) using something like a scatterplot matrix like this one (just an example):<\/p>\n<p><img src=\"http:\/\/anthony.darrouzet-nardi.net\/scienceblog\/wp-content\/uploads\/2008\/02\/ehrsplom.png\" alt=\"EcoCELL heterotrophic respiration SPLOM\" width=\"300\/\" \/><\/p>\n<p>So, you fit one predictor to one response. Parameters are used to connect your predictors with the response and the accuracy of the match is your fit (<em>r<\/em><sup>2<\/sup>). The slope and intercept coefficients are readily interpretable (good old <em>y<\/em> = <em>mx<\/em> + <em>b<\/em>).<\/p>\n<p>It gets more complicated though when you start using multiple predictors. The parameters that are fit in the model are less easy to understand and\u00a0the best fit will always improve when you add more terms to the model. The model with all variables and all of their interactions will always give the best fit (highest <em>r<\/em><sup>2<\/sup> or whatever other measure you are using). But statisticians have thought of this of course and so you can penalize the model for having additional terms, though I am a little skeptical of the techniques used to penalize because the magnitude of the penalty seems a little arbitrary (maybe I just don&#8217;t understand the genius behind the techniques though). Stepwise regression is a technique for going through a lot of potential model formulations with different variable combinations and deciding which one is best, though again, I am skeptical of the criteria for variable inclusion that go into stepwise-type procedures <a href=\"http:\/\/www.stata.com\/support\/faqs\/statistics\/stepwise-regression-problems\/\">as are others<\/a>. Most statistical modeling books have a very sad chapter that talks about how hard this process is and all of the heinous pitfalls involved.<\/p>\n<p>But what if we define the best model as the one that has the best predictive power? Then the model selection has a really clear criterion. There are actually a lot of great techniques such as cross-validation and bootstrapping that allow you to test your model&#8217;s predictive power in really neat and innovative ways. We could test a whole lot of models using these tests of predictive power and get a printout of how well each model does using each of the different tests. I don&#8217;t think this approach is done very often, but if it&#8217;s prediction that you are interested in, then this may be the best way to go. Chris is right though that there may be other aspects of your data that might be better explored by optimizing for fit. I&#8217;ll probably have more to say on this as I do more of my own models with the data from my study site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had an interesting conversation yesterday with INSTAAR post-doc and statistical modeling whiz Chris Randin. We were discussing the relative importance of model fit and model predictive power in multivariate statistical models. Basically, I was arguing that we should optimize our models for predictive power and not for fit, especially because you&#8217;re probably going to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/posts\/12"}],"collection":[{"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":2,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":1500,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions\/1500"}],"wp:attachment":[{"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/scienceblog.darrouzet-nardi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}