Pearson-Hartley outlier test
[outlierfree] = ST_pearsonhartley(v, p) [outlierfree, outlier] = ST_pearsonhartley(v, p)
vector of numerical values
statistical confidence level (%) as a string or the level of significance (alpha) as a decimal value, "95%", "99%" or 0.05, 0.01 resp (see examples).
vector of outlier-free data
vector of outliers
Performs the historical, table-based Pearson-Hartley outlier test. It is intended for normally distributed samples with more than 30 values. The historical method is retained here for compatibility with the published Pearson-Hartley table. The test statistic is

![]() | Use ST_pearsonhartley ONLY with NORMAL distributions. |
![]() | Use ST_pearsonhartley only for sample sizes greater than 30 and not greater than 1000. For smaller samples use an appropriate small-sample outlier test. |
![]() | The historical Pearson-Hartley critical-value table is retained unchanged. Its tabulated limits correspond to the historical formulation even though the statistic uses an absolute deviation. For a modern formal test for a single unknown outlier in normally distributed data, ST_grubbs is preferred. |
Lohringer, H., "Pearson-Hartley Outlier Test", Statistics4U, http://www.statistics4u.com/fundstat_eng/ee_pearson_outliertest.html