The Beta Calculator App is a powerful, interactive tool built with Streamlit for calculating the Beta of a stock relative to a benchmark index. Designed for financial analysts, investors, and CFA candidates, it provides an intuitive way to assess systematic risk with exportable results.
- 📈 Stock Beta Calculation: Analyze a stock's volatility relative to a benchmark index.
- 📅 Custom Date Range: Select specific time periods or rolling windows for analysis.
- 🧹 Data Cleaning: Automatically handles non-overlapping stock and index data points.
- 📤 Excel Export: Generate well-formatted Excel reports for further analysis.
- ⚡ Fast and Interactive: Built on Streamlit for seamless user experience.
- Input the stock ticker symbol (e.g.,
AAPL
) and benchmark index symbol (e.g.,^GSPC
for S&P 500). - Select a date range or specify a rolling period for analysis.
- Click Calculate to compute the Beta.
- Export the results to an Excel file for professional use.
Follow these steps to run the app locally:
-
Clone this repository:
git clone https://github.com/Vedant-try/Veta.git cd Veta
-
Install the required dependencies:
pip install -r requirements.txt
-
Launch the Streamlit app:
streamlit run Eg.py
- Python 3.9 or later
- Dependencies (listed in
requirements.txt
):streamlit
pandas
numpy
yfinance
xlsxwriter
Veta/
├── Eg.py # Main Streamlit app file
├── requirements.txt # Python dependencies
├── README.md # Project documentation
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m "Add feature"
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the MIT License.
Developed by Vedant Shah, a CFA student passionate about finance, statistics, and workflow automation.