Showing posts with label Projection Methodology. Show all posts
Showing posts with label Projection Methodology. Show all posts

Sunday, January 25, 2015

Introducing the 2015 federal election projection model

It is hard to believe that 2015 is now finally upon us. The 2011 federal election seems like eons ago. At the time, the prospect of a majority government, after seven years in which four elections were held, seemed like an endless expanse. But we're now finally in the election year, so it is time to get ThreeHundredEight.com's projection model up and running.

I'll get into analyzing the numbers themselves in the coming days. For now, you can click on the link above or the table above to see the breakdown. For now, let me go over the features of the model, the changes that have been made, and how we got here.

What's been learned since 2011

The roots of the model that will be used for the 2015 federal election, and which has been used in 12 provincial elections that have occurred from coast-to-coast, was first employed in the 2011 federal vote. In some ways, that election was a successful proof of concept. In other ways, it was a failure.

Those who doubt the usefulness of projection models and other critics will undoubtedly point to that failure in 2011. They would not be wrong in doing so, but it would be dishonest. Why? Because the projection model worked very well in 2011.

At least, the seat projection model did. After the election was over, I plugged the results in each region of the country into the model, as if the polls had nailed the call. The outcome was exceedingly close to what actually happened:

The model would have missed the Conservative count by just five seats, and pegged the Liberals and New Democrats to within three. Even the huge breakthrough in Quebec for the NDP would not have thrown the model for a loop - the New Democrats would have been awarded 60 seats and the Bloc Québécois just four (the actual result was 59 and four, respectively).

So the seat projection model proved its ability to translate regional support levels into accurate numbers of seats. This has been proven again and again in provincial elections since. But the call in 2011 was nevertheless missed.

There were two reasons for that. The first was entirely my fault. At the time, I had been basing my model on past elections like those in 2006 and 2008. In each of those elections, the polls in the last weeks of the campaign hardly budged. The swing that occurred over the holidays in 2005-2006 had settled in for some time by the end of that campaign. With those elections as my guide, I calculated that I needed to decay the weight of a poll by just 7% with each passing day.

That was a grave error. It is a system that would have worked well in 2006 or 2008, but utterly failed to capture the late swing away from the Liberals and towards the New Democrats that occurred in 2011. What happened was that, by election day, the projection model was still roughly one week behind where it should have been. Accordingly, it projected a Conservative minority government with 78 seats going to the NDP, 60 to the Liberals, and 27 to the Bloc.

After that disaster, I changed the way the weighting system worked and increased the decay to 35% per day. This has been employed in the past dozen election campaigns and has had no trouble capturing the shifting mood of the public. But that is, of course, if the polls capture it as well. And that is the second reason why 2011 did not go well.

The polls did a moderately good job of things in 2011. They were on the money in Quebec, where the electorate had shifted so dramatically. But at the national level, the polls missed out on the Conservative majority government. With the system in place now, the vote projection model would have given the Conservatives 36% of the vote, instead of the 39.6% they actually got. Both the NDP (31.5% instead of 30.6%) and the Liberals (20.1% instead of 18.9%) would have been over-estimated. The seat projection would have put the Conservatives about a dozen seats shy of a majority government.

This is why, starting with the 2012 Alberta provincial election, I developed a system to estimate likely ranges of support. This system takes into account the potential for the polls to be wrong, and is reflected in the table at the top of the page by the low/high and minimum/maximum ranges. Nineteen times out of 20, the result should fall within the maximum/minimum ranges. There are varying levels of likelihood of the results falling within the other ranges, as explained on the methodological page.

These ranges allowed me to be one of the only people to consider the possibility that Wildrose would not win that 2012 vote.

Starting in 2013, I added another element to the projection model. I found that, too often, people were taking the projected results in individual ridings too literally, as if they were a real indication of support. For that reason I have long thought about not publishing riding projections. But I think it is important to 'show my work', and that is what the riding projections do. They also include ranges that should give people a decent idea of who is and who isn't in play in a given riding.

Still, I wanted to make sure people considered the potential for error. I added probabilities to the projection model, measuring the likelihood that the call the projection model makes in each individual riding will be right.

To take London North Centre, where the Liberals held their two-day caucus meeting last week, as an example, the model currently says that the Liberals would win it with between 43% and 50% of the vote. The Conservatives, at 29% to 34%, are apparently not in play. But the model also says that the Liberals have an 82% chance of winning it. That means that, despite the ranges projected by the model, there is still a roughly 1-in-5 chance that the Liberals will not win the riding.

These probabilities were the last major addition made to the basic projection model, which has been employed with very few changes in the most recent provincial elections in British Columbia, Nova Scotia, Quebec, Ontario, and New Brunswick. A few new minor features, however, have been added for 2015.

What's new in 2015

While none of the basic mechanisms of the model have changed (see the methodological page for complete details on how it works), there are some differences between the 2015 model and the model that was used in prior elections.

First is something that is gone. In past elections, I've applied a "floor-crosser" factor in ridings where a sitting MP has crossed the floor to run with another party. It has had a mixed record. In some cases, the "floor-crosser" factor was quite effective. In others, it was greatly off the mark. I have decided to drop it as a factor that is taken into account. In its place, the party losing a floor-crosser suffers a 'no incumbent' penalty, and the party picking up the floor-crosser gets a 'star candidate' bonus. In past elections, this would have worked better than the system that had been used.

A new factor that has been added to the model, however, takes into account party leaders. My research has suggested that leaders are far more difficult to defeat than normal incumbents (though it can always still happen, of course) and that an MP running as a leader for the first time perform especially better than other incumbents. The loss of a leader as a candidate in a given riding, in addition, is far more penalizing than the loss of the average MP. So, for example, Gilles Duceppe's old riding will be harder to win back for the Bloc Québécois than the average riding they lost in 2011.

The particularities of the 2015 election

As always, an election has its own particularities that need to be taken into account. The idea behind the projection model is that it can be applied uniformly in all jurisdictions in Canada. But the fact is there are always oddities in individual elections that have to be considered.

The new federal riding boundaries is one thing that will make the election potentially harder to call than would have otherwise been the case. But the model has dealt with new boundaries before. In the 2011 Manitoba provincial election, for example, 56 of 57 ridings were called correctly despite the shifting boundaries. For this election, the model merely uses the transposed results that were calculated by Elections Canada. MPs that have shifted ridings are treated as incumbents. Ridings with no incumbents are left unadjusted by the incumbency factor.

