Re: Which Test is Used to Verify Assumptions in TTest

*To*: mathgroup at smc.vnet.net*Subject*: [mg120161] Re: Which Test is Used to Verify Assumptions in TTest*From*: Andy Ross <andyr at wolfram.com>*Date*: Sun, 10 Jul 2011 05:02:46 -0400 (EDT)*References*: <201107091132.HAA13524@smc.vnet.net>

On 7/9/2011 6:32 AM, Gregory Lypny wrote: > Hello everyone, > > I've run some simple t-tests of means using TTest and was pleased to see that Mathematica pretests for the validity of underlying assumptions. In a very skewed sample, I received a warning that the normality assumption had likely been violated. The warning looked like this: > > TTest::nortst: "At least one of the p-values in 0., resulting from a test for normality, is below 0.05. The tests in T require that the data is normally distributed. > > Is it possible to find out precisely which pretest Mathematica performed in order to generate that message? > > Regards, > > Gregory > > > In order to find out what test was being used apply DistributionFitTest to your original data and ask for the "AutomaticTest" property. This will give the name of the test that was being used. Something like... DistributionFitTest[ data, Automatic, "AutomaticTest"] or if you just want to perform the test... DistributionFitTest[data,Automatic,"TestDataTable"] This process will be documented in future versions of Mathematica but in the meantime I hope this helps. Andy Ross Wolfram Research

**References**:**Which Test is Used to Verify Assumptions in TTest***From:*Gregory Lypny <gregory.lypny@videotron.ca>