Welcome to Project Superstar VIX, a financial dashboard built with Streamlit. This mini app calculates a Customized Volatility Index (CVI) for high-performing "Superstar" stocks in both the Republic of Korea (KR) and the United States (US) markets.
This application is designed to be hosted on Streamlit Community Cloud.
-
Real-time CVI Calculation: Using a Recursive EWMA model (
$\lambda=0.94$ ). - Stateful Engine: SQLite-backed state management for efficient incremental updates.
- Robust Covariance: Implements Ledoit-Wolf Shrinkage for stable correlation matrices.
- Hierarchical Visualization: Sector-based Treemaps and Risk-Return Profile scatterplots.
- Standardized Comparison: Fixed Y-axis (0-100) for direct cross-market comparison.
Individual stock volatility is calculated using the Recursive Exponentially Weighted Moving Average formula:
The index is aggregated using Market Capitalization weights (
- Framework: Streamlit
- Data: FinanceDataReader (KR), yfinance (US)
- Math/Stats: Pandas, NumPy, Scikit-learn (Ledoit-Wolf)
- Viz: Plotly
- Clone the repository:
git clone https://github.com/your-username/lab-superstar-vix.git cd lab-superstar-vix - Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run the app:
streamlit run app.py
MIT License. Feel free to use and modify for your own research.