StatsVariancesTest
StatsVariancesTest [/ALPH=val /Q/Z/METH=m /WSTR=strList ] [wave1, wave2,... wave100 ]
The StatsVariancesTest operation performs Bartlett's or Levene's test to determine if wave variances are equal. Output is to the W_StatsVariancesTest wave in the current data folder or optionally to a table.
Flags
| /ALPH=val | Sets the significance level (default val =0.05). | ||||||||
| /DEST=vWave | Specify the output wave for the variances test. If you do not specify this flag, the operation saves the output in the wave W_StatsVariancesTest in the current data folder. | ||||||||
| This flag was added in Igor Pro 10.00. | |||||||||
| /FREE | Creates the specified destination wave as a free wave. | ||||||||
| /FREE is allowed only in functions, and only if the destination waves are simple names or wave reference structure fields. | |||||||||
| See Free Waves for more discussion. | |||||||||
| The /FREE flag was added in Igor Pro 10.00. | |||||||||
| /METH=m | Specifies the test type. | ||||||||
| |||||||||
| /Q | No results printed in the history area. | ||||||||
| /T=k | Displays results in a table. k specifies the table behavior when it is closed. | ||||||||
| |||||||||
| The table is associated with the test, not the data. If you repeat the test, it will update any existing table with the new results. | |||||||||
| /WSTR=waveListString | |||||||||
| Specifies a string containing a semicolon-separated list of waves that contain sample data. Use waveListString instead of listing each wave after the flags. | |||||||||
| /Z | Ignores errors. V_flag will be set to -1 for any error and to zero otherwise. | ||||||||
Details
All tests define the null hypothesis by
agains the alternative
Bartlett's test computes:
where
is the variance of the i th wave, N is the sum of the points of all the waves, ni is the number of points in wave i, and k is the number of waves. The weighted variance is given by
H0 is rejected if T is greater than the critical value taken from the
distribution computed by solving for x:
Levene's test computes:
where
depends on /METH.
H0 is rejected if W is greater than the critical value from the F distribution computed by solving for x:
References
NIST/SEMATECH, Bartlett's Test, in NIST/SEMATECH e-Handbook of Statistical Methods, http://www.itl.nist.gov/div898/handbook/eda/section3/eda357.htm, 2005.