This project analyzes historical stock market data to evaluate price trends, daily returns, and volatility of selected Indian banking stocks. The analysis helps understand risk, stability, and overall market behavior using basic financial metrics and visualizations.
- HDFC Bank
- ICICI Bank
- SBI
- Axis Bank
- Kotak Mahindra Bank
- Python
- Pandas
- Matplotlib
- Yahoo Finance (yfinance)
- Daily Returns
- 20-day and 50-day Moving Averages
- Volatility (Standard Deviation of Daily Returns)
- Collected 2 years of daily historical stock price data
- Cleaned and prepared the dataset
- Calculated daily percentage returns
- Identified price trends using moving averages
- Measured and compared volatility across stocks
- Visualized results using line charts and bar charts
- Private sector banks showed relatively lower volatility compared to PSU banks
- SBI exhibited higher volatility, indicating higher risk
- Moving averages helped identify bullish and bearish trends
- Daily returns fluctuated around zero, reflecting normal market behavior
- Install required libraries:
- Run the Python script:
Yahoo Finance (via yfinance Python library)
This project demonstrates basic financial data analysis skills and provides insights into stock performance and risk. It serves as a beginner-friendly project for finance and data analytics roles.