OPB: Week-ahead forecasting of hourly electricity prices in the Brazilian market (data, code and stored forecasts)
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 t
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
📤 Share this page
Found this useful? Share it with your network.
Files are hosted on the source repository. Click download to access the full dataset.