HOME

TheInfoList



OR:

The Friedman test is a
non-parametric Nonparametric statistics is a type of statistical analysis that makes minimal assumptions about the underlying distribution of the data being studied. Often these models are infinite-dimensional, rather than finite dimensional, as in parametric sta ...
statistical test A statistical hypothesis test is a method of statistical inference used to decide whether the data provide sufficient evidence to reject a particular hypothesis. A statistical hypothesis test typically involves a calculation of a test statistic. ...
developed by
Milton Friedman Milton Friedman (; July 31, 1912 – November 16, 2006) was an American economist and statistician who received the 1976 Nobel Memorial Prize in Economic Sciences for his research on consumption analysis, monetary history and theory and ...
. Similar to the parametric
repeated measures Repeated measures design is a research design that involves multiple measures of the same variable taken on the same or matched subjects either under different conditions or over two or more time periods. For instance, repeated measurements are c ...
ANOVA Analysis of variance (ANOVA) is a family of statistical methods used to compare the means of two or more groups by analyzing variance. Specifically, ANOVA compares the amount of variation ''between'' the group means to the amount of variation ''w ...
, it is used to detect differences in treatments across multiple test attempts. The procedure involves
ranking A ranking is a relationship between a set of items, often recorded in a list, such that, for any two items, the first is either "ranked higher than", "ranked lower than", or "ranked equal to" the second. In mathematics, this is known as a weak ...
each row (or ''block'') together, 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: * n wine judges each rate k different wines. Are any of the k wines ranked consistently higher or lower than the others? * n welders each use k welding torches, and the ensuing welds were rated on quality. Do any of the k torches produce consistently better or worse welds? The Friedman test is used for one-way repeated measures analysis of variance by ranks. In its use of ranks it is similar to the Kruskal–Wallis one-way analysis of variance by ranks. The Friedman test is widely supported by many statistical software packages.


Method

# Given data \_, that is, a
matrix Matrix (: matrices or matrixes) or MATRIX may refer to: Science and mathematics * Matrix (mathematics), a rectangular array of numbers, symbols or expressions * Matrix (logic), part of a formula in prenex normal form * Matrix (biology), the m ...
with n rows (the ''blocks''), k columns (the ''treatments'') 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 r_ is the rank of x_ within block i. # Find the values \bar_ = \frac \sum_^n # The test statistic is given by Q = \frac \sum_^k \left(\bar_-\frac\right)^2. Note that the value of Q does need to be adjusted for tied values in the data. # Finally, when n or k is large (i.e. n>15 or k> 4), the
probability distribution In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
of Q can be approximated by that of a
chi-squared distribution In probability theory and statistics, the \chi^2-distribution with k Degrees of freedom (statistics), degrees of freedom is the distribution of a sum of the squares of k Independence (probability theory), independent standard normal random vari ...
. In this case the -value is given by \mathbf(\chi^2_ \ge Q). If n or k is small, the approximation to chi-square becomes poor and the -value should be obtained from tables of Q specially prepared for the Friedman test. If the -value is significant, appropriate post-hoc
multiple comparisons Multiple comparisons, multiplicity or multiple testing problem occurs in statistics when one considers a set of statistical inferences simultaneously or estimates a subset of parameters selected based on the observed values. The larger the numbe ...
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 (with a two-sided alternative) is equivalent to a Friedman test on two groups. * Kendall's W is a normalization of the Friedman statistic between 0 and 1. * 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

Post-hoc tests were proposed by Schaich and Hamerle (1984) as well as Conover (1971, 1980) in order to decide which groups are significantly different from each other, based upon the mean rank differences of the groups. These procedures are detailed in Bortz, Lienert and Boehnke (2000, p. 275). Eisinga, Heskes, Pelzer and Te Grotenhuis (2017) provide an exact test for pairwise comparison of Friedman rank sums, implemented in R. The Eisinga c.s. exact test offers a substantial improvement over available approximate tests, especially if the number of groups (k) is large and the number of blocks (n) is small. Not all statistical packages support post-hoc analysis for Friedman's test, but user-contributed code exists that provides these facilities (for example in
SPSS SPSS Statistics is a statistical software suite developed by IBM for data management, advanced analytics, multivariate analysis, business intelligence, and criminal investigation. Long produced by SPSS Inc., it was acquired by IBM in 2009. Versi ...
, and in R.). The R package titled PMCMRplus contains numerous non-parametric methods for post-hoc analysis after Friedman, including support for the Nemenyi test.


References


Further reading

* * * * {{DEFAULTSORT:Friedman Test Analysis of variance Statistical tests Milton Friedman Nonparametric statistics