StatsFTest
StatsFTest [/ALPH=significance /TAIL=tc /T=km /Q/Z] wave1, wave2
The StatsFTest operation performs the F-test on the two distributions in wave1 and wave2, which can be any real numeric type, must contain at least two data points each, and can have an arbitrary number of dimensions. Output is to the W_StatsFTest wave in the current data folder or optionally to a table.
Flags
| /ALPH=val | Sets the significance level (default val =0.05). | ||||||
| /TAIL=tc | Specifies the tail tested. | ||||||
| |||||||
| /Q | No results printed in the history area. | ||||||
| /T=k | Displays results in a table. k specifies the table behavior when it is closed. | ||||||
| |||||||
| /Z | Ignores errors. V_flag will be set to -1 for any error and to zero otherwise. | ||||||
Details
The F statistic is the ratio of the variance of wave1 to the variance of wave2. We assume the waves have equal wave variances and that H0 is sigma1=sigma2. For the upper one-tail test we reject H0 if F is greater than the upper critical value or if F is smaller than the lower critical value in the lower one-tail test. In the two-tailed test we reject H0 if F is either greater than the upper critical value or smaller than the lower critical value. The critical values are computed by numerically solving for the argument at which the cumulative distribution function (CDF) equals the appropriate values for the tests. The CDF is given by
where the degrees of freedom n1 and n2 equal the number of valid (non-NaN) points in each wave -1, and betai is the incomplete beta function. To get the critical value for the upper one-tail test we solve F(x)=1-alpha. For the lower one-tail test we solve F(x)=alpha. In the two-tailed test the lower critical value is a solution for F(x)=alpha/2 and the upper critical value is a solution for F(x)=1-alpha/2.
See Also
Statistical Analysis, StatsVariancesTest, StatsFCDF, betai