Backstory

It’s been just over 11 years since I did some statistics in 2011 on Petrol Prices. The short story is that there was a strong correlation between the price of brent crude oil and the price of petrol, leading to a formula to predict petrol prices based on the price of brent crude oil. This was not really surprising, as this is sort of “known”, but was good to confirm this for myself. However I was never really happy with the data in Excel. Also over time all of the data sources used for the original have changed or gone.

2011 Graph

This is the main graph from my previous analysis.

Analysis

Similar to last time, the first step was to find the data for: brent crude oil, historical exchange rates for gbp and usd, petrol prices and inflation data. This is the list of data sources I found:

Initially I used a Makefile to download and process the data, however it quickly grew into a monster, and ultimately I moved everything to a Python script. I creatively called this this grapher.py. This is released under the GPL 3 or later licence. It downloads the data, slightly massages it, joins all the data together, does some analysis and then creates the graphs. The intention is that this can be re-run in the future periodically to re-generate the graphs as ease, which will allow for showing the much higher petrol prices of June 2022. Currently this is done as part of the GitLab CI/CD process. Check the date listed as last update to see the data age.

It also exports the final dataset to a csv file called prices.csv in case anyone wants to make their own graphs without the need for messing with other data sources. There is also prices-processed.csv which shows the numbers I calculated.

All of this is self contained in a repo: https://gitlab.com/thomasdstewart/ukpetrolprice/.

Also credit to Adbar for the top picture.

Graphs

Brent

Europe brent spot price FOB (USD per barrel) over time

Europe brent spot price FOB (GBP per barrel) over time

Europe brent spot price FOB (GBP per barrel) over time adjusted for inflation

Petrol

Ultra low sulphur unleaded petrol pump price (p/litre)

Ultra low sulphur unleaded petrol pump price (p/litre) excluding vat

Ultra low sulphur unleaded petrol pump price (p/litre) excluding vat and excluding duty

Tax and exchange rates

VAT over time

USD2GBP over time

Ultra low sulphur unleaded petrol duty rate (p/litre)

Ultra low sulphur unleaded petrol duty rate (p/litre) adjusted for inflation over time

Brent vs Petrol

Europe brent spot price FOB (GBP dollars per barrel) vs ultra low sulphur unleaded petrol pump price (p/litre)

Europe brent spot price FOB (GBP per barrel) adjusted for inflation vs ultra low sulphur unleaded petrol pump price (p/litre) excluding vat and excluding duty adjusted for inflation

Europe brent spot price FOB (GBP per barrel) adjusted for inflation vs ultra low sulphur unleaded petrol pump price (p/litre) excluding vat and excluding duty adjusted for inflation 2020-2022

In the spirit of a crazy formula, putting a trendline on the 2020-2022 data, a general formula can be calculated.

Remarks

Here are some remarks about the graphs that occurred to me:

Last update: 2025-01-20

Build log: grapherlog.txt