plotFrontier
Plot efficient frontier
Syntax
Description
[
estimates the efficient frontier
with default number of 10 portfolios on the frontier, and plots the
corresponding efficient frontier for prsk
,pret
]
= plotFrontier(obj
)Portfolio
,
PortfolioCVaR
, or PortfolioMAD
objects. For details on the respective workflows when using these different
objects, see Portfolio Object Workflow, PortfolioCVaR Object Workflow,
and PortfolioMAD Object Workflow.
[
estimates the efficient frontier with a specified number of portfolios
(prsk
,pret
]
= plotFrontier(obj
,NumPortfolios
)NumPortfolios
) on the frontier, and plots the
corresponding efficient frontier.
[
estimates efficient portfolio risks and returns with
prsk
,pret
]
= plotFrontier(obj
,PortfolioWeights
)PortfolioWeights
, and plots the efficient frontier with
those portfolios. This syntax assumes that you provide valid efficient portfolio
weights as input. PortWeights
is a
NumAssets
-by-NumPortfolios
matrix.
[
plots the efficient frontier with the given risks and returns. This syntax
assumes that you provide valid inputs for efficient portfolio risks and returns.
prsk
,pret
]
= plotFrontier(obj
,PortfolioRisks
,PortfolioReturns
)PortfolioRisks
and
PortfolioReturns
are vectors with the same size.
Note
plotFrontier
handles multiple input formats as
described above. Given an asset universe with
NumAssets
assets and an efficient frontier with
NumPortfolios
portfolios, remember that portfolio
weights are
NumAsset
-by-NumPortfolios
matrices and that portfolio risks and returns are
NumPortfolios
-by-1
column
vectors.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to plot the efficient frontier.
[prsk, pret] = obj.plotFrontier;