Wednesday, February 13, 2013

Updated poll aggregation

Last week we had a surprise from Newspoll, when it moved five percentage points towards the Coalition. Now Morgan has released a weekly poll for the last weekend that has moved four percentage points over the previous weekend; also to the Coalition. This movement from two polling houses has influenced the poll aggregation in recent weeks.






Explanatory notes on the Bayesian aggregation can be found on the Technicals page.

Tuesday, February 12, 2013

Weekly poll aggregation

There was only one new poll since last week's. It was the Essential rolling poll, which combines two weekly polls. It moved this week, from 46 to 45 per cent Labor two-party preferred.






Saturday, February 9, 2013

A different look at house effects over time ...

House effects are the systemic biases that consistently affect a pollster's published estimate of the population voting intention. In the Bayesian model, we assume they a constant over time.

In this analysis, using localised regressions (LOESS), we can see the slow drift in Essential's population estimate compared with the other three polling houses (that poll on a fairly regular basis). This is not the first time we have reflected on Essential's drift. But it is the first time we have done it with LOESS.

Another factor I have been thinking about is non-linearity in the response of polling houses to changes in the population voting intention. If you consider the 365-day-LOESS-span chart, it can be argued that over the past 18 months Morgan's face to face poll has been more responsive to shifts in public voting intention for Labor than Essential (and perhaps Newspoll). What is less clear to me is whether some polling houses are over-responsive and/or others are under-responsive.



Some key dates to think about in considering this period include:
  • Abbott replaced Turnbull as Opposition Leader - 1 December 2009
  • Rudd announced that the Government would delay implementing an emissions trading scheme - 4 May 2009
  • Gillard replaced Rudd as Prime Minister - 24 June 2010
  • 2010 election - 21 August 2010

And the combined LOESS charts for the same periods ... the drift in Essential's house effect means that the combined LOESS leans more towards Labor at the beginning of each chart than it does at the end of that chart.



Tuesday, February 5, 2013

Weekly poll aggregation

This week we have two and a half new opinion polls. One of them - Newspoll - lurched dramatically to the Coalition. Three weeks ago, the Newspoll two-party-preferred estimate was 51 to 49 in the Coalition's favour. Last weekend, the Newspoll estimate was 56 to 44 in the Coalition's favour. A five percentage point movement.


Last weekend's Galaxy poll was pretty much unchanged from the beginning of December (which is consistent with the aggregated poll as it was until last week). For the rolling fortnightly poll from Essential (half of which was sampled last weekend and the other half during the previous weekend) we also have a steady-as-she-goes poll result. All of which leaves me wondering, is the Newspoll result a rogue poll?

While "rogue" (at least in part) would be my hunch, there is currently no way of knowing for sure. We will need to see a few more polls before we can form an informed judgement on this particular poll. Nonetheless, such a dramatic movement in this Newspoll has moved the aggregated poll result (albeit less so).







Update 6 February


Morgan has broken with its usual practice and released a weekly poll: 50.5 to 49.5 in the Coalition's favour. This was a one-percentage point move to the Coalition over the previous fortnightly poll. Dropping these numbers into the Bayesian model sees an unchanged endpoint:





Update 8 February


I have been asked about the latest LOESS aggregation. At 47.1 per cent, it yields a very similar result to the Bayesian aggregation.

Wednesday, January 30, 2013

Weekly aggregated poll






Explanatory notes can be found on the Technicals page.

In terms of the 14 September 2013 election announced by the Prime Minister: the Australian Electoral Commission has foreshadowed an election timetable.

Tuesday, January 22, 2013

Weekly poll aggregation

The only poll released since the last aggregation was the weekly Essential poll, which was a status quo result. So there is little change on last week's aggregated result.






Explanatory notes can be found on the Technicals page.

Wednesday, January 16, 2013

Poll aggregation






