QuantitativeStockAnalysis is a Flask-based web application that provides statistical analysis and visualizations for stock data. Users can input a stock ticker to view detailed statistics, perform hypothesis tests, and generate predictive models based on historical stock data.
- Fetches historical stock data for the past 5 years.
- Calculates daily log returns and key statistical metrics (mean, variance, skewness, kurtosis, etc.).
- Performs hypothesis tests, including kurtosis tests and t-tests.
- Generates visualizations such as closing price trends, log return distributions, and regression plots.
- Predicts future stock prices using regression analysis.
- Upgrade pip and install dependencies:
python -m pip install --upgrade pip
pip install -r requirements.txt- Navigate to the app directory:
cd stockAnalysis_app- Start the Flask server:
python app.py- Open your browser and navigate to
http://127.0.0.1:5000to use the application.
- The dependencies are listed in
requirements.txt. - If you encounter execution policy errors when activating the virtual environment, run the following command in an elevated PowerShell session:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSignedQuantitativeStockAnalysis/
├── main.py
├── README.md
├── requirements.txt
├── stockAnalysis_app/
│ ├── app.py
│ ├── stock_analysis.py
│ ├── static/
│ │ ├── style.css
│ ├── templates/
│ │ ├── base.html
│ │ ├── index.html
- Add more advanced statistical models.
- Enhance the UI with additional visualizations and interactivity.
- Integrate real-time stock data updates.
- Special thanks to Matt Macarty for providing the foundational concepts for the analyses used in this project. Very insightful video, 10/10 would reccomend.

