Skip to content

Commit bd086f0

Browse files
committed
docs: update docs for get_tangency_portfolio()
1 parent d283f81 commit bd086f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

okama/frontier/single_period.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def get_tangency_portfolio(self, cagr: bool = False, rf_return: float = 0) -> di
284284
{'Weights': array([0.30672901, 0. , 0.69327099]), 'Mean_return': 0.12265215404959617, 'Risk': 0.1882249366394522}
285285
286286
To calculate tangency portfolio parameters for CAGR (geometric mean) set cagr=True:
287+
287288
>>> ef.get_tangency_portfolio(cagr=True, rf_return=0.03)
288289
{'Weights': array([2.95364739e-01, 1.08420217e-17, 7.04635261e-01]), 'Mean_return': 0.10654206521088283, 'Risk': 0.048279725208422115}
289290
"""

0 commit comments

Comments
 (0)