Published September 7, 2026 | Version v4

OPB: Week-ahead forecasting of hourly electricity prices in the Brazilian market (data, code and stored forecasts)

  • 1. Federal Institute of Education, Science and Technology of Minas Gerais
  • 2. ROR icon Universidade de São Paulo

Description

This repository contains the database, source code, stored forecasts and reproduction scripts supporting the manuscript "Week-ahead forecasting of the hourly electricity price in the Brazilian market during the 2021 hydrological crisis: regularized regression, attentional recurrent networks and the operator's projection" (submitted for publication). The underlying research was developed in the first author's doctoral thesis (University of Sao Paulo, 2023).

Version 4 (September 2026) consists of three files. opb_reproduction_v4.zip is the self-contained reproduction package for the current manuscript: README.md; forecasts/ (the stored week-ahead forecasts of every model for 2021, the hourly extract of the database with the realized price, the weekly MCO projection of the ONS operating program, the natural inflow energy of the SE/CW subsystem, the SECW load and the generation series, the records of the 873 trained instances, the annual and hourly acquisition costs of all contracting strategies under the 36 protection scenarios, the ex ante next-week CMO projections collected from 47 ONS executive summaries with their sources and publication dates, and the collection log); reproduction_v3/ (Python scripts with relative paths that regenerate every table, figure and test statistic of the manuscript from the stored forecasts, with the expected outputs, including the scheduling exercise, the hours 25-168 panel, the ex ante regime indicators and the probabilistic forecasts by conformal prediction); and reconstruction_v4/ (the scripts, logs and forecasts of the reconstruction of the LEAR-type regression from the deposited files, including the real-time design estimated on in-force information, its rolling recalibration over windows of 52 to 208 weeks and a PCA sensitivity analysis). opb_reconstruction_v4_artifacts.zip holds the large intermediate artifacts of that reconstruction (the retrained climate autoencoder, the latent vectors and principal components, the rebuilt training and test matrices, the fitted coefficients and the assembled predataset), needed only to inspect or resume the fit without rerunning the autoencoder. opb_hourly_pld_forecasting_v2.zip is kept unchanged from version 2: the full relational database (SQLite, ~1.6 GB), the source code of all modules (database, climate autoencoder, attentional seq2seq forecaster, benchmarks and analysis scripts), the raw source files (~1.7 GB) and the available trained artifacts. Nothing in the version-2 zip is required by reproduction_v3/; to rebuild the full tree, unpack the version-2 zip and overlay the contents of the two version-4 zips on it.

The README states the five features of the original experimental protocol that used information not available at the forecast origin (retained epoch selected on the 2021 windows; weekend value of the MCO input, which is the weekly revision of the operating program published after the origin; post-processing of the forecasts at the structural ceiling; ex post references; protection scenario selected on realized cost), describes the structure of each model with respect to the weekend rows of the input block as verified in the notebooks, and lists the training artifacts that were not retained (fitted LEAR object, training and test matrices, per-epoch histories).

Files

opb_hourly_pld_forecasting_v2.zip

Files (1.7 GB)

Name Size
md5:45fcf54f842a2aca204656fe3dd6761a
1.6 GB Preview Download
md5:f9d960e498d49c89bd1cab414e302baa
98.5 MB Preview Download
md5:92b74ace208eedb455e46f8f33a07188
8.4 MB Preview Download

Additional details

Related works

Is supplemented by
https://github.com/ciniro/phd (URL)