Saturday, April 07, 2007

Easter Saturday's matches...

Who's going to do what on this important footballing weekend? Today, 11 matches take place in League One, after Scunthorpe effectively sealed their promotion last night winning 1-0 over Yeovil Town.

Below are the predictions for this afternoon's matches:

Home Draw Away
Blackpool v Tranmere 46.6% 29.4% 24.0%
Bournemouth v Bradford 44.6% 29.2% 26.1%
Brentford v Cheltenham 33.8% 30.1% 36.1%
Brighton v Doncaster 36.7% 31.6% 31.8%
Bristol C v Swansea 12.3% 21.0% 5.8%
Chesterfield v Crewe 40.7% 26.3% 33.0%
Leyton Orient v Northampton 41.8% 26.6% 31.7%
Millwall v Nottm Forest 28.2% 26.6% 45.1%
Oldham v Huddersfield 66.5% 19.3% 14.2%
Port Vale v Carlisle 46.5% 26.3% 27.2%
Rotherham v Gillingham 52.0% 22.1% 25.9%

Disturbingly, for the biggest match of the day, the model appears to have been hit by a glitch; the probabilities don't sum to unity. This will be looked into.

For the remaining matches, the one I'm interested in is Oldham v Huddersfield. Oldham have never beaten Huddersfield twice in one season before, but today they appear to have a 66.5% chance of doing just that, having won 3-0 at Huddersfield earlier in the campaign. Oldham are indeed strong favourites for this match, which reflects that fact Oldham are considerably higher in the league table. Huddersfield are not in relegation trouble, but are firmly in mid-table. Fink Tank put Oldham at 59.7%, also rating Oldham as overwhelming favourites.

But will they prevail in this local derby? With it being a local derby, a large attendance can be expected. Attendances have been increasing gradually over the season, and a gate of around 10,000 ought to be expected this afternoon. Huddersfield may not bring as many fans over the Pennines as they would if they were challenging nearer the top of the division, but nonetheless, my forecasting model suggests an attendance of 9,479. Let's see if the Latics can send this bumper crowd home happy as they further cement their play-off place.

Labels: , , , ,

Saturday, March 03, 2007

Predicting football match outcomes...

Well, it took long enough, as these things always do, but now I have a model that predicts football match outcomes. The predictions of the model I'll assess in the weeks to come if I get a moment, but I'm rushing towards a thesis submission in May, so time is getting tight.

Nevertheless, the predictions this model provides are very much in line with what the bookies think, and in line with the predictions of Finktank, the Dectech enterprise that publishes predictions on football matches each week in the Times. What is this model? It's a very simple model which describes the process determining the number of goals each team scores in a match as belonging to a Poisson distribution. The Poisson distribution matches incredibly well the arrival of goals in football matches, and so if X is home goals in a match, and Y is away goals, then both can be described as Poisson processes. It's likely of course that there's some interaction between these two processes, and in this case, a bivariate Poisson distribution of (X,Y) would be sough.

Making predictions on such bivariate models is a trivial extention of what I've done already, but I haven't the time to do that yet. Maybe in May. Once the season's finished...

Anyhow, in the meantime, what does the model predict?

Take the currently running Liverpool v Man U match. Finktank thought beforehand Liverpool had a 43.4% probability of winning, with the probability of a draw at 29% and a Man U win at 28%. The bookies favoured a Man U win over a draw, suggesting that Liverpool had a 36% chance of winning, the draw at 31% and the Man U win at 33%. The simple double Poisson model I've run (on all matches before today this season in the Premiership) suggests that Liverpool have a 37% chance of winning, the draw at 30% and Man U at 33%.

After 65 minutes, the match is locked at 0-0, and the first half was a very tight affair, reflecting these evenly matches odds. A contrast is given for the Arsenal v Reading match, which is a home banker if anyone ever saw one: Finktank see the Arsenal win at 70%, the bookies at 61%, and my model at 71%.

