Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/FAQ.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FAQs
Constraining a score
--------------------

Suppose that for each asset you have some "score" – it could be an ESG metric, or some custom risk/return metric. It is simple to specify linear constraints, like "portfolio ESG score must be greater than x": you simply create
Suppose that for each asset you have some "score" – it could be an ESG (Environmental, Social, and Governance) metric, or some custom risk/return metric. It is simple to specify linear constraints, like "portfolio ESG score must be greater than x": you simply create
a vector of scores, add a constraint on the dot product of those scores with the portfolio weights, then optimize your objective::

esg_scores = [0.3, 0.1, 0.4, 0.1, 0.5, 0.9, 0.2]
Expand Down
2 changes: 1 addition & 1 deletion docs/GeneralEfficientFrontier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ annual return of 20%::
from pypfopt import expected_returns, EfficientSemivariance

df = ... # your dataframe of prices
mu = expected_returns.mean_historical_returns(df)
mu = expected_returns.mean_historical_return(df)
historical_returns = expected_returns.returns_from_prices(df)

es = EfficientSemivariance(mu, historical_returns)
Expand Down
2 changes: 1 addition & 1 deletion docs/MeanVariance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ language for convex optimization upon which PyPortfolioOpt's efficient frontier

.. tip::

You can find complete examples in the relevant cookbook `recipe <https://github.com/PyPortfolio/PyPortfolioOpt/blob/main/cookbook/2-Mean-Variance-Optimization.ipynb>`_.
You can find complete examples in the relevant cookbook `recipe <https://github.com/PyPortfolio/PyPortfolioOpt/blob/main/cookbook/2-Mean-Variance-Optimisation.ipynb>`_.


Structure
Expand Down
2 changes: 1 addition & 1 deletion docs/UserGuide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ in the sidebar to learn more about the parameters and theoretical details of the
different models offered by PyPortfolioOpt. If you have any questions, please
raise an issue on GitHub and I will try to respond promptly.

If you'd like even more examples, check out the cookbook `recipe <https://github.com/PyPortfolio/PyPortfolioOpt/blob/main/cookbook/2-Mean-Variance-Optimization.ipynb>`_.
If you'd like even more examples, check out the cookbook `recipe <https://github.com/PyPortfolio/PyPortfolioOpt/blob/main/cookbook/2-Mean-Variance-Optimisation.ipynb>`_.


References
Expand Down