<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\HeaderA{CAPM.utils}{utility functions for CAPM CML, SML, and RiskPremium}{CAPM.utils}
\aliasA{CAPM.CML}{CAPM.utils}{CAPM.CML}
\methaliasA{CAPM.CML.slope}{CAPM.utils}{CAPM.CML.slope}
\aliasA{CAPM.RiskPremium}{CAPM.utils}{CAPM.RiskPremium}
\aliasA{CAPM.SML.slope}{CAPM.utils}{CAPM.SML.slope}
\keyword{ts}{CAPM.utils}
\keyword{multivariate}{CAPM.utils}
\keyword{distribution}{CAPM.utils}
\keyword{models}{CAPM.utils}
\begin{Description}\relax
The Capital Asset Pricing Model, from which the popular \code{\LinkA{SharpeRatio}{SharpeRatio}} is derived, is a theory of market equilibrium.
These utility functions provide values for various measures proposed in the CAPM.
\end{Description}
\begin{Usage}
\begin{verbatim}
CAPM.CML.slope(Rb, Rf = 0 )
CAPM.CML(Ra, Rb, Rf = 0)
CAPM.RiskPremium(Ra, Rf = 0)
CAPM.SML.slope(Rb, Rf = 0)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{Ra}] an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns 
\item[\code{Rb}] return vector of the benchmark asset 
\item[\code{Rf}] risk free rate, in same period as your returns 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The CAPM provides a justification for passive or index investing by positing that assets that are not on the efficient frontier will either rise or lower in price until they are on the efficient frontier of the market portfolio.

The CAPM Risk Premium on an investment is the measure of how much the asset's performance differs from the risk free rate.  Negative Risk Premium generally indicates that the investment is a bad investment, and the money should be allocated to the risk free asset or to a different asset with a higher risk premium.

The Capital Market Line relates the excess expected return on an efficient market portfolio to it's Risk.  The slope of the CML is the Sharpe Ratio for the market portfolio. The Security Market line is constructed by calculating the line of Risk Premium over \code{\LinkA{CAPM.beta}{CAPM.beta}}.  For the benchmark asset this will be 1 over the risk premium of the benchmark asset.   The CML also describes the only path allowed by the CAPM to a portfolio that outperforms the efficient frontier: it describes the line of reward/risk that a leveraged portfolio will occupy.  So, according to CAPM, no portfolio constructed of the same assets can lie above the CML.

Probably the most complete criticism of CAPM in actual practice (as opposed to structural or theory critiques) is that it posits a market equilibrium, but is most often used only in a partial equilibrium setting, for example by using the S\&amp;P 500 as the benchmark asset.  A better method of using and testing the CAPM would be to use a general equilibrium model that took global assets from all asset classes into consideration.

Chapter 7 of Ruppert(2004) gives an extensive overview of CAPM, its assumptions and deficiencies.

\code{CAPM.RiskPremium} is the premium returned to the investor over the risk free asset

\deqn{\overline{(R_{a}-R_{f})}}{}

\code{CAPM.CML} calculates the expected return of the asset against the benchmark Capital Market Line

\code{CAPM.CML.slope} calculates the slope of the Capital Market Line for looking at how a particular asset compares to the CML

\code{CAPM.SML.slope} calculates the slope of the Security Market Line for looking at how a particular asset compares to the SML created by the benchmark
\end{Details}
\begin{Value}
CAPM value for function called
\end{Value}
\begin{Author}\relax
Brian G. Peterson
\end{Author}
\begin{References}\relax
Sharpe, W.F. The Sharpe Ratio,\emph{Journal of Portfolio Management},Fall 1994, 49-58. \\
Sharpe, W.F. Capital Asset Prices: A theory of market equilibrium under conditions of risk. \emph{Journal of finance}, vol 19, 1964, 425-442. \\
Ruppert, David. \emph{Statistics and Finance, an Introduction}. Springer. 2004. \\
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{CAPM.beta}{CAPM.beta}}
\code{\LinkA{CAPM.alpha}{CAPM.alpha}}
\code{\LinkA{SharpeRatio}{SharpeRatio}}
\code{\LinkA{InformationRatio}{InformationRatio}}
\code{\LinkA{TrackingError}{TrackingError}}
\code{\LinkA{ActivePremium}{ActivePremium}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(managers)
CAPM.CML.slope(managers[,"SP500 TR",drop=FALSE], managers[,10,drop=FALSE])
CAPM.CML(managers[,"HAM1",drop=FALSE], managers[,"SP500 TR",drop=FALSE], Rf=0)
CAPM.RiskPremium(managers[,"SP500 TR",drop=FALSE], Rf=0)
CAPM.RiskPremium(managers[,"HAM1",drop=FALSE], Rf=0)
CAPM.SML.slope(managers[,"SP500 TR",drop=FALSE], Rf=0)
# should create plots like in Ruppert 7.1 7.2

\end{ExampleCode}
\end{Examples}

</pre></body></html>