Stealing Accuracy: Predicting Day-ahead Electricity Prices with Temporal Hierarchy Forecasting (THieF)

This paper introduces Temporal Hierarchy Forecasting (THieF) as a computationally efficient method that significantly improves day-ahead electricity price prediction accuracy across diverse models and markets by reconciling forecasts for hourly and block products.

Arkadiusz Lipiecki, Kaja Bilinska, Nicolaos Kourentzes, Rafal Weron

Published 2026-03-06
📖 5 min read🧠 Deep dive

Imagine you are trying to predict the weather for the next day. You could look at the temperature for every single hour (8:00 AM, 9:00 AM, etc.), or you could look at the average temperature for the whole morning, the whole afternoon, or the entire day.

Usually, forecasters pick one of these views and stick to it. But what if the "hourly" view says it will be sunny at noon, while the "daily" view says it will be cloudy all day? If you make decisions based on just one of these conflicting stories, you might get wet or miss a great picnic.

This paper is about a clever new way to fix that confusion for electricity prices.

The Problem: The "Blind Spot"

Electricity markets are changing. In the past, people mostly traded electricity for a whole day. Now, they trade it for specific blocks of time (like 4-hour chunks or 12-hour chunks) and even individual hours.

Forecasters build models to predict these prices.

  • Model A might be great at guessing the price for 2:00 PM but terrible at guessing the average for the whole afternoon.
  • Model B might be great at the daily average but miss the tiny spikes at 2:00 PM.

If you just use Model A or Model B, you might make bad financial bets. The paper argues that these models are often "blind" to the bigger picture or the tiny details because they are looking at the data through a single lens.

The Solution: THieF (Temporal Hierarchy Forecasting)

The authors introduce a method called THieF (Temporal Hierarchy Forecasting). Think of it as a team of detectives working together to solve a mystery.

  1. The Detectives (The Models): They build several different "detectives" (models) to look at the electricity prices. Some look at the prices hour-by-hour. Others look at 4-hour blocks. Others look at the whole day.
  2. The Conflicting Reports: Each detective writes a report. Detective 1 says, "The price at 2 PM will be high!" Detective 2 says, "The average price for the 2 PM–6 PM block will be low!"
  3. The Chief Detective (Reconciliation): This is the magic step. A "Chief Detective" (the reconciliation algorithm) takes all these conflicting reports and forces them to agree. It doesn't just pick one; it blends them mathematically. It says, "Okay, Detective 1, you were right about the spike, but Detective 2, you were right about the average. Let's adjust your numbers so they fit together perfectly."

The "Magic" Analogy: The Puzzle

Imagine you are trying to assemble a giant 1,000-piece puzzle of a landscape.

  • The Old Way: You try to assemble the whole thing at once, or maybe just the top half. If you miss a piece in the top half, the bottom half looks weird, and the whole picture is blurry.
  • The THieF Way: You assemble the puzzle in layers. You build the top half, the middle half, and the bottom half separately. Then, you lay them all on the table and smooth out the edges where they don't quite match. Suddenly, the picture becomes crystal clear. You recover details you would have missed if you only looked at one layer.

What Did They Find?

The researchers tested this on electricity markets in Germany and Spain over a very chaotic 4-year period (including the pandemic and the energy crisis). They used four different types of "detectives":

  1. The Classicist: A simple, old-school math model (Linear Regression).
  2. The Learner: A basic AI that learns patterns (Neural Network).
  3. The Decision Tree: A model that asks "Yes/No" questions to make predictions (Gradient Boosting).
  4. The Super-Brain: A massive, modern AI (Transformer) that usually needs huge amounts of data to learn.

The Results were amazing:

  • Every single detective got smarter when they used the "Chief Detective" (THieF) to reconcile their reports.
  • The accuracy improved by up to 13% for daily prices and 5.5% for hourly prices.
  • It didn't matter if the detective was a simple math model or a super-complex AI; the "teamwork" approach helped them all.
  • The cost to do this "teamwork" was tiny—like adding a few seconds to the computer's thinking time.

Why Should You Care?

Electricity isn't just a number on a screen; it powers our homes, factories, and electric cars.

  • For the Market: As electricity trading becomes more complex (moving from 24 hourly slots to 96 fifteen-minute slots), getting the price right becomes harder. THieF is a tool that helps traders and grid operators avoid costly mistakes.
  • For the Future: The paper shows that even the most advanced AI (the "Super-Brain") can be improved by looking at the problem from different angles and forcing those angles to agree.

The Bottom Line

Think of THieF as forcing your forecasters to have a group discussion before making a decision. Instead of letting one person shout the loudest, you listen to everyone, find the common ground, and create a single, super-accurate plan. The paper proves that in the chaotic world of electricity prices, this simple idea of "getting everyone on the same page" saves a lot of money and reduces errors.