Friedman test
The Friedman test is a non-parametric statistical test developed by Milton Friedman. Similar to the parametric repeated measures ANOVA, it is used to detect differences in treatments across multiple test attempts. The procedure involves ranking each row together, and then considering the values of ranks by columns. Applicable to complete block designs, it is thus a special case of the Durbin test.
Classic examples of use are:
- wine judges each rate different wines. Are any of the wines ranked consistently higher or lower than the others?
- welders each use welding torches, and the ensuing welds were rated on quality. Do any of the torches produce consistently better or worse welds?
The Friedman test is widely supported by many statistical software packages.
Method
- Given data, that is, a matrix with rows, columns and a single observation at the intersection of each block and treatment, calculate the ranks within each block. If there are tied values, assign to each tied value the average of the ranks that would have been assigned without ties. Replace the data with a new matrix where the entry is the rank of within block.
- Find the values
- The test statistic is given by. Note that the value of does need to be adjusted for tied values in the data.
- Finally, when or is large, the probability distribution of can be approximated by that of a chi-squared distribution. In this case the -value is given by. If or is small, the approximation to chi-square becomes poor and the -value should be obtained from tables of specially prepared for the Friedman test. If the -value is significant, appropriate post-hoc multiple comparisons tests would be performed.
Related tests
- When using this kind of design for a binary response, one instead uses the Cochran's Q test.
- The Sign test is equivalent to a Friedman test on two groups.
- Kendall's W is a normalization of the Friedman statistic between and.
- The Wilcoxon signed-rank test is a nonparametric test of nonindependent data from only two groups.
- The Skillings–Mack test is a general Friedman-type statistic that can be used in almost any block design with an arbitrary missing-data structure.
- The Wittkowski test is a general Friedman-Type statistics similar to Skillings-Mack test. When the data do not contain any missing value, it gives the same result as Friedman test. But if the data contain missing values, it is both, more precise and sensitive than Skillings-Mack test.
Post hoc analysis
Not all statistical packages support post-hoc analysis for Friedman's test, but user-contributed code exists that provides these facilities. The R package titled PMCMRplus contains numerous non-parametric methods for post-hoc analysis after Friedman, including support for the Nemenyi test.