So what about the match I'm most bothered about? That is, Carlisle United vs Oldham Athletic. As things stand, the model can't take into account form. If it did, it would put a stronger probability on Carlisle, as Oldham are in terrible form, with four consecutive defeats severely hampering their promotion hopes. Nonetheless, Oldham have a 39% probability of winning, Carlisle a 32% chance, the draw at 29%. What's the most likely score? The probability of a 1-1 draw is 13.3%, followed by a 1-0 Oldham win at 12.6%, with finally a Carlisle 1-0 win at 11%. There's a 10.6% chance of a scoreless draw. All these orderings are the same as Finktank for this match, although Finktank put Oldham slightly stronger favourites at 41%. As part of my summer research I'd like to look into what exactly Finktank construct their forecasts based on, since they're not massively different from that of a "simple" double Poisson model.

I'm biased. Three or so years back, Oldham recovered from a poor run of defeats to post a battling 1-0 win at Gillingham. I think Oldham will do that today. No, I hope.

Finally, Finktank suggest you should believe their score predictions because they've beaten the bookies on a lot of occasions. Personally I think you should trust the output of a model by whether or not it predicts the score well. So I'll let you know how I do.

Labels: , , , , , , ,

Thursday, December 14, 2006

Another interesting challenge...

...Oldham Athletic will be charging just £2 for adults, and £1 for kids in their next two home matches. These are matches against Brighton and Hove Albion, and Northampton Town, matches which otherwise would not attract a very high attendance at all. It's a great idea, I'm totally for it - get a full house in, hopefully get some kids hooked on Latics, especially if the team can carry on playing as they have recently (unbeaten in nine league home matches, seven wins).

But it creates havoc for modelling and forecasting. On the other hand, it's a known break. One of the biggest problems with forecasting is structural breaks, if the break affects the mean of the time series being forecast. Before the break, it's generally quite hard to predict one will happen, and then if it can be predicted, the size is another matter entirely. If a break happens, next period when forecasting, one needs to know whether this is simply an outlier, measurement error, or an actual break.

So here, I have quite a lot of information: I know something will happen that can only be described as a break - the two previous big discount matches (Grimsby (free) and Torquay (fiver)) have attracted substantially larger attendances. I further know it will only last for two matches, it is not permanent, but it's not a one-off either. And I'll know the reason why the break has occured.

All in all, it makes for an interesting experiment. Will the attendances be as large as the Grimsby or Torquay matches? A method for capturing a break is to add a dummy variable estimated over some observations in the sample, and extend this dummy into the forecast period. Usually in time-series, the dummy is for the last few observations. However, here as we have some idea from these matches how big the break might be, it makes sense to use this information.

Extending the Grimsby dummy gives a forecast of 11,670, and extending the Torquay dummy just 6,856. I think somewhere inbetween these two examples is more likely. A combination, weighting Grimsby at 0.6 since £2 is closer to £0 than £5 gives a forecast of 9,442, but I think a higher weight should be used, since zero prices have wierd effects. A weight of 0.75 on Grimsby provides a forecast of 10,230, which pleases me.

Come on Oldham!

Labels: , , , , , , , , ,

Tuesday, November 21, 2006

Is life a random walk? And Oldham's fortunes...

Yesterday, in his first Clarendon Lecture in the Economics Department at the University of Oxford, Peter Phillips suggested that a time series could provide the conclusion that life is a random walk. Well, I guess given he talked about estimating numbers for models on particular data series and questioned what these numbers mean, that in fact he wasn't really trying to substantiate in any way the claim that life is a random walk.

Of course he's fitting an econometric model to the world, and that doesn't necessarily shed any light at all on the true underlying data generating process. It was data on the number of species in exitence, going back 600 million years. Of course I don't think that life is a random walk, I don't for one moment believe that the various underlying processes generating this 600 million year data set really suggest everything is random.

Nevertheless, that's what people who deny the existence of God are forced to believe - it's all random. However, through the existence of a man who lived 2000 odd years ago we have God's revelation to a disbelieving world, captured in a book that's internally consistent as to exactly what this Jesus chap was up to. God isn't random, He has a plan, and He's made it known to His world. Will you take a look? Check out here if you want to.

