apaVolatility.Upside(Returns, Threshold)
Excel
=apaVolatility.Upside(Returns, Threshold)Result
Calculates the upside volatility of each column of a return matrix, i.e. the square root of the second upper partial moment with respect to the threshold.
Syntax
Returns: r x c matrix of returns, each column containing a series
Threshold: return threshold
Algorithm
For each series, the upside volatility is calculated as the square root of UPM(Threshold, 2), the second-degree upper partial moment (see apaUPM).
Remarks
Upside is defined as above the threshold.
Partial moments divide by the total number of observations n (population-type).
