Dollar Oil and Cedi Risk in Ghana: Dataset and Reproducibility Materials for Volatility Measurement and Forecasting, 2010–2025
Description
This repository provides the dataset, Python scripts, estimation results and figures supporting a study of Brent crude oil volatility in US dollars and Ghanaian cedis over 2010–2025. The study examines how exchange-rate movements contribute to local-currency oil risk, how volatility measurement affects evidence of memory, and whether fractional weighting improves variance forecasts. The empirical analysis uses daily Brent spot prices from the US Energy Information Administration and interbank exchange-rate quotations from the Bank of Ghana. Date matching and quality checks produce 3,901 paired return observations. Two implausible exchange-rate records are excluded without imputing replacement values. Supporting data include US Treasury yields and Ghanaian petroleum production and revenue records, with source information retained in the research workbook. The materials include the source workbook, matched observations, exclusion records, forecast outputs, analysis code, numerical verification scripts, results and figures at 300 dpi. Forecast evaluation compares constant variance, rolling variance, EWMA, Student-t GARCH, Student-t GJR-GARCH, log-HAR and Mittag–Leffler kernel models on 947 common observations from 2022–2025. A release audit checks the return identities, annual variance decompositions, forecast losses and reported model parameters. The repository also contains fractional option-pricing calculations under explicitly stated assumptions. These are numerical experiments rather than estimates calibrated to observed Brent option quotations. The materials support replication, methodological scrutiny and further research on commodity risk, currency exposure and volatility forecasting.
Files
Steps to reproduce
The dataset was assembled from publicly available secondary sources to examine Brent crude oil prices, Ghanaian-cedi exchange-rate exposure and volatility forecasting. Brent spot prices were obtained from the US Energy Information Administration; interbank exchange-rate quotations from the Bank of Ghana; one-year US Treasury yields from Federal Reserve Economic Data; and supporting petroleum and energy information from Ghana’s Ministry of Finance and Energy Commission. Source links, provenance notes and original measurement units are documented in the accompanying Excel workbook. The source series were aligned by date to construct matched observations. Brent prices expressed in US dollars were converted into Ghanaian cedis using the corresponding exchange-rate quotations. Returns, elapsed time between observations and variance-rate adjustments were then calculated for the analysis. Missing observations were retained in the source workbook. Two implausible published exchange-rate ask quotations were excluded from the analysis without inserting estimated replacements; these exclusions are documented in excluded_FX_quotes.csv. The completed calendar sample used in the study ends in 2025. Later observations retained in the workbook were excluded from the paper’s analysis. Python was used for data processing, statistical estimation, volatility forecasting, numerical validation and figure generation. The reproducibility package contains the research dataset, analytical scripts, matched observations, forecast outputs, model results and validation records. It also includes numerical option-pricing scenarios, which should be distinguished from observed market data: Brent option quotations were not available, and these scenarios were not calibrated to observed option prices. To reproduce the analysis, extract the ZIP file while preserving its folder structure, install Python 3.12 and the packages listed in README.md, and run “python brent_article/reproduce.py” from the extracted package’s root directory. Pandoc is additionally required to rebuild the bundled Word manuscript with editable equations. The workflow executes the analysis, validation, forecast-uncertainty calculations and figure-generation scripts. Minor numerical differences may occur across software versions. No surveys, laboratory instruments, reagents or experimental interventions were used.
Institutions
- Christian Service University CollegeAshanti, Kumasi