<< ST_outlier Outlier-Tests Tools >>

samplestat >> samplestat > Outlier-Tests > ST_pearsonhartley

ST_pearsonhartley

Pearson-Hartley outlier test

Calling Sequence

[outlierfree] = ST_pearsonhartley(v, p)
[outlierfree, outlier] = ST_pearsonhartley(v, p)

Parameters

v:

vector of numerical values

p:

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).

outlierfree:

vector of outlier-free data

outlier:

vector of outliers

Description

Performs the Pearson-Hartley outlier test. It should be used for distributions with more than 30 values.

\begin{eqnarray}
q=\left| \frac{1}{s}(x_i - \bar{x}) \right| \quad ; \quad q >q_{crit} \quad  \Rightarrow \quad x_i = \text{outlier} \\
x_i: \text{test value} \quad ; \quad \bar{x}: \text{arithmetic mean} \quad ; \quad s: \text{sample standard deviation}
\end{eqnarray}

Do use ST_pearsonhartley ONLY with NORMAL distrinutions.

Do use ST_pearsonhartley with more than 30 values! For less than 30 values use Dean-Dixon test "ST_deandion()" instead.

Examples

data = [..
0.21 0.75 0.00 0.33 0.66 0.62 0.84 0.68 0.87 0.06 ..
0.56 0.66 0.72 0.19 0.54 0.23 0.23 0.21 0.88 0.65 ..
0.30 0.93 0.21 0.31 0.36 0.29 0.56 0.48 0.33 0.59 ..
1.23 1.84 0.50 0.43 0.26 0.63 ..
];
of = ST_pearsonhartley(data, "95%")      // outlier-free values
[of, o] = ST_pearsonhartley(data, "95%") // outlier and outlier-free values
[of, o] = ST_pearsonhartley(data, 0.05)  // outlier and outlier-free values

See also

Authors

Bibliography

Lohringer, H., "Grundlagen der Statistik", Oct, 10th, 2012, http://www.statistics4u.info/fundstat_germ/cc_outlier_tests_4sigma.html


Report an issue
<< ST_outlier Outlier-Tests Tools >>