apaTailRatio(Returns, ConfidenceLevel)
Excel
=apaTailRatio(Returns, ConfidenceLevel)Result
Returns the tail ratio, the size of the right tail of the return distribution relative to the left tail.
Syntax
Returns: r x c matrix of returns. Each column represents a different time series.
ConfidenceLevel: optional; confidence level between 0.5 and 1, e.g. 95% compares the 95th with the 5th percentile; default: 0.95
Algorithm
Tail ratio = Q(ConfidenceLevel) / |Q(1 − ConfidenceLevel)|, with empirical percentiles Q interpolated as in Excel PERCENTILE.INC.
Remarks
The result is a 1 x c row vector with one value per column of Returns.
Values above 1 indicate a larger right tail. #N/A is returned if the lower percentile is not negative.
