Description Usage Arguments Details Value Examples
Computes the sample estimator of the expected return.
1 |
data |
an nxp data matrix |
The sample estimator of the expected returns for an n\times p data matrix X are computed with the following formula:
\hat{μ}=\frac{1}{n}∑_{i=1}^{n}X_{i}
(for i=1,…, n).
a vector of expected returns
1 2 3 | data(sp500_rets)
sp_rets <- sp500_rets[,-1]
mu_sample <- mu_estim_sample(sp_rets)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.