Advertisement

We need your help now

Support from readers like you keeps The Journal open.

You are visiting us because we have something you value. Independent, unbiased news that tells the truth. Advertising revenue goes some way to support our mission, but this year it has not been enough.

If you've seen value in our reporting, please contribute what you can, so we can continue to produce accurate and meaningful journalism. For everyone who needs it.

Sam Boal

What if we could call the election result before it even happens?

David Higgins has spent the past year building a statistical model which he hopes will accurately predict the outcome of the general election next week.

DATA IS ALL around us like never before. The growth of the internet and the advancement of new technology has led to the creation of more information than any of us could ever imagine.

One study suggests that 90% of the world’s data was created in just the last two years. We only have to look at Facebook’s recent jobs announcement to see that “big data” is now a big industry which plays a big role in our country.

‘Data analytics’ has become the broad term to describe the work in this field. Put simply, it attempts to draw value or insight from all of this information. We may wish to crunch Google’s database for Ireland’s most searched terms, or Amazon’s for the most purchased items.

Do you ever wonder how Facebook knows which friends to suggest to you, or why web ads seem to know exactly what you’re looking for? In all these examples, data analytics is at work behind the scenes.

As a student of statistics and computers I had the privilege of spending four years at the core of this field. Week after week we learnt the tools to take seemingly meaningless sets of numbers, and unlock the most insightful of knowledge.

In 2012 we studied the work of Nate Silver, a US statistician analysing the US Presidential election that year. On his website, FiveThirtyEight, he correctly forecast 49 of the 50 states at the 2008 election, and all 50 states in 2012.

Coding the Irish system

Nate_Silver_2009 Nate Silver Wikimedia Commons Wikimedia Commons

Inspired by the work of Nate Silver, I began to explore how this approach could work for Ireland. I’ve had an interest in politics since the age of 16, so I understood the workings of our PR-STV voting system, but translating it into coding language was another task entirely.

In the US, the election is simple, two candidates, two parties and the person with the most votes wins. In Ireland, there are 20 registered political parties, with some running multiple candidates in each constituency, plus independents. You then have a count system with numerous rules and dynamics. Voters not only have a vote for their favourite candidates, but preferences run right down the ballot.

In late 2014 I began putting the project together. Past election results are key to any forecast model. With count data from the last general election and local elections, I was able to build a profile for each party in each constituency. We know intuitively that some parties perform better in certain parts of the country.

Newer and more radical parties tend to draw their votes from urban and poorer areas with the established parties more evenly distributed across the country. We’ve known these trends for decades, but quantifying it more accurately allows us to unlock so much more.

Predicting the marriage referendum

In May 2015, Irish Elections Stats launched as a blog, detailing the work so far and a vision for what the project may become. In the same month, Ireland went to the polls in the marriage equality referendum. Numerous polls emerged in the closing week of the campaign and I tried my hand at forecasting the result.

Polls up to that point suggested 70% support for the amendment, although few took notice of the many undecided voters at the time. Taking an average of polls, and incorporating a strong swing of undecideds against the referendum, I determined a final Yes vote of 63%. On 22 May, Ireland voted 62% in favour.

screenshot.1455897384.94082 www.thejournal.ie www.thejournal.ie

So far so good, but general elections are much more complex. The summer months gave me a chance to expand the code and simulate the Irish system in more detail. By autumn, the model was able to produce probability figures for each candidate.

Fast forward to today, and I have launched Irish Election Stats as a full website with data for each party and each constituency. Users can explore how these forecasts evolve over time. As new polls emerge, the forecasts change. All general election counts are simulated 1,000 times to determine the most likely seats.

One of the most notable stats is a forecast for the number of female TDs. The introduction of gender quotas has put this issue into sharp focus. The projected rise in seats (c. 34 at the time of writing) is a noteworthy improvement over the 25 female TDs elected in 2011.

No clear government

The coalition options also make for fascinating reading. No clear government appears likely. Fine Gael and Labour have moved upwards since last year, however a handful of independents and smaller parties may be required to see them over the line. On current polling, the prospect of an alternative coalition, or Sinn Féin overtaking Fianna Fáil cannot be ruled out entirely.

The statistician George Box famously wrote that “all models are wrong, but some are useful”. Only after the final count will we know the true accuracy of the model. Even taking into account historic trends, we know that elections in Ireland can set new trends very quickly.

In particular, more work is needed to better capture the strong personal vote held by many candidates nationwide. There are also various local factors at play which may fail to be captured, including any constituency based events taking place since the 2014 local elections.

Whatever the outcome, I will have spent the past few months working with the most interesting dataset you could find. At the end of the day, elections direct the path of our country for the next five years. An understanding of the stats is fundamental for understanding our democracy.

