Visualising regional data using the geofacet R package

Italy from space

Spatial data make an enormous contribution to our understanding of the world. They allow us to monitor life expectancy and the spread of disease within a country, the distribution of employment and wealth across a continent, and the condition and use of land in a conservation area. They help us to understand from where people watched the recent eclipse, which roads are the most dangerous, and what areas of a city are the least polluted and have the lowest crime rates. 

Continue Reading

Forecast error: Predictors of the 2017 UK general election

Jeremy Corbyn after 2017 election

On 18 April 2017 British Prime Minister Theresa May announced a snap general election for 8 June 2017, hoping the country would deliver her the strong parliamentary majority she believed she needed to successfully conduct the UK’s Brexit negotiations. The result on 9 June – a hung parliament, with no party having an overall majority – was not what many of the pollsters, betting firms, modellers and academics were anticipating.

Continue Reading

UK general election: Five steps to make sense of the latest polls

Unlike the 2015 general election, when the polls were essentially static (and wrong) throughout, the 2017 general election has seen some of the most extraordinary volatility in the polls that I can remember. If you are a Conservative supporter, the narrowing lead over Labour must be leading to anxiety and changed underwear. If you are a Labour supporter, you are probably starting to dream “can we? will we?!”

Continue Reading

Predicting the UK’s snap general election


I have decided to build a model to try to predict the results of the upcoming snap general election in the UK. I'm sure there will be many people attempting this, from various perspectives and using different modelling approaches. But I have set out to develop a fairly simple (though, hopefully, reasonable) model. In the process of describing this to you, I hope to shed some light on how statisticians build predictive models.

Continue Reading

What’s happened to the polls since the 2015 UK election?

When British Prime Minister Theresa May called a snap election for 8 June 2017, it seemed like a smart move politically. Her Conservative Party was riding high in the opinion polls, with a YouGov poll in the Times giving them 44%, a lead of 21 points over their nearest rivals, the Labour Party. Were an election to be held the next day (as surveys often suppose) May looked to be on course for a convincing win.

Continue Reading