Notes
  1. Poll aggregation based on a Bayesian fixed house-effects model, over a six month span, with 100,000 MCMC iterations. House effects across the six polling houses are constrained to sum to zero
  2. Poll dates are set to the median date of the polling period
  3. House outcome estimates based on a national probability model

Sunday, January 13, 2013

Blog holiday

Dear reader, I am heading off for an extended blog holiday.

Sunday, December 30, 2012

Footy tipping with some help from Bayes

Christmas is the season for frivolous pursuits. For the fun of it, I thought I would adapt the Bayesian model I use to pool the polls to see how it would fare against the bookmakers in predicting NRL footy outcomes for the 2012 season.

The model I tested was very simple. It assumed that the score difference between two teams can be explained by two parameters. The first is a home game advantage parameter for each team. The second is a parameter for the strength of each team. These team strength parameters are allowed to evolve from round to round. This model can be expressed roughly as follows.

(home_score - away_score) = home_team_advantage + home_strength - away_strength

team_strength_in_round ~ normal(team_strength_in_prev_round, team_standard_deviation)

The JAGS code for this model is as follows.

    model {
        # observational model
        for( i in 1:N_GAMES ) {
            score_diff[i] <- homeAdvantage[Home_Team[i]] +
                (strength[Round[i], Home_Team[i]] - strength[ Round[i], Away_Team[i] ])
            Home_Win_Margin[i] ~ dnorm(score_diff[i], consistencyPrec)        
        }
            
        # temporal model
        for( round in 2:N_ROUNDS ) {
            for( team in 1:N_TEAMS ) {
                strength[round, team] ~ dnorm(strength[(round-1), team], strongWalkPrec[team])
            }
        }
            
        # predictive model
        for( i in N_FROM:N_GAMES ) {
            prediction[i-N_FROM+1] <- score_diff[i]
        }
            
        # priors
        consistencySD ~ dunif(0.0001,100)               # vague prior - positive
        consistencyPrec <- pow(consistencySD, -2)
                
        for( team in 1:N_TEAMS ) {
            strength[1, team] ~ dnorm(0, pow(100, -2))  # vague prior
                
            homeAdvantage[team] ~ dnorm(0, pow(10, -2)) # vague prior
                
            strongWalkSD[team] ~ dunif(0.0001,4)        # vague prior - positive
            strongWalkPrec[team] <- pow(strongWalkSD[team], -2)
        }
    }

I tested the model with this data for seasons 2011 and 2012. For each round in 2012 (prior to the finals), I picked the team the JAGS code and the team the bookmakers thought most likely to win. I did not consider draws. While I estimated the probability of a draw from the JAGS samples, I only picked the maximum from the probabilities of a home win versus an away win. For the JAGS prediction, I simulated each round 10,000 times. For the Bookmaker prediction I converted their odds to probabilities which I adjusted for the bookmaker's overround so that the sum of the home-win, away-win and draw probabilities was one.

The end result (for such a simple model) was very close. Over the course of 2012, the JAGS model picked the winning team 121 times. The bookmakers (or more accurately, the punters collectively) got it right 122 times.

The challenge now is to refine the model and make it better than the bookmakers.

Wednesday, December 19, 2012

Today's Morgan

Today's Morgan face-to-face poll has Labor on 52.5 per cent (up 5) and the Coalition on 47.5 per cent (down 5). When I drop these figures into my six-month, fixed-House-effects Bayesian model the end-point estimate for the population TPP voting intention for Labor moves from 47.3 per cent to 48.1 per cent.

I would like to give you the plot, but from my seaside holiday destination I only have a one-bar 2G connection to the interweb thing.

Update: A short drive yields a better internet connection. Here are the charts:



This latest data-point substantially moved the Morgan face-to-face house effect (from 1.99 percentage points previously to 2.35 points now). This is a lot of movement in the house effect for a single data point. In time we will see whether this latest Morgan data-point was an outlier or a turning point. 

As a counter-factual, I have re-run the model without the Morgan face-to-face series. The results were as follows.