apaCertaintyEquivalentReturn(Returns, RiskAversion, RiskfreeReturns, IsSampleOtherwisePopulation)
Excel
=apaCertaintyEquivalentReturn(Returns, RiskAversion, RiskfreeReturns, IsSampleOtherwisePopulation)Result
Returns the mean-variance certainty-equivalent excess return.
Syntax
Returns: r x c matrix of returns. Each column represents a different time series.
RiskAversion: risk aversion coefficient λ (at least 0)
RiskfreeReturns: optional; single value, r x 1 vector (shared by all columns) or r x c matrix of riskfree returns per period; default: 0
IsSampleOtherwisePopulation: optional; TRUE for sample variance (division by n-1), FALSE for population variance (division by n); default: TRUE
Algorithm
CER = mean(r − rf) − λ/2 · var(r − rf).
Remarks
The result is a 1 x c row vector with one value per column of Returns.
The result has the frequency of the input data.
