Skip to content

sensor-aae/Volatility-modeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Volatility Modeling with ARCH/GARCH

This project demonstrates how to model time-varying volatility in financial returns using ARCH and GARCH models. The dataset used is the S&P 500 index (^GSPC) from Yahoo Finance.

Project Structure

volatility-modeling/
β”œβ”€β”€ .venv/                  # Python virtual environment
β”œβ”€β”€ data/                  # Folder for storing downloaded data
β”œβ”€β”€ notebooks/             # Jupyter notebooks
β”‚   └── arch_garch_model.ipynb
β”œβ”€β”€ outputs/               # Plots or generated model outputs
β”œβ”€β”€ test_imports.py        # Test for library imports
β”œβ”€β”€ requirements.txt       # Installed Python packages
└── README.md              # Project overview

How to Run

  1. Clone the repo and navigate to the folder.
  2. Create a virtual environment:
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Launch the notebook:
    jupyter notebook notebooks/arch_garch_model.ipynb
    

Key Tools

  • Python
  • arch for GARCH models
  • yfinance for market data
  • matplotlib for visualization

Output

  • Estimated conditional volatility from a GARCH(1,1) model
  • Comparison with raw return series

πŸ“ˆ Sample Outputs

Log Returns Time Series

Log Returns

Model Summary Table

Summary Table

GARCH(1,1) Estimated Volatility

Estimated Volatility

πŸ‘€ Author

Amanda Achiangia
BSc Applied Mathematics (Financial Mathematics), York University
Aspiring Quantitative Finance Professional
LinkedIn | GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published