apaNonNormality.nObsToDropUntilNormal(TimeSeries, ConfidenceLevel)
Excel
=apaNonNormality.nObsToDropUntilNormal(TimeSeries, ConfidenceLevel)Result
Calculates the number of observations with large contributions to non-normality which need to be dropped until a time series passes the Jarque-Bera test for normality, divided by the total number of observations. The result expresses the degree of non-normality of a time series.
Syntax
TimeSeries: n x 1 data vector
ConfidenceLevel: confidence level of the Jarque-Bera test, e.g. 95%
Remarks
This function can be used to quantify the “degree of non-normality” of a time series. Expressed as a percentage (nObsToDrop divided by the total nObs), it allows comparisons between time series with differing nObs.
Uses sample skewness and sample excess kurtosis (as Excel SKEW and KURT).
