apaVolatility.Upper(Returns)
Excel
=apaVolatility.Upper(Returns)Result
Calculates the upper semi-volatility of a return series, i.e. the square root of the second upper partial moment with respect to the mean.
Syntax
Returns: r x 1 vector of returns
Algorithm
The upper semi-volatility is calculated as the square root of UPM(μ, 2), the second-degree upper partial moment with the mean μ as threshold (see apaUPM).
Remarks
Upside is defined as above the mean.
Partial moments divide by the total number of observations n (population-type).
