Skip to content

Create regressors and make HAR forecasts from a realized variance series

Notifications You must be signed in to change notification settings

ajda-marjanovic/har-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MATLAB code for Heterogeneous Autoregressive (HAR) model forecasting

The HAR model is a simple autoregressive model for realized variance (and all its transformations - log/root etc.), which has the following form:

image

where the d, w and m superscripts represent daily, weekly and monthly realized variance. The model can be estimated by OLS.

The input for this code is a (n x 1) vector of realized variance or its transformations.

X_mat.m generates HAR regressors (daily, weekly and monthly RV) from the input, har_forecasting.m makes rolling forecasts (one or multi-day horizons) and returns the RMSE value.

About

Create regressors and make HAR forecasts from a realized variance series

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages