mu_estim_sample: Sample Expected Return Estimation

Description Usage Arguments Details Value Examples

View source: R/mu-estim.R

Description

Computes the sample estimator of the expected return.

Usage

1

Arguments

data

an nxp data matrix

Details

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).

Value

a vector of expected returns

Examples

1
2
3
data(sp500_rets)
sp_rets <- sp500_rets[,-1]
mu_sample <- mu_estim_sample(sp_rets)

antshi/auxPort documentation built on Oct. 27, 2020, 1:16 p.m.