File Exchange

image thumbnail


version 1.0 (7.84 KB) by

File gives several sphericity tests as Bartlett and Mauchly to choose.

3 Ratings



View License

Basically, here we are testing if all the p-axis have the same variability or eigenvalues. There are two tests to choose in a menu form such as the Bartlett and Mauchly's sphericity tests.

Only needs to input the multivariate data matrix and the significance level (default = 0.05). It outputs the sample-size, the p-variables, the observed statistic used to test any deviation from an expected sphericity and the probability that null Ho: is true.

Comments and Ratings (5)


As per the formula given in this link

all calculations require p = degrees of freedom of the factor rather than the levels of the factor.


Ben (view profile)

I second the results deviating massively from SPSS output (regarding Mauchly). p values can differ by as much as 3 orders of magnitude!


I noticed a clear difference in results by this function and a similar test in SPSS (significant vs. non-significant findings). My data contains scores for 17 participants (rows) across three conditions (columns) as input into a one-way ANOVA for repeated measures. What is weird is that the degrees of freedom are completely different, being 2 in SPSS and 5 with this function, as is also the case with the other computed statistics. Which one is right?

Kay Thurley

grace kelly

MATLAB Release
MATLAB 5.3 (R11)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today