Constructs the maximum Sharpe ratio portfolio, also known as the tangency portfolio. This portfolio maximizes risk-adjusted returns and represents the optimal risky portfolio in mean-variance theory.
Use Cases:
Mathematical Background: Maximizes: (R_p - R_f) / σ_p Subject to: Σw_i = 1, and optional constraints
Where R_p is portfolio return, R_f is risk-free rate, and σ_p is portfolio volatility.
Credits: 5 per request
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Expected returns for each asset (annualized)
[0.08, 0.12, 0.1, 0.15]Asset covariance matrix (annualized)
[
[0.04, 0.006, 0.008, 0.01],
[0.006, 0.09, 0.012, 0.015],
[0.008, 0.012, 0.0625, 0.018],
[0.01, 0.015, 0.018, 0.16]
]Risk-free rate (annualized). Critical for Sharpe ratio calculation.
0.03
Minimum weight constraints for each asset
[0, 0, 0, 0]Maximum weight constraints for each asset
[0.5, 0.5, 0.5, 0.5]