I hope over the coming week you will follow the site and take a deeper interest in the data of this election. It is likely to be one of the most fragmented votes in our history.

David Higgins is a political analyst and founder of Irish Election Stats. You can follow him here @higginsdavidw

All our Election 2016 coverage is right here > 

Readers like you are keeping these stories free for everyone...
A mix of advertising and supporting contributions helps keep paywalls away from valuable information like this article. Over 5,000 readers like you have already stepped up and support us with a monthly payment or a once-off donation.

Close
57 Comments
    Install the app to use these features.
    Mute hollythetout
    Favourite hollythetout
    Report
    Feb 28th 2013, 12:08 AM

    Why don’t ye invent horse free meatballs ?

    407
    Install the app to use these features.
    Mute Shane Morton
    Favourite Shane Morton
    Report
    Feb 28th 2013, 12:20 AM

    Didn’t take long……

    149
    Install the app to use these features.
    Mute baby talk
    Favourite baby talk
    Report
    Feb 28th 2013, 8:35 AM

    Sky +. No more arguments about missing your favourite programme. The best invention by far in our house – the blessed record button !!!!

    174
    Install the app to use these features.
    Mute Podge Corbally
    Favourite Podge Corbally
    Report
    Feb 28th 2013, 12:01 PM

    Thanks be to Sky

    47
    Install the app to use these features.
    Mute Charlotte Chaudhry
    Favourite Charlotte Chaudhry
    Report
    Feb 28th 2013, 6:03 PM

    Even with Sky+ people cancel. Or they clash. The old way I think the best.

    4
    Install the app to use these features.
    Mute Carcu Sidub
    Favourite Carcu Sidub
    Report
    Feb 28th 2013, 8:18 AM

    And there was I thinking it was Divorce that stopped domestic rows.

    159
    Install the app to use these features.
    Mute Alslouth
    Favourite Alslouth
    Report
    Feb 28th 2013, 10:33 AM

    Me and the wife have the two sided elec blanket one in her room and one on mine.

    155
    Install the app to use these features.
    Mute Rory Conway
    Favourite Rory Conway
    Report
    Feb 28th 2013, 8:57 AM

    Why do women always leave the toilet seat down ????

    101
    Install the app to use these features.
    Mute Mags Louth
    Favourite Mags Louth
    Report
    Feb 28th 2013, 9:26 AM

    To keep the smell of the last man to use it at bay!

    99
    Install the app to use these features.
    Mute Ian Crowley
    Favourite Ian Crowley
    Report
    Feb 28th 2013, 11:37 AM

    Everyone knows that girls are smelly and ugly! Why else would you wear make-up and perfume?

    79
    See 1 more reply ▾
    Install the app to use these features.
    Mute Sharon Moore
    Favourite Sharon Moore
    Report
    Feb 28th 2013, 8:40 PM

    They must be queuing out the door with smooth talking like that…..

    41
    Install the app to use these features.
    Mute Lauren Halligan
    Favourite Lauren Halligan
    Report
    Feb 28th 2013, 10:01 AM

    There’s a two-sided electric blanket…? How am I only hearing of this now…?

    90
    Install the app to use these features.
    Mute Charlotte Chaudhry
    Favourite Charlotte Chaudhry
    Report
    Feb 28th 2013, 6:05 PM

    I know. I never heard of that until now.

    14
    Install the app to use these features.
    Mute una nolan
    Favourite una nolan
    Report
    Feb 28th 2013, 9:49 PM

    Have 1 for years , bought in a small hardware shop in Goresbridge !

    3
    Install the app to use these features.
    Mute Gary Guilfoyle
    Favourite Gary Guilfoyle
    Report
    Feb 28th 2013, 8:13 AM

    I never got the whole toilet seat thing.

    80
    Install the app to use these features.
    Mute Cpm
    Favourite Cpm
    Report
    Feb 28th 2013, 10:32 AM

    You share?

    12
    Install the app to use these features.
    Mute FreeThinker
    Favourite FreeThinker
    Report
    Feb 28th 2013, 10:05 PM

    Yeah, I prefer half toilets too.

    7
    See 1 more reply ▾
    Install the app to use these features.
    Mute Dave Sherman
    Favourite Dave Sherman
    Report
    Mar 1st 2013, 12:27 AM

    Try aiming Gary..

    1
    Install the app to use these features.
    Mute Dec Rowe
    Favourite Dec Rowe
    Report
    Feb 28th 2013, 10:44 AM

    The dishwasher is a total waste of money!! Hasn’t it been scientifically proven that women are better and faster dishwashers than machines?

    64
    Install the app to use these features.
    Mute Paddy Murray
    Favourite Paddy Murray
    Report
    Feb 28th 2013, 12:25 AM

    Now that is the saddest comment of the year so far.

    53
    Install the app to use these features.
    Mute chris topher
    Favourite chris topher
    Report
    Feb 28th 2013, 1:48 PM

    I don’t see a wife shutter upper machine on the list. We have the flippy toothpaste at home and I leave it open most of the time and I wouldn’t have an electric jacks seat in case I got a shock when my aim goes wonky after a few beers.

    36
    Install the app to use these features.
    Mute Stuart Hyland
    Favourite Stuart Hyland
    Report
    Feb 28th 2013, 3:52 PM

    Eastenders and holby city buys me some peace every now and then

    13
    Install the app to use these features.
    Mute Stuart Hyland
    Favourite Stuart Hyland
    Report
    Feb 28th 2013, 3:53 PM

    And we don’t have rows,because I’m right all of the time.

    21
    Install the app to use these features.
    Mute Glenn O'hAilpín
    Favourite Glenn O'hAilpín
    Report
    Feb 28th 2013, 11:25 AM

    No disrespect meant Susan and point taken with my apologies.

    32
    Install the app to use these features.
    Mute hjGfIgAq
    Favourite hjGfIgAq
    Report
    Feb 28th 2013, 11:41 AM

    Hey, no worries Glenn!

    29
    Install the app to use these features.
    Mute Neil Burke
    Favourite Neil Burke
    Report
    Feb 28th 2013, 7:18 PM

    The automatic toilet seat is ridiculous. A better idea would be a toilet that will not flush until the lid is put down. It will solve the seat up/down argument and be much more hygienic, saving toothbrushes from micro-spray of fecal contaminants.

    25
    Install the app to use these features.
    Mute Cpm
    Favourite Cpm
    Report
    Feb 28th 2013, 10:33 AM

    Why aren’t hurleys mentioned?

    21
    Install the app to use these features.
    Mute Thomas Johnston
    Favourite Thomas Johnston
    Report
    Feb 28th 2013, 11:12 AM

    I just got sucked/tricked into reading an advertisement.. sneaky TheJournal.. very sneaky!! Now, can I have my two minutes back please?

    17
    Install the app to use these features.
    Mute hjGfIgAq
    Favourite hjGfIgAq
    Report
    Feb 28th 2013, 11:44 AM

    Hi Thomas, Please note the reply to Glenn (above). This is clearly marked as a sponsored post, with branding and placed in a specially bordered box which shows that it is an ad and not a regular TheJournal.ie article. If you choose to click and read after all those flags, then that’s entirely your responsibility. We’re not in the business of tricking anybody (and I hope you enjoyed it anyway!).
    Thanks, Susan, Editor, TheJournal.ie.

    59
    Install the app to use these features.
    Mute Thomas Johnston
    Favourite Thomas Johnston
    Report
    Feb 28th 2013, 11:57 AM

    Thanks Susan – sure I was only messin’ – I enjoyed it so much I read it twice! :)

    51
    See 1 more reply ▾
    Install the app to use these features.
    Mute hjGfIgAq
    Favourite hjGfIgAq
    Report
    Feb 28th 2013, 12:03 PM

    Thomas, did we just have our first domestic? To make up for it, I’ll load the dishwasher for a month ;)

    90
    Install the app to use these features.
    Mute Glenn O'hAilpín
    Favourite Glenn O'hAilpín
    Report
    Feb 28th 2013, 11:07 AM

    So Ikea sponsor the Journal and now contribute editorials. They could do with learning what’s newsworthy and what isn’t.

    14
    Install the app to use these features.
    Mute hjGfIgAq
    Favourite hjGfIgAq
    Report
    Feb 28th 2013, 11:10 AM

    Hi Glenn, This is clearly marked as a sponsored post, branded and posted in a specially flagged/bordered box to show so. There is no attempt to hide this and it is up to you whether you want to click into the ad and read it or not.
    Thanks, Susan, Editor, TheJournal.ie.

    86
    Install the app to use these features.
    Mute tax slave
    Favourite tax slave
    Report
    Feb 28th 2013, 10:17 AM

    I love the way you sneaked that ADD IN . Priceless .

    9
    Install the app to use these features.
    Mute Robert Ferguson
    Favourite Robert Ferguson
    Report
    Mar 1st 2013, 3:50 AM

    Well done susan,ive no problem with the dishes,just eat in the mistresses house.

    7
    Install the app to use these features.
    Mute Sean O'Sullivan
    Favourite Sean O'Sullivan
    Report
    Feb 28th 2013, 11:06 PM

    How are the meatballs going lads?

    3
Submit a report
Please help us understand how this comment violates our community guidelines.
Thank you for the feedback
Your feedback has been sent to our team for review.