Skip to content

kosungjunmichael/Market-Volatility-Analysis-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volatility Dashboard

Market Volatility Analysis Dashboard

This interactive Python tool lets you enter any stock ticker (e.g., AAPL, NVDA) and automatically generates a one-page market volatility dashboard using historical price data. It computes daily returns, rolling volatility across multiple windows, and volume-based metrics, and applies K-Means clustering and Isolation Forest to classify volatility regimes and detect statistically unusual days. The system combines financial feature engineering with lightweight machine-learning models to produce an interpretable snapshot of a stock’s historical risk behavior.

  • Price vs. volatility over time
  • Short / medium / long-term volatility
  • Daily return distribution
  • Volatility vs. trading volume
  • Volatility regimes (calm vs. turbulent periods)
  • Statistically unusual (“anomaly”) days

All of this runs locally from the terminal using Python and matplotlib.


What This Project Does

  1. You enter a stock ticker in the terminal.
  2. The program downloads historical price data.
  3. It calculates daily returns and several volatility measures.
  4. It applies simple machine-learning models to:
    • group days into volatility regimes, and
    • detect abnormal volatility days.
  5. It plots everything in a 3×3 dashboard in a single window.

Requirements

  • Python 3.8+
  • pip (Python package manager)

Python libraries used:

  • yfinance
  • pandas
  • numpy
  • matplotlib
  • scikit-learn

They’re all listed in requirements.txt.


Installation

From the project root:

# (optional but recommended) create a virtual environment
python -m venv .venv
# activate it
# Windows:
.venv\Scripts\activate
# macOS / Linux:
source .venv/bin/activate

# install dependencies
pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages