{"id":519,"date":"2016-10-31T20:07:43","date_gmt":"2016-10-31T20:07:43","guid":{"rendered":"https:\/\/blogs.mathworks.com\/headlines\/?p=519"},"modified":"2016-11-14T12:12:15","modified_gmt":"2016-11-14T12:12:15","slug":"using-meta-analysis-to-predict-the-outcome-of-next-weeks-election","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/headlines\/2016\/10\/31\/using-meta-analysis-to-predict-the-outcome-of-next-weeks-election\/","title":{"rendered":"Using meta-analysis to predict the outcome of next week&#8217;s election"},"content":{"rendered":"<p>You may have heard about the upcoming US election. There\u2019s been a \u2018bit\u2019 of news coverage on the subject. Going back to the purpose of the &#8220;Behind the Headlines&#8221; blog, this post is to share the role\u00a0<a href=\"https:\/\/www.mathworks.com\/products\/matlab\/\" target=\"_blank\">MATLAB<\/a>\u00a0plays in an issue that drives today\u2019s news: It\u2019s hard to imagine a recent news story that has received more coverage, in the US at least, than next week&#8217;s election.<\/p>\n<p>Throughout this election, polls and pollsters have played a significant role, just as they did for the Brexit vote earlier this year. In fact, <em>NBC News<\/em> recently compared the polling in both elections in their article\u00a0\u201c<a href=\"http:\/\/www.nbcnews.com\/politics\/2016-election\/no-presidential-election-will-not-be-next-brexit-pollsters-n672136\" target=\"_blank\">No, the Presidential Election Will Not Be the Next &#8216;Brexit&#8217; for Pollsters<\/a>.\u201d This post turns to\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Psephology\" target=\"_blank\">psephology<\/a>, the study of scientific analysis of elections, to examine polling results.<\/p>\n<h2>Princeton Election Consortium<\/h2>\n<p>The Princeton Election Consortium is a blog written by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sam_Wang_(neuroscientist)\" target=\"_blank\">Dr. Sam Wang<\/a>. In addition to his role as a professor of molecular biology and neuroscience at Princeton University, Dr. Wang authors the PEC blog which utilizes\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Meta-analysis\" target=\"_blank\">meta-analysis<\/a> to predict the winner of the Electoral College. Meta-analysis is a statistical approach that combines the results from multiple studies in an effort to increase the accuracy as compared to the individual poll results. It is often used to resolve uncertainty when polls disagree.<\/p>\n<p><a href=\" https:\/\/blogs.mathworks.com\/headlines\/files\/2016\/11\/PEC-blog-image.jpg\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-539 size-full\" src=\"https:\/\/blogs.mathworks.com\/headlines\/files\/2016\/11\/PEC-blog-image.jpg\" alt=\"pec-blog-image\" width=\"449\" height=\"341\" \/><\/a><\/p>\n<p>Meta-analysis of state polls provides more objectivity and precision than looking at a single poll and gives an accurate, current snapshot of the state of play. Over the course of the campaign, the PEC site has attracted over a million visits.<\/p>\n<p>In 2004, the median decided-voter calculation from PEC on Election Eve captured the exact final outcome. The 2008 PEC calculation provided results based on decided-voter polling from all 50 states, and in the closing week of the campaign was within 1 electoral vote of the final outcome.\u00a0In 2012, PEC&#8217;s electoral vote median exactly matched the final outcome between President Barack Obama and challenger Gov. Mitt Romney.<\/p>\n<h2>How MATLAB is used<\/h2>\n<p>Professor Wang uses MATLAB for his calculations throughout the site. Here are some pages with references and\/or MATLAB code.<\/p>\n<ul>\n<li>About the Meta-Analysis<br \/>\n\u201cThese calculations are based on state polls from many polling organizations. The data source for 2016 (as in 2008 and 2012) is HuffPost\u00a0<a href=\"http:\/\/pollster.com\/\" target=\"_blank\">pollster.com<\/a>. The data are fed through MATLAB scripts (<a href=\"\" target=\"_blank\">1<\/a>) (<a href=\"\" target=\"_blank\">2<\/a>) (<a href=\"\" target=\"_blank\">3<\/a>) (<a href=\"\" target=\"_blank\">4<\/a>) to mathematically compute all of the results shown.\u201d<\/li>\n<li><a title=\"http:\/\/election.princeton.edu\/2012\/09\/29\/the-short-term-presidential-predictor-with-matlab\/ (link no longer works)\" target=\"_blank\">The short-term presidential predictor (with MATLAB)<\/a> (2012) explains and shows the Meta-Margin predictions.<\/li>\n<li>For fellow geeks<br \/>\n\u201cIf you want to delve into the Meta-Analysis further, many files you will need are here. The scripts and data files mentioned here can be found in the\u00a0<a title=\"http:\/\/election.princeton.edu\/code\/ (link no longer works)\" target=\"_blank\">Geek\u2019s Directory<\/a>. All of the files in that directory are linked to the live versions currently running the calculations.\u201d<\/li>\n<li><a title=\"http:\/\/election.princeton.edu\/matlab-code-for-unrolling-a-moving-average\/ (link no longer works)\" target=\"_blank\">MATLAB code for unrolling a moving average<\/a><\/li>\n<li>MATLAB was also used by Professor Wang in his calculations on the impact of <a title=\"http:\/\/election.princeton.edu\/category\/redistricting\/ (link no longer works)\" target=\"_blank\">gerrymandering<\/a>. The MATLAB gerrymandering code is available <a title=\"http:\/\/election.princeton.edu\/matlab-gerrymandering-code-delegations-m\/ (link no longer works)\" target=\"_blank\">here<\/a>.<\/li>\n<\/ul>\n<p>So here\u2019s to the end of the election, and thankfully, the end of political ads for now. <a href=\"http:\/\/election.princeton.edu\/\" target=\"_blank\">Click here to see the latest<\/a> forecast at the top of the PEC page.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/headlines\/files\/2016\/11\/PEC-blog-image.jpg\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>You may have heard about the upcoming US election. There\u2019s been a \u2018bit\u2019 of news coverage on the subject. Going back to the purpose of the &#8220;Behind the Headlines&#8221; blog, this post is to&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/headlines\/2016\/10\/31\/using-meta-analysis-to-predict-the-outcome-of-next-weeks-election\/\">read more >><\/a><\/p>\n","protected":false},"author":138,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/519"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/users\/138"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/comments?post=519"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/519\/revisions"}],"predecessor-version":[{"id":549,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/519\/revisions\/549"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/media?parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/categories?post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/tags?post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}