4056 lines of data
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
no subject
no subject
no subject
no subject
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
no subject
no subject
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
no subject
no subject
Perl is quite a powerful data-scrunging tool; load the result into excel as delimited with semi-colons as the delimiters.
no subject
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
no subject
no subject
no subject
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
I was safely ensconsed in Highlands and Islands constituency all day Thursday ....
no subject