apaMeanVariance.Assets(ReturnMatrix, IsSampleOtherwisePopulation)
=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
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.
