Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mathworks/climate-examples-commodity-volatility

Repository files navigation

Commodity Volatility Modelling

View Climate Examples: Commodity Volatility Modelling on File Exchange Open in MATLAB Online

Modelling and forecasting volatility is a common task in many financial applications. This collection of examples analyzes, models, and forecasts the volatility associated with a collection of soft commodities.

Soft commodities are impacted by uncertainties associated with both short and long-term changes in weather patterns caused by climate change. As these uncertainties increase, we expect volatility modelling to increase in importance as practitioners seek to improve their forecasts of market responses to the impacts of climate change.

The examples in this collection are designed to showcase a range of statistical methods, machine learning techniques, and time-series models which are broadly applicable in the volatility modelling area.

The examples were developed by Phoebe Piercy and Ken Deeley at MathWorks.

Installation and Getting Started

The examples are provided as a MATLAB toolbox.

  1. Download the toolbox installer (the Commodity_Volatility_Modelling.mltbx file) from the Releases section on GitHub.
  2. Double-click on the Commodity_Volatility_Modelling.mltbx file to install the toolbox.3.
  3. The example files are the following live scripts.
    • S01_DataProcessing: This script imports and processes the data for subsequent modelling.
    • S02_TrendDecomposition: This script clusters the commodities based on trend analysis.
    • S03_NonParametricVolatility: This script performs nonparametric volatility estimates and further clustering on the commodities.
    • S04_ModelBasedVolatility: This script forecasts volatility using time-series models for the principal components of the volatility.
  4. The examples rely on external commodity data provided by the World Bank. The example file S01_DataProcessing downloads this data, and requires an internet connection.

MathWorks® Product Requirements

This example requires MATLAB R2025a or a later release.

License

The license for this entry is available in the license.txt file in this GitHub repository.

Copyright 2022-2026 The MathWorks, Inc.

Community Support

MATLAB Central

About

This collection of examples analyzes, models, and forecasts the volatility associated with a collection of soft commodities.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages