4056 lines of data
May. 8th, 2010 09:04 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So you don't have to scrape the BBC yourself:
http://www.chiark.greenend.org.uk/~twomack/2010-results.txt
contains 4056 lines of the form
The vote-count is blank for all the parties in Thirsk & Malton since that election hasn't happened yet.
The example script here makes the following list of parties standing in more than twenty places:
(for the curious, the English Democrats kept their deposit in Doncaster North; the Liberal Democrats kept all of theirs but I divided by zero in Thirsk; the Conservatives lost theirs in Na H-Eileanan An Iar and Glasgow East; Philip Lardner stood as an independent in Ayrshire North after being deselected from the Conservatives)
http://www.chiark.greenend.org.uk/~twomack/2010-results.txt
contains 4056 lines of the form
Chelsea & Fulham } Blue Environment Party } 17
The vote-count is blank for all the parties in Thirsk & Malton since that election hasn't happened yet.
The example script here makes the following list of parties standing in more than twenty places:
Party name | Number of places standing | Deposits saved |
Socialist Labour Party | 23 | 0 |
Monster Raving Loony Party | 27 | 0 |
Trade Unionist and Socialist Coalition | 38 | 0 |
Plaid Cymru | 40 | 29 |
Scottish National Party | 59 | 59 |
Christian Party | 71 | 0 |
English Democrats | 107 | 1 |
Independent | 250 | 13 |
Green | 335 | 7 |
British National Party | 338 | 72 |
UK Independence Party | 558 | 99 |
Conservative | 630 | 627 |
Labour | 631 | 625 |
Liberal Democrat | 631 | 630 |
(for the curious, the English Democrats kept their deposit in Doncaster North; the Liberal Democrats kept all of theirs but I divided by zero in Thirsk; the Conservatives lost theirs in Na H-Eileanan An Iar and Glasgow East; Philip Lardner stood as an independent in Ayrshire North after being deselected from the Conservatives)
no subject
Date: 2010-05-08 08:15 pm (UTC)no subject
Date: 2010-05-08 08:35 pm (UTC)no subject
Date: 2010-05-08 09:26 pm (UTC)no subject
Date: 2010-05-08 11:18 pm (UTC)no subject
Date: 2010-05-09 08:36 am (UTC)And I assumed that every constituency had a three-character code. In fact every constituency except Berwick-Upon-Tweed has a three-letter code, and Berwick has a two-letter code. Bother.
More-correct data (recognisable by having 4069 rather than 4056 lines) now up.
no subject
Date: 2010-05-09 08:42 am (UTC)no subject
Date: 2010-05-09 11:32 am (UTC)no subject
Date: 2010-05-09 12:12 am (UTC)I mainly want to work out how closely the central probable outcome of single stochastic vote would resemble the outcome of pure national proportionality - I can do that bit, convert numbers to percentages of total votes, then add the percentages column (correct? I think so).
no subject
Date: 2010-05-09 08:30 am (UTC)no subject
Date: 2010-05-09 11:01 am (UTC)no subject
Date: 2010-05-09 11:26 am (UTC)Perl is quite a powerful data-scrunging tool; load the result into excel as delimited with semi-colons as the delimiters.
no subject
Date: 2010-05-09 12:38 pm (UTC)Tories 224 as against 235 in national PR
Labour 196 as against 189
LibDem 146 as against 150
SNP/Plaid gain one each
"Others" 27 rather than 23, though Northern Ireland / randomness makes that a slightly dodgy figure I imagine.
Now to figure out how I calculate the bell curve rather than merely the central probability! La la la.
no subject
Date: 2010-05-09 12:39 pm (UTC)no subject
Date: 2010-05-09 03:17 pm (UTC)no subject
Date: 2010-05-09 02:06 pm (UTC)no subject
Date: 2010-05-09 02:12 pm (UTC)If you download the version dated 0943 today, of 4069 lines and 164228 bytes,
cut -d} -f1 < 2010-results.txt | uniq | wc
indicates 650 constituencies.
no subject
Date: 2010-05-10 08:23 am (UTC)I was safely ensconsed in Highlands and Islands constituency all day Thursday ....
no subject
Date: 2010-05-10 01:57 pm (UTC)