Quantitative Finance 2021 final project. This repository contains an implementation of the Black-Litterman model, along with supporting files for backtesting and statistical analysis.
The Black-Litterman model is a popular portfolio optimization technique that combines market equilibrium assumptions with an investor's subjective views on asset returns. This repository provides an implementation of the Black-Litterman model, allowing users to incorporate their own views and perform portfolio allocation based on the model's outputs.
The repository consists of the following files:
-
Backtesting.ipynb: This Jupyter Notebook file contains code for backtesting the Black-Litterman model on historical data. It provides an example of how the model can be applied to evaluate its performance over a specific time period.
-
Statistic.py: This Python file contains functions for calculating various statistics related to the Black-Litterman model, such as portfolio returns, risk measures, and performance metrics. It serves as a utility module for analyzing the model's results.
-
blacklitterman.py: This Python file contains the main implementation of the Black-Litterman model. It includes functions for incorporating investor views, calculating equilibrium returns, and performing portfolio allocation based on the model's outputs.
To use this implementation of the Black-Litterman model, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/black-litterman-model.git
-
Navigate to the repository directory:
-
Open the
Backtesting.ipynb
notebook in Jupyter or your preferred Python environment to see an example of how to apply the Black-Litterman model to historical data. -
Explore the
Statistic.py
module for additional statistical analysis functions related to the Black-Litterman model. -
Incorporate the
blacklitterman.py
module into your own projects to leverage the Black-Litterman model for portfolio optimization.
Contributions to this repository are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. We appreciate your contributions!
This project is licensed under the MIT License.