The presence of Forces et Démocratie complicates matters. Normally, new parties have been handled by the model without much difficulty. Their support is awarded equally in all ridings within a given region (with the correct regional results, the model would have been within one seat of Wildrose's result in 2012, despite the party fielding candidates for the first time in many ridings).

But no pollster has included FeD in its surveys yet, so we cannot gauge their support. What I have done, until better data becomes available, is to treat Jean-François Larose in Repentigny as I would any sitting MP running as an independent (he retains a portion of his 2011 vote). For Jean-François Fortin, I have simply decided to adjust his 2011 support levels with the Bloc exactly as Jean-Martin Aussant's PQ support in the 2012 election shifted when he led Option Nationale. He seems like an appropriate example to use as a guide.

The floor-crossing of Bruce Hyer from the NDP to the Greens (via a stint as an independent) is also hard to model. Floor-crossing between the 'establishment' parties is relatively straight forward. Not so when it is the Greens, because their base in Hyer's riding was so small in 2011. Treating him like any other floor-crosser would, I think, under-state his likely support. What I've done for him, then, is to adjust his support levels in the same way that Blair Wilson's support shifted when he crossed to the Greens before the 2008 election. Hopefully a riding poll will be done in the riding to give us a better idea of what is going on, as I fear the system in place is also inadequate.

The last particularity of the 2015 election is the presence of an independent candidate like Inky Mark. In 2011, the model did not make any adjustments for the independent candidacy of Hec Clouthier, a former Liberal MP, in Renfrew-Nipissing-Pembroke, who captured a respectable share of the vote. Mark used to be an MP for the riding of Dauphin-Swan River-Marquette (now known as Dauphin-Swan River-Neepawa) and is running as an independent. So, based on past cases of former MPs attempting a comeback as an independent, Mark has been awarded a portion of the support he had in the last election.

Don't miss the forest

As always, I urge readers to exercise caution when looking at the projections. Consider the ranges very carefully. Don't take the individual riding projections as fact. The model simply cannot take into account the effects of local issues in all 338 ridings, and some will be wrong.

Take, for example, the riding of Outremont. It is currently projected to go Liberal, with the NDP in range of winning it. That is Thomas Mulcair's riding. Do I think he is actually going to lose it? Not for a second. But the model does, simply because of the gains the Liberals have made province wide in Quebec.

And that brings up something I am concerned about in the 2015 election. Polls have shown strong gains for the Liberals in Quebec. They have roughly doubled their support in the province since 2011. The model, then, doubles their support in every riding. That means the party is in a good position to sweep Montreal, where they had a decent base in 2011.

But regional polling by CROP has shown disproportionate growth for the Liberals outside of Montreal, meaning that the model may be inflating the party's numbers too much in Montreal and not enough outside of it. This is why, for example, it could be very wrong about Outremont.

The overall seat count for the province, however, is likely to be accurate. Using the polls from CROP, I made projections for the province at the sub-regional level. The end result was not much different. At the riding level, there would be some important differences - more Liberal wins outside of Montreal, fewer around the city. But the sum total of the seat count remains the same - particularly when we consider the ranges. This is why I beg readers not to miss the forest for the trees. The individual riding calls are not nearly as important as the overall regional and national projections.

You might wonder why I don't adjust the model to project sub-regionally in Quebec. The issue with that is that no other pollster is releasing sub-regional numbers for the province. And in 2011, CROP exited the field over a week before the end of the campaign. It would seem unwise to turn the Quebec portion of the model into a sub-regional one, when in all likelihood I won't have information to plug into it.

That about covers everything. I reserve the right to make some adjustments between now and the start of the campaign, though I don't suspect anything but tiny tweaks (perhaps to the values of the 'factors', for example, if I have time to plug some more data points into my calculations). If you notice anything that looks fishy, or even typos, please do alert me to them as errors could have crept in.

Though the model is fully automated, the graphics aren't. They can take quite some time to pull together, so at this stage I'm not sure how frequently I will update the projection. At least weekly, certainly, but updates with every individual poll, as I was doing for the running poll averages, may be too much. And just to make things clear: no, I am not changing the name of the site to ThreeThirtyEight or some variant of that. Consider the name of the site as a historical monument to when it was launched, during an era of seemingly endless minority governments.

Are we heading back to that this year? The current projection, with the Conservatives at between 117 and 155 seats and the Liberals between 107 and 144, would seem to say yes. But more on that later this week.

Tuesday, August 13, 2013

The new projection model for the upcoming Nova Scotia election

The next provincial election likely to occur will be in Nova Scotia. Premier Darrell Dexter needs to call the vote by the spring of 2014, but all indications are that he will drop the writ some time in the late summer or early fall. Accordingly, ThreeHundredEight is today launching the Nova Scotia projection.

Unfortunately, there isn't a lot of polling data to go on just yet. The most recent numbers we have for the province date to the end of May, when Corporate Research Associates was last in the field for their quarterly polling. They should be out with the numbers from their next quarterly poll in early September.

The projection model has been given a few tweaks, as is always the case after each election - and particularly after such a humbling election as the one in British Columbia. One thing that has not been tweaked, however, is the seat projection model or the way that polls are weighed. The seat projection model has, time and again, shown itself to be a useful tool if the numbers plugged into it are accurate. That means the challenge is not to estimate the number of seats each party will win, but rather what proportion of the vote they will get.

A detailed description of how the polls are weighed and seats are projected can be found here. I will not go over that again, but rather explain some of the changes in the new model and the philosophy behind them.

First, a quick guide to what the new main projection graphic is showing (click to magnify):
At first glance, you will note that I have dropped forecasts for the election date from the chart. This is because I have decided to take a different approach to projecting electoral outcomes.

The model I used in the provincial elections of Alberta, Quebec, and British Columbia were based on a simple premise: what can the polls tell us about how they will be wrong? The inherent problem with that approach is obvious.

I was using the sample size of all the polls being taken into account by the model to estimate a rough margin of error for the projection. That gave me my high and low ranges. I then also used the degree of volatility from poll to poll to estimate the potential for future volatility in the days remaining between the last set of polls and the election day.

But if the polls are off, it does not make much sense to use those polls to guess at how they will be off. The data they are recording is not going to give a hint at the potential error if the foundations upon which they are built are faulty.

Instead, the approach for the Nova Scotia election (and, if it works well, for future elections) is to use the degree of error polls have shown in the past to assess the probable range of outcomes.

I was already using this sort of adjustment in the last few elections. This was applied directly to the poll average, using the average over- or under-estimation that the polls had done in past elections to guess at how the polls might over- or under-estimate party support in future elections (in B.C., this was done for the Greens and Conservatives and worked very well). But rather than use this information to make a best guess, I will instead be using it to give a likely range of outcomes.

This is calculated based on a party's position in the legislature at dissolution: the governing party, the Official Opposition, a third party with multiple seats, a third party with a single seat, and parties without a seat in the legislature. The electoral outcome for each of these parties in recent elections is then compared to the polling average.

All cases in which a party in a particular position in the legislature was under-estimated in the polls is then used to calculate the average "High". For example, the average under-estimation (when polls under-estimated a party's support) in recent elections for the governing party has been by a factor of 0.97. That means that the weighted polling average (which does make an independent estimate of "Other" support) is adjusted by a factor of 0.97. The same is done for cases of over-estimation to calculate the "Low", and these numbers are then used to project the number of seats that can be won at these high and low numbers.

The minimum and maximum projections ("Min." and "Max." on the chart) are simply the worst cases of over- and under-estimation that has occurred in recent elections. That means the Alberta Progressive Conservatives in 2012 (governing party, under-estimated), the Newfoundland and Labrador Liberals in 2011 (Official Opposition, under-estimated), Wildrose in 2012 (other party with multiple seats, over-estimated), etc. In other words, it means that if the election outcome falls outside of these minimum and maximum ranges, the polls have missed the target by an unprecedented amount. That this is a possibility should not be entirely discounted.

This hopefully gives readers a full understanding of the potential range of outcomes that are possible, based on past polling performance and what the data is showing. My role is not to make bets, but to try to figure out what the polls are saying and what they aren't saying, and to give people in idea of what to expect. But to narrow it down a little, I have also included boxes showing the range of most likely outcomes for each party. This means that each box represents the degree of polling error that has occurred in a majority of recent elections for a party in a similar legislative position. The chart below spells this out for the Nova Scotia vote:
As the governing party, there is 68% chance that the electoral outcome for the New Democrats will fall within the average-to-high range. This is the range that is highlighted in the main projection chart. If we want to extend that further, we can say there is a 79% chance it will fall between the low and high marks, or there is an 84% chance that it will fall within the average to maximum range. This suggests that we should expect the polls to under-estimate NDP support - though that is not necessarily what is going to happen.

For the Liberals as the Official Opposition, the range is not so tight. The most likely individual outcome is for the result to fall within the average-to-high range (42%), but it is more likely that it will fall outside of that range (the remaining 58%). To find the smallest range that incorporates the most likely outcome, we have to stretch that to the low-to-high range. There is a 63% chance that the outcome will fall within that range.

For the PCs, a third party with multiple seats, a slight over-estimation is the most likely individual outcome but we have to stretch the range also from low-to-high to get to a 67% chance. For the Greens, an over-estimation is almost certain: there is a 60% chance the outcome will fall within the low-to-average projection, and a 95% chance that it will between the minimum-to-average.

This is the extent of the probabilities that will be calculated for the province-wide projection. I was not pleased with the picture the probabilities painted in the B.C. election: the NDP was given a 98.3% chance of winning the popular vote, and a 83.3% chance of winning the most seats. Technically, that doesn't mean the probability forecast was wrong. Realistically, the polling data may not have supported a 1.7% chance of the B.C. Liberals prevailing. The seat projection probabilities were probably closer to the mark (expecting this sort of "B.C. Surprise" in four out of every five elections is not entirely unrealistic), but I've decided to drop this calculation for the time-being until I have the chance to go over in more detail what these calculations were based upon. I think the seat probabilities are on the right track (they were based, after all, on 308's track record), but the vote probabilities may have in the end been based on inappropriate data.

Probability calculations for individual seat calls, however, will remain a feature of the new model. They performed very well in the B.C. election, the first time they were calculated:
In the ridings where the confidence of a correct call was between 50% and 59%, 60% were called correctly. When the confidence was between 60% and 69%, the accuracy rate was 71%, and so on, as the chart above shows. The results of the B.C. election have been incorporated into the probability calculations, which has had the effect of narrowly boosting them upwards (yes, one of the ridings is called with 100% confidence!).

Unless more detailed polling data is made public, the model will not be presenting projections at the regional level. The model is designed for regional-level polling, however, splitting the province up into Cape Breton, the Halifax Regional Municipality, and the Rest of the Mainland. Corporate Research Associates divides the province like this, but I don't know yet whether this information will be available throughout the campaign. If this information is not available, regional support will be 'estimated' from province-wide polls in order for the data to be plugged into the model. I don't suspect a problem related to this, however. I got a peek at CRA's regional results for their last poll, and they generally mirrored what a proportional swing would calculate from province-wide results. It seems that, at this stage at least, support for the parties in Nova Scotia are increasing and decreasing proportionately at the regional level.

I am hopeful that these new measures will provide a good result in Nova Scotia. But it is a small province with which to launch a new methodology. The populations of Toronto or Montreal, not to mention a few other cities, are larger than that of Nova Scotia (accordingly, I am hoping to cover their mayoral elections). Why should readers who don't live in the province be interested?

Well - the province does have interesting elections. There are three competitive parties and a lot of ridings where all three parties have a chance of winning. The NDP government there is only in its first term and is the first to be elected in Atlantic Canada. A rebuke may not mean anything in particular for the federal New Democrats, but it certainly does not bode well. The Liberals have been buoyed throughout the region, perhaps due to the federal party's new appeal, and have not been in power in Nova Scotia since 1999. For the PCs, they need to get out of the trough that delivered them their worst performance in provincial history in 2009.

If that isn't enough, provincial results in Nova Scotia do track with those of the federal parties in the province generally well - if not always explicitly, at least relatively (they seldom go in different directions).

So, perhaps the provincial election result in Nova Scotia will tell us something about how the federal parties will do in the province in 2015. Perhaps not, however. The numbers generally tracked pretty well until recently.

I don't suspect a huge amount of polls for the race in Nova Scotia, unless one of the firms feel they have something to prove. But hopefully there will be enough to keep things interesting.

Tuesday, July 9, 2013

The quick and easy (and effective) turnout model

After the polling debacle in the British Columbia election earlier this year, many pollsters identified turnout as a major issue in the error, and not in terms of the number of people who turned out. Rather, the problem was with who turned out. I looked at this issue in an article for The Globe and Mail shortly after the B.C. election, and a new article by Angus Reid for Maclean's identifies the same problem. In that article, he mentions that if Angus-Reid had used a turnout model based on who went to the polls in 2009, they would have given the NDP a three-point lead instead of the nine-point lead they actually awarded the party.

While that still would have been off, it would have been a lot closer and would have suggested that the race was getting too close to call. The egg on the faces of the pollsters (and those who base their work on polls, such as myself) would have been a little thinner.

Ever since the federal and provincial elections in 2011, I have played around with trying to guess at how the polls were going to miss turnout. This was employed in the manner of adjustments to the projection based on how the polls had been wrong in similar situations before. This helped me get very close to the results for the B.C. Greens and Conservatives in the election, and got me a little closer to the truth in Alberta (I probably would have had a Wildrose majority instead of a minority without it).

But the results haven't been satisfactory, and the B.C. election showed how necessary it was (Alberta had some other dynamics going on, not related to turnout). The 2011 federal election was also influenced by turnout, as it turned a Conservative minority government into a majority one.

I could try to design some complicated model for estimating turnout, but in most cases the simpler a forecasting model can be the better it is. One of the criticisms of Nate Silver's model is that it is overly complicated for only a slightly better performance than simpler alternatives. He has alluded to that himself, and discusses the benefits of simplicity in The Signal and the Noise (required reading).

I've determined that a very simple turnout model can, in fact, be quite effective. That model has to do entirely with age. Younger Canadians do not go to the polls in as large numbers as middle-aged Canadians, who do not vote in as large proportions as seniors. And, it seems, those who do vote tend to vote in similar ways to those who are older than them.

In order to reflect this, the simple turnout model I will be using in future elections (when the data is available, and as a separate calculation from the polling aggregation) employs the following formula: discard the results of those under the age of 35 and double the results from respondents 55 and older. That's it.

This is easy to do as most pollsters tend to report these age groups. When they use other definitions, a little tweaking needs to be employed. When they do not report these results, I will have to estimate them based on what other polls are showing or ignore them entirely. The results of this method are surprisingly good.

The chart below shows the difference between the final projection and what that final projection would have been if using this simple turnout model (ignoring polls without age breakdowns) in four recent elections. A few notes: in Alberta, I have compared the turnout projection to the unadjusted final projection - I was employing turnout adjustments for every party in that election already. And in Quebec, since Léger and CROP do not report age breakdowns, I have only applied the turnout model to Forum Research's final poll.


As you can see, in every case the turnout model performs better. In some cases, the difference is dramatic: total error would have been reduced by about a third in British Columbia and almost entirely erased in Ontario. The results in that province are particularly striking - no party would have been missed by more than 0.3 percentage points!

For British Columbia, the difference is the most consequential since it would have changed the narrative from an easy NDP victory to a lead of only 2.3 points. In the case of Angus-Reid, if the firm would have used my simple turnout model instead of a more complicated one based on 2009's turnout figures, they would have had the NDP's lead at only two points (42% to 40%) instead of the three reported in the Maclean's article. Ipsos-Reid would have also had a two-point lead (44% to 42%) instead of the seven-point gap they actually had, while Forum Research would have given the Liberals a two-point edge (43% to 41%) instead of the reverse.

In Quebec, Forum's adjusted numbers would have tied Léger's for the best performance, while in Alberta their final poll would have given Wildrose a one-point advantage instead of two points. The final polls of Angus-Reid and Abacus Data would have been made worse, however. Turnout was not the issue in Alberta, it seems.

UPDATE: I had forgotten that Léger did indeed release age breakdowns with their final Quebec poll (they normally do not release this information). As you can see in the discussion in the comments, applying the turnout model to the Léger and Forum polls and averaging them gives a very good result: 33% PQ, 30.5% PLQ, 27% CAQ, and 6% QS for a total error of only 1.5 points!

For Ontario, the results would have been simply astounding. The polls by EKOS Research, Angus-Reid, Abacus Data, and Ipsos-Reid would have all been closer with this very simple turnout model.

This demonstrates how Canadian election polling needs to rely on more dramatic turnout models in order to get closer to election results. This is problematic, however, since it implies that the pollster with the best model, and not the best methodology, would get the plaudits. In order to be acclaimed for having the best methods, pollsters should use a turnout model based on the questions in the poll itself, like Ipsos-Reid did in their most recent federal survey. If a pollster can estimate turnout correctly, as well as the results of the vote, they will have proven themselves exceedingly competent. This requires full reporting, however, as otherwise the public will not be able to determine if the model or the methodology won the day.

For ThreeHundredEight, this simple turnout model should provide readers with some decent expectations of results. At the very least, it should help prevent some surprises. But because the model is so simple, and verges more on a gimmick than anything based on voting behaviour research, I will only be including it as an extra piece of information. The site will abandon turnout modelling for the projection itself, and instead focus on polling averages and ranges based on how polls have been wrong before. Hopefully, this will give readers the best possible understanding of the dynamics of an on-going campaign.

Monday, December 3, 2012

BC New Democrats hold wide lead in first projection

The next election in British Columbia is less than six months away, and in ThreeHundredEight.com's first projection and forecast for the province the New Democrats hold a wide lead over the governing B.C. Liberals. They are also heavily favoured to win, even six months out.

An analysis of the projection results themselves can be read at The Globe and Mail here. Rather than go over the results a second time, I will explain some of the projection's new features.

A complete explanation of every aspect of how the projection and forecasting models work can be found here. For the most part, the basic methodology has not changed so the bulk of that explanation is covering what I have already described in detail before. In this post, I'll go over the features that have not been presented in past elections.

With this new model, I wanted to tackle a few problems but also take a somewhat different approach to how projections are presented. The most important problem is how to bridge the gap between what the polls show and what the election results end up being. The amount of data available in Canadian elections is relatively low, especially compared to the United States and particularly at the tail end of a campaign. It is common for the final polls of a campaign to be conducted days before the actual vote, leaving a big gap between the last information available and the time that people cast their ballot.

The projection now makes two calls. The first, which is what I call the projection itself, is the best estimate of a likely outcome if an election were held on the last day that the most recent poll was in the field. In the case of British Columbia, that is Angus-Reid's poll of November 21. The projection, then, is the best estimate of the outcome of an election held November 21.

In order to measure the degree of error that can be expected in the polling, high and low projection ranges are tallied. This is determined by applying the margin of error for the estimated "sample" of the projection itself. This sample is measured by comparing the weights and sample sizes of other polls to the most highly weighted poll in the projection. For example, let us assume that a projection has three polls in the database. All three have a sample of 1,000 people. One poll is rated at half the weight of the most highly rated poll, while the third poll is weighted at one-fourth of the most highly rated poll. The estimated "sample" of the projection would then be considered to be 1,750 people (1,000 people from the first poll, 500 from the half-weight poll, and 250 from the quarter-weight poll). That 1,750 sample is then used to determine the margin of error for each party, which changes according to the support a party holds. An easy demonstration of this is that a party with 2.5% support has a different margin of error than a party with 25%. If the margin of error in the poll is 3.1%, the range of results for the small party can't be as low as -0.6%.

By calculating the margin of error attributed to the projection's "sample", that is used to determine the likely ranges of the projection itself. Theoretically, this range is based on the assumption that the polls have accurately reflected the mood of the electorate, within their respective margins of error.

The current projection is heavily skewed towards Angus-Reid's last poll, since the amount of data is rather thin. This makes the "sample" of the projection relatively small, not much larger than the 800 people surveyed in that poll. For that reason, the high and low vote projections are rather wide. If more polls were available, that margin would be narrower. The high and low seat projection is based on these high and low vote projection ranges. Accordingly, that range narrows once more polls are available.

The second call made by the model is what I refer to as the forecast. Having a background in History, I am partial to the idea that the past can tell us a lot about the future. The forecasting model is based entirely on this premise.

In addition to the projection, the model also gives the plausible high and low results each party might be able to manage by election day, tentatively scheduled for May 14, 2013. Unless the polls begin fluctuating wildly, the margin will narrow as Election Day approaches.

The ranges are determined by measuring the degree of polling volatility in the past, with the period examined being equal to the amount of time before the next election. For example, the next election is scheduled for 174 days from the date of the projection, so the ranges are determined by the difference between the highest and lowest poll result for each party over the last 174 days. This is a measure of what kind of change in support is plausible based on how much that support has changed in the past. Of course, what is plausible does not equal what is possible - in theory, a party can get anywhere from 0% to 100% of the vote. That a party at 5% could win 75% of the vote six months from now is possible, and vice versa. It is not plausible, however, if that 5% has varied by only three points in the previous six months of polling.

This forecasting also cannot take into account completely exceptional events, but it is a best estimate of the plausibility of a party gaining or losing a certain amount of support.

The forecast will be continually updated as a measure of what should be expected, based on current information. Accordingly, it will change and the forecasts now may not overlap with the forecasts one month from the election. It is, instead, a best guess of what to expect based on what we know now.

In the same way that the seat projection model gives a range of likely outcomes based on the vote projection, the seat forecasting model gives a likely range of outcomes based on the vote forecast. These, of course, vary wide as the election date is far away. They give the range of plausible outcomes for the next election based on the information available to us right now.

Note that the seat forecast is not the same kind of assessment as the seat projection in terms of what seats are at play. Currently, the Conservatives are given a high forecast of 23 seats and the Greens of six seats. This does not mean that we should expect the Conservatives and Greens to win this many seats. In the case of the Conservatives, it means that if the party does end up at 25.8% support (their forecasted high, which would almost certainly mean the B.C. Liberals have dropped considerably), they could win as many as 23 seats. In the case of the Greens, it means that if the party ends up at 16% support (their forecasted high) they would be in play in as many as six seats. The one is dependent on the other. The Greens are not going to be at play in six seats at 7% support or even the high projected result of 8.7% support in the first projection. The model considers that they are at play in no seats at current polling levels.

One new feature added to the model is the probability that a call made by the seat projection model will be correct. This is based on an analysis of the seat projection model's performance in the eight elections that it has made projections for individual ridings. This probability is determined by the margin the projection model estimates the winner will win by. The following chart tracks how the projection has performed in the past, based on the projected winning margin in each riding.

Each red dot shows the percentage of calls that were correct, while the blue line shows the general trend. As the data is somewhat noisy (but the trend is still clearly visible), the trend line has been used to determine what probability of a correct call should be applied to every riding.

If the riding projection shows that a party leading in a riding by 12 points has a 73% chance of winning, that means that based on past performance the model will be right about 73% of the time when it chooses a winner by a margin of 12 points. It does not mean that there is a 73% chance that the projection for every party in the riding will be correct, or that the trailing party has a 27% chance of winning (a third place party could win as well). It is referring to the odds that the party projected to win will win.

Another new feature of the model is the ability to calculate the probability of a party winning the next election as of the date of the projection.

This is also based on the performance of the projection model in the past. In short, it determines the probability that the amount of error in the seat projection will be less than the margin between the leading party and other parties. A margin as large as the one of 40 seats between the Liberals and NDP in the current projection has been overcome in only 2.4% of cases. That means that if this was the final projection call before the election, the NDP would have a 97.6% chance of winning it. This takes into account the potential for an Alberta-sized error, but calling a winner by 40 seats would be right virtually all of the time.

However, this is not a forecast of the future. It is the confidence that can be placed on a call if the election were held the day of the projection. Forecasting the probability of a future event is an entirely different matter.

The greater challenge lies in being able to predict the probability that a party will win an election at a future date based on current information. The seat forecast shows what range of outcomes are plausible, but not which are most likely to occur.

After analyzing almost 6,000 pieces of data from polls conducted in over 20 federal and provincial elections since 2004, I have been able to determine the probability that the margin between any two parties can be overcome in a given period of time. As this analysis was based on the difference between polls and final outcomes, it takes into account both the past amount of error in the polls as well as the degree of real change that has occurred in voting intentions.

Using this model suggests how likely it is for the B.C. Liberals to overcome a 19-point deficit six months from the election, based on how often this sort of shift has taken place in the past. In this case, this sort of margin has been overcome in the six months prior to an election only 4.3% of the time, giving the NDP a 95.7% chance of winning the popular vote in May 2013 based on the polling of November 2012.

The calculations do take into account the role played by third parties and other parties, when they have a significant level of support. When the margin between the leading party and third or other parties is very large, the model assumes a (nearly) 0% chance that they could win. When three or more parties are a factor, the probability is calculated accordingly.

Calculating the probability of a party winning a future event should be very familiar to readers of Nate Silver's FiveThirtyEight blog. In his excellent book, The Signal and the Noise, Silver includes a chart showcasing the probability of a Senate candidate winning an election based on their polling on a given date. This gave me the opportunity to check my math, as it were. Here is a comparison of FiveThirtyEight's probability ratings to the ones that are employed by ThreeHundredEight:

As you can see, the probabilities are almost identical in most cases, and are often lower than FiveThirtyEight's. This may be a reflection of the complications caused by our three-or-more-party system. The numbers in the above chart assumes a two-party race, which of course is not always the case in Canada. But it is also possible to use these numbers to calculate the odds of a party winning in a multi-party race.

This calculation is based solely on the probability of a party winning the popular vote. In U.S. Senate races, that is also what determines who wins the election. That is not the case in Canada, where a party can win the most seats with fewer votes. The amount of variables at play to determine the winner of the most seats based on popular support in polls months before an election is, of course, enormous. But generally speaking, the party with the most votes will win the most seats, so while the probability of a party winning the popular vote may not necessarily determine their probability of winning the election, it is a close enough proxy. This is particularly the case in British Columbia, where neither the Liberals nor the NDP appear to have an intrinsic advantage in vote efficiency.

The projection will be updated continuously as the next vote approaches, with the forecast probabilities changing as new information becomes available. The B.C. model has been launched six months from the start date as it is the only upcoming election actually scheduled. Nova Scotia will be heading to the polls at some point soon, and that province's model will launch in the first half of next year if an election isn't already called. Ontario and Quebec could be heading back to the polls potentially even earlier than British Columbia, and this model will be tweaked accordingly and applied to those campaigns. But as B.C. is the only province we know is having an election in the next six months, the site will focus on that province's politics.

It should be an interesting campaign. The odds heavily favour the New Democrats, as a swing of 19 points even six months before an election is very rare. Much of the Liberals' hope lies with their ability to put the Conservatives back in their place. They aren't in much danger of being overcome by the Conservatives anymore, but at 12.8% the party makes it impossible for the Liberals to beat the New Democrats. Christy Clark will need to get those disaffected Liberals back into the fold if she is to have any hope of staying on as Premier.

Friday, October 12, 2012

Bridging the gap between polls and results

The two elections in Alberta and Quebec in 2012 provided a very good demonstration of the limitations of polling, particularly in the current media landscape. While the polls themselves have had issues, the media has difficulty affording the kind of costly, in-depth polling that is necessary to have a clearer and more accurate picture of what is going on.

It can be frustrating for poll-watchers and it is especially frustrating when trying to track the trends during a campaign and forecast an outcome. The greatest utility of a site like ThreeHundredEight.com is not prediction but rather a glimpse of what is going on during an election campaign, providing a good idea of what might happen, and, afterwards, some clues as to what actually happened.

Nevertheless, in addition to tracking what the polls are saying the site has always tried to forecast what the result of an election will be according to those polls. When the polling is good (for example in the 2008 Quebec and 2011 Manitoba elections) the forecast is good. But forecasting can be exceedingly difficult and nearly impossible when polls do not reflect the final outcome.

Bridging the gap between what the polls say and what voters actually do is a challenge that needs to be tackled.

In both the Alberta and Quebec campaigns, I adjusted the polling results in order to try to bridge that gap. The system used was one that would work in the majority of cases but not every time, meaning the model was making the safest bet but was still gambling. In the case of the Quebec election, betting that the polls would under-estimate the Liberals and over-estimate Québec Solidaire was correct. Betting that they would under-estimate the Parti Québécois was not. In Alberta, the adjustments for the Progressive Conservatives and Wildrose were correct, but they needed to have been amped up to ridiculous (and, at the time, inexplicable) degrees.

Rather than continue with this sort of uniform adjustment, I will be using a little more subtlety and only making the kind of bets that will prove correct in the vast majority of cases. For example, in the 17 provincial and federal elections I have analyzed a party without seats in the legislature was greatly over-estimated in 16 of them. That is the kind of safe bet I am willing to make. Other adjustments, especially when a jurisdiction's history shows a stronger skew than the national average, might be made as well. Any adjustments that will be made for future projections will be clearly laid out from the outset.

In addition to this, there are the other kind of adjustments that simply must be made. For example, fringe parties are very predictable: their share of the vote in ridings where they present candidates does not change by more than a couple tenths of a percentage point (in Alberta and Quebec, the projected vote for "other" parties was off by 0.1 point). It is thus very easy to estimate how much of the vote fringe parties and independents will get province- or nation-wide based on the number of candidates they have on the ballot. When polls give the "Others" 2% of the vote instead of 1%, as the number of candidates might dictate, an adjustment is automatically made to distribute that extra one percentage point proportionately.

In the future, as was the case during the Quebec election, the poll average will be reported as well as the projection. But the poll average will not diverge from the projection to a significant degree, as the major parties are only likely to be gaining a few tenths of a percentage point due to corrections for fringe parties and larger parties without a seat in the legislature.

But there needs to be more than just this - a recognition of what we know (what the polls are saying) and what we don't know (how opinion will change, and what kind of error is creeping into the polling).

As my longtime readers know, I have always admired the work done by Nate Silver at FiveThirtyEight and his methods have always been a big inspiration for what I do. Our electoral systems are incredibly different so there is a big difference in how to do forecasting in our respective countries (538 struggled when they ventured into the 2010 British election, which uses the same sort of system as here in Canada). For one, because of the similarities between US elections (i.e. they take place at the same time every four years, there is (almost) always just two major candidates from two parties with relatively stable voting blocks, and there are economic issues that influence the ability of an incumbent or challenger to win) Silver has always focused on forecasting a future event, whereas this site has always been about translating what polls are saying would happen if an election took place "today".

One new feature that Silver has implemented is a "now-cast", using the same kind of idea of what kind of outcome could be expected if the US election were held today rather than on November 6. I like the idea of doing a "now-cast" as well as a forecast, so that is what this site will be doing as well.

But how to forecast a future event with polls that are often a few days old as soon as they are published? Unlike in the United States, where voting intentions can only go one way or the other and past elections provide a guide on how to forecast that, in Canada there are multiple parties and votes can go any which way. Whereas the US convention schedule at the end of the summer gives forecasters a good idea of what kind of surges to expect in August, Canadian elections can take place at any time of the year. What changes can we expect three months prior to an election in February compared to another held in September? And what about the rise of new parties and the disappearance of old ones?

All of this means that to forecast for a future event in Canada a different approach needs to be taken. The question of how to bridge the gap between the polls today and the election weeks or months from now remains.

I first investigated the number of undecideds in a poll as a measure for forecasting. Taking into account the number of undecideds may give a clue as to what kind of swing is still possible between any given day and the election.

But the examples of the Quebec and Alberta elections suggest that this sort of approach is not feasible. To begin with, different polling methodologies result in widely divergent numbers of undecideds. The final IVR Forum poll in the Quebec campaign had only 3% undecided, while Léger's online poll had 9% and CROP's telephone poll had 20%. Determining the true number of undecideds is, thus, quite difficult.

And what can be done with those numbers? There is no way to come to the election's results by swinging those 3% of undecideds in Forum's poll. With CROP, 50% of undecideds need to be given to the Liberals while that number rises to 70% in the Léger poll.

In Alberta, the same sort of discrepancy between numbers of undecideds occurred. One poll requires a 16-point swing on 9% undecided to get to the true result, while the final Léger poll (live-callers) needs 71% of its undecideds to go the Tories.

Clearly, undecideds aren't the source of all of the error between final polls and final results. Using it as a base to make forecasts will, thus, not be fruitful.

That brings me to a different approach for making forecasts, which is based on the simple (and intuitive) idea that polls can be expected to swing as much in the future as they have in the past. That is to say, if a poll shows that a party's support can swing by 10 points in a matter of two months, we can assume that the party's support could swing by 10 points in the next two months. This method is not dissimilar to the one I have used to calculate the projection ranges - it is based on past volatility to predict future volatility.

Forecasting the Quebec election
This method would have had good results in the Quebec election. The forecasted range for the PQ from June through to the September election would have always included the party's eventual result. The same would have occurred for the CAQ throughout almost all of the campaign, while the PLQ would have only slightly dipped below its forecasted range in the final days. But that kind of polling error is the sort that simply cannot be corrected without making baseless guesses.

As you can see on the chart, this sort of forecasting method generally narrows as the election approaches, but does widen if things start to get more volatile. I think this is a strong representation of both what can be expected in the future and the kind of uncertainty that exists during a campaign. It might be a very wide bar, but it is a recognition of what we don't know and should give a very good indication of likely outcomes.

Forecasting the Alberta election
The polling failures of the Alberta campaign would have still put the forecast off, but the error would have been far smaller than was the case at the time. But in the case of Alberta, it has to be accepted that no amount of reasonable adjustments or corrections could have called the Alberta election correctly with the information available.

The forecast range will be determined using the greatest difference between two polls going back as far as the amount of time that remains before the election. In other words, if the election is two weeks away the forecast range will be calculated using the largest discrepancy between two polls over the preceding two weeks. A simple mechanism to ensure that the results aren't too outlandish (or that they dip below 0%) will be to establish a floor and ceiling equal to 50% above or below the projected result or the highest or lowest poll in the allotted time period, whichever is higher (for the ceiling) or lower (for the floor).

This will prevent the forecast from swinging extraordinarily widely based on two outlier polls, but will also allow the forecast to move accordingly when other polls back up a new state of affairs.

In addition to this method for making a forecast, a "now-cast" will be calculated using ThreeHundredEight.com's vote projection methodology that has been in place for some time. A "now-cast" range will be calculated using the margin of error of the average sample size of the projection. This will provide two useful measures: one an indication of what might be expected to change before the vote takes place, and the other a measurement of what the polls say will occur, taking into account standard sampling error. How this fluctuates in the run-up to a campaign should provide a good picture of how things are unfolding.

The projection model for the upcoming election in British Columbia will be launched some time next month, so in the interim I welcome questions, suggestions, and input before it is finalized for the launch. In the next few months, I will also be presenting some other changes to how polls are handled and how the projection will be calculated.

Thursday, January 12, 2012

Weighing the polls (again)

In the wake of the 2011 federal election, I took a look at what had been the Achilles' heel of my projection model at the time: the daily reduction in weight of a given poll. For the federal election, I reduced the weight of a poll by 7% per day. This was not aggressive enough to be able to adequately record the increase in New Democratic support in the final week of the campaign, throwing everything off.

Accordingly, after some analysis I decided to instead decrease the amount of weight given to a poll by 23% per day. This worked pretty well during the last set of provincial campaigns, enough so that it was not the cause of any major errors.

That does not mean that the daily weight reduction cannot be dialed in more accurately. However, polls in the five campaigns acted very differently from one province to the next. On the one hand, in Ontario, Manitoba, and (especially) Prince Edward Island, increasing the rate of reduction increased the degree of accuracy of the vote projection model. On the other hand, in Saskatchewan and Newfoundland and Labrador, decreasing the rate of reduction upped the accuracy.
The chart above records the total cumulative error of the projection compared to the vote results for major parties. This means that if the model is under-estimating the support of one party by two points and over-estimating the support of another by two points, that equates to a total error of four points. A daily rate of reduction of 0.75, for example, means a rate of reduction of 25% per day.

For the federal election, a rate of reduction of about 25% would have worked well. For Ontario, a reduction of around 40% or more would have been best, while 35%-40% for Manitoba would have yielded better results. For P.E.I., the accuracy increased with every increase of the rate of reduction, but for Newfoundland and Labrador and Saskatchewan it was the opposite.

What this chart shows is that over the six elections, a daily rate of reduction of between 30% and 40% would have yielded the best cumulative result of 43.7 points of total error. This indicates that, in the future, a daily reduction in this range would be best.

But how to decide? A reduction of 30% would have worked better in the federal, Newfoundland, and Saskatchewan campaigns, a reduction of 40% would have been the better option in Ontario, Manitoba, and Prince Edward Island.
What I've done in the chart above is rank each rate of reduction from one to six for each election. The lowest total when adding up these rankings, then, should tell us which rate of reduction would have had the better results across the board.

That turns out to be a reduction of 35% per day, or by a factor of 0.65. This is the top rate for Manitoba, and it ranks in the middle for every other election. Upping the rate of reduction to 40% would have been too much for the federal, Newfoundland, and Saskatchewan elections, while putting it to 30% would not have been the best result for anyone.

Moving forward, the vote projection model will be using this 35% daily reduction during a campaign. Outside of a campaign, I will be applying that 35% reduction on a weekly basis.

But that is only one part of the story. The next task is to figure out the difference between poll results and election results, so that the vote projection model can bridge the gap between the two. Stay tuned.

Wednesday, July 13, 2011

How the factors performed in the last campaign

Though the projection for the 2011 federal election was off primarily due to all the polls having the same inaccuracies and my own improper weighting of the age of polls, there are other lessons to be drawn from the recent campaign.

ThreeHundredEight uses a proportional swing model as its base, and that model is then tweaked and adjusted according to several factors: incumbency, place in cabinet, and the quality of a candidate. By-elections and riding polls are also included, as is the influence of prominent independent candidates and any particularly unique characteristic of a riding (i.e., the presence of Elizabeth May in Saanich - Gulf Islands in the last election).

After the campaign was over, I went back and checked on how the application of these "factors" worked out, and whether they needed to be changed. The factors were determined by using the results of the previous three elections, so the 2011 election provided another opportunity to add to the sample.

Factors are applied to the swing model. To use the cabinet minister factor as an example, it was found that being named a new cabinet minister improved a candidates performance in an election by a factor of 1.05 over and above what the provincial/regional swing would usually give. For example, if the Conservatives increased their performance in a province by a factor of 10% (i.e., they go from 40% to 44%) a newly named cabinet minister in that province would have his or her support increased by 15% (i.e., they go from 40% to 46%).

So, let's go through the factors and how they did. We'll start with new cabinet ministers, and I will explain in detail what the chart is showing.
In this case, a new cabinet minister is someone who was named to cabinet for the first time since their last election.

The chart shows that the factor applied to new cabinet ministers for the 2011 election (based on the calculations for previous elections) was 1.05. It then shows that the factor in the 2011 election was actually 1.03. In other words, new cabinet ministers did 3% better than a proportion swing would have given them.

Averaging out the pre-2011 sample with the 2011 sample by size gives us a new factor of 1.04 for new cabinet ministers.

This was not a particularly successful factor in the 2011 election, as it only increased the projection model's accuracy in 43% of cases. However, there does seem to be a cabinet minister factor at work as being named a cabinet minister had a positive effect on a candidate's performance in 57% of cases (i.e., they did better than the proportional swing alone).

The "star candidate" factor was applied to any candidate deemed to be a particularly good candidate, either through renown or previous experience. Often, the parties themselves deemed their candidates to be "star" candidates. Granted, this is a subjective factor to apply but in many cases it is a necessary one.
The star candidate factor in the 2011 election was 1.23, or 23% above the proportional swing. That is an improvement on the factor calculated to exist prior to the 2011 election, which was 1.14. The new factor applied will be 1.19.

The star candidate factor increased the accuracy of the projection in 82% of cases, and had a positive effect on a candidate's performance in 91% of cases.

Some star candidates did hugely better than the proportional swing would have had them. Roméo Saganash in Abitibi - Baie-James - Nunavik - Eeyou did 56% better than proportional swing, while Larry Smith in Lac-Saint-Louis did 59% better.

Now to incumbency. This was handled in several ways. First, if there was no incumbent a negative penalty was assigned to the candidate representing the incumbent party. Secondly, the incumbency factor was based on whether a party was losing or gaining in a particular province compared to the last election. This is because an incumbent was found to be able to do better than other candidates when a party is sinking, but at the same time would usually do worse than other candidates when a party was gaining. It would appear that an incumbent retains his or her vote when a party is doing badly, but usually doesn't soar very much when the party is doing well. In other words, they do a better job of holding on to their vote from one election to the next, no matter how the party is doing in the rest of the province.
In cases examined before 2011, having no incumbent meant a reduction in vote to the tune of 88% of what it would be with the proportional swing. In 2011, the effect was lessened: 96%. The factor increased accuracy of the projection in only 52% of cases, but in all having no incumbent had a negative effect on the party in 81% of cases.
Where there was an incumbent but the party lost support in the province or region, a factor of 1.08 was applied. In 2011, the actual factor was 1.07 so this was a very close one. It improved accuracy in 59% of cases, while this incumbency factor had a positive effect on a candidate in 66% of cases.
When a party gained, sophomore incumbents (those fighting their first elections as the incumbent) averaged the same performance as the proportional swing. The factor of 1.03 had been applied, but with the sample of 2011 the factor has been reduced to 1.02. In this case, it wasn't a very good predictor as it improved accuracy in only 40% of cases, and had a positive effect in only 48% of cases.
On the other hand, the veteran incumbent factor in a situation where a party was gaining performed well. It increased accuracy in 59% of cases and had a negative effect in 65% of cases

The effect of by-elections was difficult to gauge. The practice of using both the proportional swing from the previous general election and the results of the by-election by a proportion of 50/50 was effective in 50% of cases. Not using the by-election at all would have had about the same level of accuracy. But some ridings were simply unpredictable no matter what was used, so until something better is discovered I will be continuing with the 50/50 split.

The 2011 election had a lot of riding polls for Quebec, much fewer elsewhere. I applied the riding polls to the tune of 25% in each case, with the remaining 75% being the adjusted proportional swing. Of the riding polls (and by my count 34 ridings had publicly released poll results), the last one in each riding called the winner in 59% of cases.

In 62% of cases, including the riding poll increased the accuracy of the projection for the parties projected to place 1st and 2nd in 62% of cases, and it helped project the winner in 65% of cases. On the other hand, the projection without the riding polls would have projected the winner in 68% of cases where riding polls were available. The riding polls made the model call the winner when it otherwise would have been wrong in three cases - but they overturned correct projections in four cases.

For that reason, I will be very careful in the application of riding polls in the future. I will include them when a riding has a very unique characteristic (a prominent independent, for example). But they don't seem to add much that the adjusted proportional swing model can't already do, and it is difficult to keep track of them in terms of their date (which in some cases wasn't even reported). But it wasn't the age of a poll which determined its accuracy, of the riding polls which incorrectly called the winner, at least half of them were conducted during the last week of the campaign.

In terms of who did the best (not counting riding polls that were superseded by other riding polls taken later in the campaign), Oracle was most accurate, calling the winner in 80% of the polls in which they were the last to weigh-in on a particular riding.

Telelink, in Newfoundland & Labrador, scored 66% accuracy while CROP clocked in at 58%. Segma scored 50% while Léger Marketing was shutout in the three ridings in which they were the last to report.

Finally, on to independents. During the campaign, I specially dealt with three prominent independents: James Ford in Edmonton - Sherwood Park, Helena Guergis in Simcoe - Grey, and André Arthur in Portneuf - Jacques-Cartier. Hec Clouthier in Pembroke-Nipissing-Renfrew would have been worthy of attention, but there was no way to predict his vote haul without guessing.

For Ford and Arthur, I had applied a reduction in their vote from the previous election by 87.9%. In the few cases where prominent independents ran in subsequent elections, this is the amount of vote reduction I had found.

This performed well. Using the provincial vote totals to get the proportional swing for the other parties, with this factor I would have pegged Ford's vote at 29.1%. He actually got 29.5%.

The model calculated Arthur's vote to be at 27.9% with this factor. He actually got 27.8%.

Guergis was another situation altogether, as she left a party to sit as an independent and then ran as an independent. Looking back on past cases, I had found that the circumstances of an MP's departure played a big role in their ability to retain their vote. Candidates who left for positive principles kept roughly half their vote, those who left for negative reasons kept about a quarter of it. Those who left in disgrace kept about 6% of their vote. Unsure how to classify Guergis, I gave her the average reduction of about 1/3.

With the actual provincial results, the model gave her 22.2% of the vote. She actually got 13.5%. Applying the negative factor, which all-in-all is probably the best way to describe her situation, would have given her about 17% of the vote.

All of these calculations have led to the model being tweaked for the upcoming provincial campaigns. I will use the results of those campaigns as well to do the same post-mortem on the factors for subsequent elections.

Using these federal numbers does work for provincial campaigns. I tested the new Quebec projection model on the 2008 provincial election. The model is the same one used for the 2011 campaign but with these new factors. It had an accuracy level of 94% and an error of 2.5 seats per party.

Thursday, May 5, 2011

Weighing the polls

On Monday night, ThreeHundredEight's seat projection model failed for two reasons. First, the 7% reduction in weight given to polls for each day that passed was not nimble enough to capture the huge shift in voting intentions in the last two weeks. Secondly, the polls under-estimated Conservative support by over two points nationally, three points in Ontario, and four points in British Columbia. As the seat projection is only as good as the polls that are put into it, this is part of the reason why the seat projection failed.

So what steps can be taken to fix the problem? This fall, a flurry of provincial elections will occur and ThreeHundredEight will be endeavouring to do a much better job in accurately projecting their outcome. Tuesday's post demonstrates that the projection model can produce good results, and tweaks will be made to make it even better. But clearly the vote projection model has to be overhauled.

The first step was to throw out the weightings given to the last three elections. The idea was to use these elections as an "anchor", ensuring that the projection would not be thrown off too much by the fluctuations in the polls. For example, using this anchor was an effective way to keep the Green vote below the unrealistic support levels at which various polls put them.

But in a wild campaign like that of 2011, the anchor was unnecessarily weighing down the projection. Indeed, instead of being off by a cumulative 12.8 points, the projection would have been off by 12.2 points without the anchor. That means it's gone.

Next, I played around with the vote projection model and changed only the rate of depreciation of each poll's weight by age. The following chart shows the cumulative error between the vote projection and the actual result for the five main parties at various reduction rates (i.e., 0.75 means a daily reduction of 25%).
As you can see, the best weighting was between a daily reduction of 20% and 30% (0.80 to 0.70). Delving more deeply, I found that a reduction of 23% per day had the best result, bringing the cumulative error down to 6.8 points for the five parties, an average of 1.4% per party.

Rates of 21% and 22% also resulted in a cumulative error of 6.8 points, but after looking at how it would have done at the regional level for Ontario, Quebec, and British Columbia, I settled on 23% being the closest.

Nevertheless, the projection would have still been off. Though it would have been very close for the New Democrats and Bloc (on the money for the Bloc and off by 0.2 points for the NDP), it would have been further off for the Conservatives (36% rather than the actual 39.6%) and the Liberals (20.5% instead of 18.9%). In fact, for the Tories it was impossible to get closer than 36.3% using a weighted average of all polls.

The pollsters are partly to blame for that. If I dropped the weighted projection completely and simply used the average of the final poll from each polling firm released within the last five days of the campaign, I would still have only gotten 37.4% for the Conservatives, off by 2.2 points. Most significantly, the Conservative average would have low by 4.6 points in British Columbia and 3.5 points in Ontario - that is where the Tory majority was won.

Nevertheless, abandoning the weighted vote projection for a simple average would have given a better result, with a cumulative error of 5.8 points. The average cumulative error in British Columbia, Ontario, and Quebec would have been 8.5 points, rather than the 9.6 points when using a reduction rate of 23% in the weighted average.

At this point, one would suggest that I move to a polling average of only the most recent polls and be done with it.

However, the 2006 election tells a different story. There are some parallels between the 2006 and 2011 elections, as they both featured a shift in public opinion during the campaign. Using a weighted average of all polls with a reduction rate of 10% per day would bring about a very good result, with a cumulative error of 3.3 points at the national level. Any other reduction rate pushes the error to 3.9 or 4.0 points, which is still very acceptable over five parties.

But using only the final polls of the campaign would result in a cumulative error of 5.8 points. In other words, while a simple poll average would have been more accurate in 2011, the weighted poll averaging system that I use in my popular vote projection would have been more accurate in 2006. And of all these scenarios, using the average of the last five days of polling in the 2008 election is worst of all at a total error of 6.9 points.

If ThreeHundredEight is still around for the 2015 election, some sort of ballot box effect might have to be taken into account. Obviously, a ballot box effect at the federal level cannot be translated to the provincial level - the parties just aren't the same. But this daily weighting of 23% appears to give good results, and so will be used for the provincial projections this fall. Adjustments for polling error may also be investigated for each of the provincial elections and included in the model, while the track records of each of the pollsters will also be adjusted in the wake of this election.

On that note, I will be taking a detailed look at how the pollsters did (briefly hinted at here) next week.

UPDATE 06/05/11: Running the projection at 23% daily reduction, I would have projected 143 Conservatives, 102 New Democrats, 49 Liberals, and 14 Bloc seats. While it would have been a much better projection, it still would not have called the Conservative majority - just like the polls did not.