apaUPM(Returns, Threshold, Degree)
Excel
=apaUPM(Returns, Threshold, Degree)Result
Returns the upper partial moment (UPM) of a return time series.
Syntax
Returns: r x 1 vector of returns
Threshold: return threshold
Degree: degree of the partial moment
Algorithm
Remarks
Partial moments divide by the total number of observations n (population-type).
