# Q-Test in mathematica

I want to use the Q-test to determine outlier in my dataset. However, I cannot find a function to do this is in Mathematica. Does anyone know if there is a function which does this in Mathematica?

Thanks.

-
Maybe you could describe the $Q$-test a little? –  Dilip Sarwate Jan 20 '12 at 22:42
Not my idea of recreational mathematics, so I'm re-tagging as statistics. Maybe there's a better tag. –  Gerry Myerson Jan 20 '12 at 23:05
@GerryMyerson If $Q$ means the complementary Gaussian cumulative distribution function, probability distributions and normal distribution might also be appropriate tags. –  Dilip Sarwate Jan 21 '12 at 1:50
@Dilip, go for it. OP can always change it if it's wrong. –  Gerry Myerson Jan 21 '12 at 2:10
Did you mean the Dixon Q-test? –  Guess who it is. Jan 26 '12 at 11:47

qstat[data_?VectorQ, mode : Min | Max] :=

Choose mode as Min or Max, depending on whether you want to test the lowest value or the highest one as an outlier. Remember that once you've decided to remove one, it is poor form to reapply the test on the edited data.