Historical Volatility

版本 1.5.0 (516.4 KB) 作者: Tommaso Belluzzo
A framework for historical volatility estimation and analysis.
235.0 次下载
更新时间 2020/6/14

Historical Volatility

This script calculates and analyses the following historical volatility estimators:

  • the traditional Close-to-Close estimator (and a variant of it that uses demeaned returns);
  • the Parkinson estimator (1980);
  • the Garman-Klass estimator (1980) and a variant proposed by Yang & Zhang (2000);
  • the Rogers-Satchell estimator (1991);
  • the Hodges-Tompkins estimator (2002);
  • the Yang-Zhang estimator (2000);
  • the Meilijson estimator (2009).

Requirements

The minimum Matlab version required is R2014a. In addition, the following products and toolboxes must be installed in order to properly execute the script:

  • Statistics and Machine Learning Toolbox
  • System Identification Toolbox

Usage

  1. Edit the run.m script following your needs.
  2. Execute the run.m script.

Dataset

Datasets can be fetched from Yahoo! Finance using the function fetch_data, or parsed from Excel sheets using the function parse_dataset. The example script provides a good overview of both approaches.

Every dataset passed as input argument to analyze_volatility, compare_estimators and estimate_volatility functions must be structured as a table of historical time series having the following columns:

  • Date (numeric observation dates)
  • Open (opening prices)
  • High (highest prices)
  • Low (lowest prices)
  • Close (closing prices)
  • Return (log returns)

Screenshots

Volatility Cones

Estimators Comparison

Estimators Correlation

引用格式

Tommaso Belluzzo (2024). Historical Volatility (https://github.com/TommasoBelluzzo/HistoricalVolatility/releases/tag/v1.5.0), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014b
兼容 R2014b 到 R2022b 的版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.5.0

See release notes for this release on GitHub: https://github.com/TommasoBelluzzo/HistoricalVolatility/releases/tag/v1.5.0

1.4.0

See release notes for this release on GitHub: https://github.com/TommasoBelluzzo/HistoricalVolatility/releases/tag/v1.4.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库