Home   >   User Resources   >   Online Help   >   apaMeanVariance.Assets
 

 

Function index Version 3.0.0

apaMeanVariance.Assets(ReturnMatrix, IsSampleOtherwisePopulation)

Excel=apaMeanVariance.Assets(ReturnMatrix, IsSampleOtherwisePopulation)

Result

Returns a 2 x nAssets matrix with the average return of each asset in the first row and its volatility in the second row. The two rows are the coordinates of the individual assets in the mean-volatility diagram, so they can be charted directly next to a mean-variance efficient frontier, e.g. one calculated with apaMeanVariance.Restricted.Bounded.Frontier. The first row can also serve as the vector of expected returns of the mean-variance functions. Both statistics are expressed in the periodicity of the input data and are not annualized.

Syntax

ReturnMatrix: nObs x nAssets matrix of asset returns, each column containing the return time series of one asset

IsSampleOtherwisePopulation: optional; TRUE for the sample volatility (division by nObs - 1), FALSE for the population volatility (division by nObs); default: FALSE

Algorithm

With T observations r(t, j) of asset j, the average return and the volatility are

r‾j=1T∑t=1Trt,j{\bar{r}}_{j} = \frac{1}{T}\sum_{t = 1}^{T}r_{t,j}

σj=1T−k∑t=1T(rt,j−r‾j)2,k={0population volatility1sample volatility\sigma_{j} = \sqrt{\frac{1}{T - k}\sum_{t = 1}^{T}\left( r_{t,j} - {\bar{r}}_{j} \right)^{2}},\quad\quad k = \left\{ \begin{matrix} 0 & \text{population volatility} \\ 1 & \text{sample volatility} \end{matrix} \right.\

The result is the vertical concatenation of the row of averages (as apaMatrix.Averages.Cols) and the row of volatilities (as apaVolatilities).

Remarks

The volatilities are identical to apaVolatilities(ReturnMatrix, IsSampleOtherwisePopulation). The sample volatility requires at least two observations. All cells of ReturnMatrix must be numeric; missing values are not allowed. See apaMeanCVaR.Assets for the corresponding mean-CVaR coordinates.