It computes the sample covariance of matrix \(S\) as follows:
$$S = \frac{1}{n-1} \sum_{j=1}^n (x_j - \bar x)(x_j - \bar x)'
,\quad \bar x = \frac{1}{n} \sum_{j=1}^n x_j ,$$
where \(x_j\) is the \(j\)-th column of the data matrix \(x\).
Usage
Sigma_sample_estimator(x)
Value
Sample covariance estimation
Arguments
x
a p by n matrix or a data frame of asset returns. Rows represent
different assets, columns -- observations.