Authors: Sarahnour Ghaith & Thomas Roiseux
Academic Year: 2023-2024
This repository contains the code and documentation for a project focused on intraday volatility estimation from high-frequency data. Python is used for computational tasks, with detailed calculations and model simulations provided in the attached Jupyter Notebook file.
The project aims to estimate daily volatility from high-frequency time series data, considering the impact of microstructure noise. The analysis uses tick data from iShares S&P 500 Value ETF (IVE) with the following objectives:
- Estimate and visually represent realized volatility at observation frequencies from 30 seconds to 15 minutes.
- Compare intraday estimates with a long-term estimation based on one month of daily data.
- Assess the size of microstructure noise through methods such as autocorrelation between returns at different scales.
The data is sourced from KIBOT - Free historical intraday data for iShares S&P (IVE).
- Dataset: iShares S&P 500 Value ETF (IVE) tick data
- Data Structure: Date, Time, Price, Bid, Ask, Size
The dataset provides transaction-specific details, including timestamps and prices, facilitating a detailed analysis of high-frequency market dynamics for large-cap U.S. value stocks.
Outlier price values (below $10) were removed after loading the data.
The data is organized into a time series format, enabling the visualization of all timestamps and associated prices.
Realized volatility is computed using past index values with the formula:
Realized volatility is computed using a rolling window approach with various time intervals.
Realized volatility with variable time intervals is illustrated.
Volatility is computed using daily data for the same month, allowing for a comparison with intraday volatility estimates.
Long-range volatility during the same month is compared to intraday volatility trends.
Microstructure noise, resulting from the ask & bid mechanism, interferes with prices and modifies predictions made by regular models.
The estimator
Daily microstructure noise is illustrated based on computations from January 1, 2022, to today.
Microstructure noise is further analyzed using autocorrelation on log-prices, revealing its impact on prices.
Estimated daily volatility over the last year is presented.
The analysis of realized volatility offers advantages such as simplicity and the use of intra-daily log returns. Challenges include the impact of market microstructure noise and the influence of overnight returns. Industry and academic solutions developed over the past two decades aim to refine volatility estimation techniques for a more accurate understanding of financial market dynamics.
- Cristina Mabel Scherrer, Gustavo Fruet, and Dias Marcelo Fernandes. Price discovery and market microstructure noise. SSRN.
- Ruey Tsay. Analysis of financial time series. Wiley series in probability and statistics. Wiley, 2005.