Factor Modeling, Portfolio Construction, Python, Log Returns, Finance.
method calculates the optimal weights for assets in the portfolio by maximizing returns while minimizing risk. It uses the expected returns and covariance matrix of log returns. The risk_parity method implements a risk parity approach for portfolio construction, ensuring an equal risk contribution