On to Oldham Athletic. I was dissatisfied with my model, and applied an ad hoc solution, contrary to how I believe econometric modelling should take place, although consistent with the idea that the best ways to do econometrics are not the best ways to forecast. Originally the forecast was about 5,700, but with a variable to capture the visit of local rivals, the forecast was raised to 6,179, which I still thoughts too low. However, the model was giving forecasts in the right ball-park, whereas I was way out: the actual attendance was 6,001. Again much lower than I'd have expected, but continuing the trend this season.

But Oldham won 2-0 against local rivals, continuing their good form in the league now to 1 defeat in 12 matches, and 7 wins along the way. Surely soon, if this form continues, attendances will rise?

Labels: , , , , , , , , , ,

Friday, November 17, 2006

A local derby...

...provides another challenge for my Oldham Athletic attendance prediction model. Simply fired through, the model gives a prediction which my eye says is far too low: 5,696. Certainly, based on attendances in the league this season thus far, this seems too high - attendances have barely broken the 5,000 mark. However, Bradford travel only 22 miles to get to Oldham, and the attendances at the previous two matches between the sides at Boundary Park have been 9,381 and 6,982.

So what to do? Are Bradford a special case, counting pretty much as Oldham's closest rivals right now, with the absence of a Wigan or a Stockport in the same division? Unfortunately the tag of closest rivals actually goes to Huddersfield Town at 16 miles away. Furthermore, Huddersfield do appear to bring better travelling followings than Bradford, in my limited experience and memory.

Nevertheless, Bradford and Huddersfield do pretty much count as our only rivals this season, and are rivals that bring large visiting contingents - unlike, for example, Bury. As such, why not a Rivals variable?

Inserting that, and the model predicts a slightly more satisfying 6,179. I still think it's a bit low, but then this season gates have always been pretty low. Bradford aren't on the best of runs (although they've signed a very good player in Tommy Black this week), while the Latics head into this game unbeaten in seven home games and after two consecutive away victories. So maybe, all that accounted for, a gate not much over 6,000 is about right. We'll see.

Oh and while I'm here I might as well predict the result I guess. 3-1 Oldham. No rationale for it. Come on Oldham!

Labels: , , , , , , , , ,

Monday, October 30, 2006

A challenge of another kind entirely...

Forecasting league attendances at Oldham has become reasonably simple - just below 5,000 is a good benchmark. However, the Association Members Trophy, now known as the Johnstone's Paint Trophy, poses another challenge altogether. This is because no-one really cares about the competition, and it doesn't provide interesting opposition as a rule, because the teams that participate are all from League One or below. Hence the best that could really be hoped for is Nottingham Forest. Oldham have drawn Chesterfield. Hardly glamorous, no offence to Chesterfield. I'm sure had they drawn Oldham at home they'd feel similarly indifferent. The dummy variable on these kind of cup matches suggests they knock something like 60% off the normal gate at a home game.

So from 5,000, that suggests there should be around 2,000, which sounds about right. However, estimating on data up to Saturday's pleasing 3-0 win over Brentford gives a forecast of 3,107, which is way too high. When Oldham made the semi-finals of this competition two seasons ago, the home game in the semi attracted only 2,881 people! However, that was probably because the club decided against offering substantial discounts for that game, which they will undoubtedly offer on Wednesday, and did in previous matches that season - the quarter final, against Tranmere, attracted over 4,000 people, while the second round match against non-league Accrington Stanley drew a crowd of 2,812.

Yet I still think 3,107 is far too high. Inserting dummy variables for a couple of outlying matches (Chasetown in the FA Cup last season, and Carlisle earlier this season), and inserting an intercept correction for the current season, provides a lower forecast of 2,675, which is better. Further, adding these dummies renders some other curious coefficients insignificant, and given their "wrong" sign, and plausible explanation (see paper), it seems sensible to get rid of them. These variables are a dummy for when the game falls on a Wednesday night, and the Days Since Last Home Game variable, which is the number of days since the last home game.

When got rid of, the forecast falls yet further into acceptably low territory: 2,504, and so this is the forecast I'm going with for the Chesterfield match.

Labels: , , , , , ,