mean_bs | R Documentation |
Bayes-Stein shrinkage estimator of the mean vector as suggested in \insertCiteJorion1986;textualHDShOP. The estimator is given by
\hat \mu_{BS} = (1-\beta) \bar x + \beta Y_0 1,
where
\bar x
is the sample mean vector, \beta
and Y_0
are
derived using Bayesian approach (see Eq.(14) and Eq.(17) in
\insertCiteJorion1986;textualHDShOP).
mean_bs(x)
x |
a p by n matrix or a data frame of asset returns. Rows represent different assets, columns – observations. |
a numeric vector containing the Bayes-Stein shrinkage estimator of the mean vector
n <- 7e2 # number of realizations
p <- .5*n # number of assets
x <- matrix(data = rnorm(n*p), nrow = p, ncol = n)
mm <- mean_bs(x=x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.