Basic Dean-Dixon outlier test
[outlierfree] = ST_deandixon(v, p) [outlierfree, outlier] = ST_deandixon(v, p)
vector of numerical values
statistical confidence level (%) as a string or the level of significance (α) as a decimal value, "95%", "99%", "99.9%" or 0.05, 0.01, 0.001 resp (see examples).
input vector with the detected outlier removed; unchanged if the test does not identify an outlier
detected outliers as a scalar vector; [] if no outlier is detected
Performs the basic Dean-Dixon outlier test. It sorts the distribution in ascending or descending order, then takes the minimum and maximum values (xi) and calculates the respective Q value for both xi values. This is compared with the critical value from a table (Qcrit). If one of the two or both Q values greater than the corresponding (Qcrit value, one or both xi values are outliers.

Only one outlier can be found on each side.
![]() | Apply this test ONLY one time to your data. |
![]() | Do use ST_deandixon ONLY with NORMAL distributed data and with sample sizes from 3 through 30 values! For more than 30 values use Pearson-Hartley "ST_pearsonhartley()" or better the generalized Extreme Studentized Deviate test according to Rosner "ST_esd()" instead. |
Lohringer, H., "Grundlagen der Statistik", Oct, 10th, 2012, http://www.statistics4u.info/fundstat_germ/cc_outlier_tests_4sigma.html