Skip to content
PetrolCast

How we forecast fuel prices

Every estimate on PetrolCast comes from a calculation on published figures, is tested on past prices before it is shown, and is scored against the official price afterwards. This page describes the calculations and the tests. The results are on the accuracy page.

Two kinds of price, two models

Countries set pump prices in one of two ways, and we estimate each differently.

Where a government or regulator sets the price, as in Pakistan, the price changes on a schedule by an official notice. Where that notice also publishes what the price is made of (the cost of the fuel itself, levies, duties and margins), we estimate the next price from the latest change in the cost of the fuel. The model measures, over the last 45 revisions, how much of such a change has reached the pump price one revision later, and applies that share. Levies and margins are assumed to stay as they are, so a change in a levy is a change the estimate cannot see coming.

Where prices follow the market, as in the European Union, the United Kingdom or the United States, the figure is a national average published each week. We estimate how it will move over the next one, two and four weeks from how pump prices in that country have followed wholesale fuel prices before: recent changes in wholesale petrol and diesel, in crude oil and in the pump price itself, and how far the gap between wholesale and pump prices is from its usual size. Where the publisher gives the tax split, the model works on the price before tax, so a past tax change is not mistaken for a market move.

What data goes in

News does not change an estimate. The news risk score is shown beside it as context.

The range and the chance

An estimate is shown as a likely direction with its chance, then an expected range, then a single figure. The range is built from the model's own past errors, sized so that the official price lands inside it about eight times in ten. For a government-set price the chance beside the direction is how often the model's past calls of that direction came true in testing; for a market price it is the model's own probability.

The test before an estimate is shown

Before any estimate appears, its model is run over past prices one step at a time, each time using only the figures available on that day, and its answers are compared with what the official price then did. It needs at least 30 such tested estimates, and all of the following:

What a model must achieve in testing before its estimates are published
PriceEstimate forTypical error at mostDirection right at leastError against "no change"
Government-set pricethe next revision1.5%85 in 100not required
Government-set price, revised every working daythe next revision1.5%70 in 10015% smaller
Market priceone week ahead2.5%70 in 10015% smaller
Market priceabout a month ahead5%65 in 10010% smaller

In every case the expected range must also have held the price between 75 and 85 times in 100: a range that holds more often than that is too wide to be useful, and one that holds less often is too narrow to be trusted. An estimate for two weeks ahead is held to the midpoint between the two market rows. "No change" is the simple guess that the price stays where it is; a model that cannot beat it is not worth showing.

The test is repeated on every run. A model that stops passing is taken down by itself, and its past estimates stay on the record.

Estimates shown with their record

One case is treated differently. An estimate of a government-set price that passes on error, and beats "no change", but falls short on direction or on its range, is still shown on that price's page and on the country's next-revision page. The chance and the range share beside it are then its measured record: how often its direction calls came true and how often the price landed inside its range. It is not used for alerts and has no forecast page of its own until it passes the full test.

How estimates are scored

Each estimate is saved with the date it was made and the data it used, and is never edited. When the official price for its date is published we record how far off it was, whether the direction was right and whether the price fell inside the range. Every scored estimate counts, including those from models that were later taken down. The accuracy page shows the past 90 days for each country and fuel.

When a regulator announces a price before it takes effect, the announced price replaces our estimate for that date everywhere. The estimate is still scored.

Who writes the explanations

The numbers come only from the calculations above. A language model writes the short explanation beside an estimate from the figures it is given, and it cannot change an estimate: a text whose figure strays outside the calculated range is rejected.

What the estimates cannot do

Questions and corrections

Write to [email protected]. What each term means is on the about page.

Forecasts are estimates for information only, not financial advice.