<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mwh.geek.nz &#187; charts</title>
	<atom:link href="http://mwh.geek.nz/tag/charts/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwh.geek.nz</link>
	<description></description>
	<lastBuildDate>Sun, 27 Nov 2011 03:40:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>More referendum analysis</title>
		<link>http://mwh.geek.nz/2009/08/22/more-referendum-analysis/</link>
		<comments>http://mwh.geek.nz/2009/08/22/more-referendum-analysis/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 00:48:39 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[referendum]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://mwh.geek.nz/?p=128</guid>
		<description><![CDATA[This time, with statistics! (Those make everything better.) All raw data come from the Election Results site, but the calculations thereon are mine, as are any transcription errors. I will also note up-front that there are a lot of factors in here, and in particular the electorate-level data do not necessarily correspond to individual voters, [...]]]></description>
			<content:encoded><![CDATA[<p>This time, with statistics! (Those make everything better.) All raw data come from the <a href="http://www.electionresults.govt.nz/">Election Results</a> site, but the calculations thereon are mine, as are any transcription errors. I will also note up-front that there are a lot of factors in here, and in particular the electorate-level data <strong>do not</strong> necessarily correspond to individual voters, even collectively &#8211; the voting populations may be significantly different. They&#8217;re just interesting to look at.</p>
<p>(Edited to put the charts below the fold)</p>
<p><span id="more-128"></span></p>
<p>First up, because I was curious about the turnout: the 2008 turnout was 79.46%, while the referendum turnout was 54.04%. The electorate-by-electorate correlation is +0.806, for an r² of 0.650. That&#8217;s a middlingly strong correlation for data of this sort. As expected though there&#8217;s also a fairly strong negative correlation between turnout and voting yes: r = -0.480. Electorates with high No vote tend to have higher turnout as well.</p>
<p><img class="aligncenter" title="2008 turnout vs 2009" src="http://mwh.geek.nz/ref09/turnout.png" alt="" width="640" height="480" /><img class="aligncenter" title="Referendum turnout vs Yes vote" src="http://mwh.geek.nz/ref09/turnoutvyes.png" alt="" width="640" height="480" /></p>
<p>Now for party vote correlations: as you&#8217;d expect, a high Green vote is strongly correlated with voting yes, with r = +0.788. National has the strongest negative correlation of the represented parties, at -0.280, followed by Act on -0.104. The Māori party has a negligible negative correlation as well, at -0.074 (skewed by their vote pattern), but most curious to me was United Future: a small, but noticeable <strong>positive</strong> correlation of +0.120. I don&#8217;t quite know what to make of that, but it wasn&#8217;t in line with my expectations at all. It&#8217;s not a terribly strong one, and the chart (see below) shows it may be more of an anomaly than anything else.</p>
<p>The combined Labour-Green-Progressive vote correlates at +0.533, while National-Act is at -0.266. Throwing United Future or the Māori Party to either side doesn&#8217;t make much difference.</p>
<p>Some charts showing the more striking results here:</p>
<div class="wp-caption aligncenter" style="width: 650px"><img title="Green Party vote vs Yes vote" src="http://mwh.geek.nz/ref09/green.png" alt="Green Party vote vs Yes vote" width="640" height="480" /><p class="wp-caption-text">Green Party vote vs Yes vote</p></div>
<p><img class="aligncenter" title="National Party vote vs Yes vote" src="http://mwh.geek.nz/ref09/national.png" alt="" width="640" height="480" /><img class="aligncenter" title="United Future vote vs Yes vote" src="http://mwh.geek.nz/ref09/unitedfuture.png" alt="" width="640" height="480" /></p>
<p>I also have <a href="http://mwh.geek.nz/ref09/">charts for the other parties</a> and some others.</p>
<p>Finally, one non-referendum chart that I found intriguing: Green Party vote against United Future vote.</p>
<p><img class="aligncenter" title="Green Party vote vs United Future" src="http://mwh.geek.nz/ref09/greenvsuf.png" alt="" width="640" height="480" />They have a <strong>positive</strong> correlation of +0.253, which isn&#8217;t strong but not at all negligible.</p>
<p>If anybody is interested in doing their own calculations, the <a href="http://mwh.geek.nz/ref09/pols.db">SQLite database I have been using to store this</a> is also available.  The schema should be straightforward. I&#8217;ve been plotting the charts with GNUPlot, and a couple of trivial Python scripts to transform it appropriately for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwh.geek.nz/2009/08/22/more-referendum-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

