capm {TSEtools} | R Documentation |
Capital assets pricing model including a risk-free asset.
Description
Compute the capital assets pricing model including a risk-free asset.
Usage
capm(x, Rf = 0.2/270, sh = FALSE, eRtn = NULL)
Arguments
x |
a numeric matrix of random returns per unit of price within some holding period. |
Rf |
the return of the risk free, i.e. has variance 0. |
sh |
a logical indicating whether shortsales on the risky securities are allowed. Default is FALSE. |
eRtn |
a value of expected returen of portofilo. The mean of whole data defualt. |
Details
Let be random asset returns and
the portfolio weights. The expected returns are
In addition
to these risky investments, there is a risk-free asset (a bond or bank account)
available, which has return
. Denoting the weights of
for the risk-free
asset. The return of portfolio given by
where, .
Risk is measure by a deviation functional . It is a variance-covariance of asset returns. The risk-free component
ignore in the objective. So, the standard deviation of portfolio is given by
To obtain the optimum value of we solve the following model:
Note that, the portfolio weights may be negative (selling short is allowed). Market portfolio is named MP
where, the risk free weight w_0
is zero (see, the function of prtf()
).
For any portfolio ,
where, is return of market portfolio and
is the beta coefficient of the portfolio
. It is given by
Value
wCAPM |
weight of CAPM assets |
wrF |
weight of risk free assets |
sd.capm |
volatility of CAPM portfolio |
rtn.capm |
return of CAPM portfolio |
beta |
beta coefficient of portfolio |
References
Pflug and Romisch (2007, ISBN: 9789812707406)
Examples
## Not run:
x <- rnorm(500,0.05,0.02)
y <- rnorm(500,0.01,0.03)
z<-cbind(x, y)
colnames(z) <- c("prt1","prt2")
capm( z, sh = FALSE, Rf= 0.2/270, eRtn=0.02 )
## End(Not run)