World Library  
Flag as Inappropriate
Email this Article

Friedman test

Article Id: WHEBN0003175261
Reproduction Date:

Title: Friedman test  
Author: World Heritage Encyclopedia
Language: English
Subject: Milton Friedman, Durbin test, Sign test, Infobox economist/testcases, Kendall's W
Collection: Milton Friedman, Nonparametric Statistics, Statistical Tests
Publisher: World Heritage Encyclopedia

Friedman test

The Friedman test is a non-parametric statistical test developed by Milton Friedman.[1][2][3] 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 (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 wines ranked consistently higher or lower than the others?
  • n wines are each rated by k different judges. Are the judges' ratings consistent with each other?
  • n welders each use k 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 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.

Friedman test is widely supported by many statistical software packages.


  • Method 1
  • Related tests 2
  • Post hoc analysis 3
  • References 4
  • Further reading 5


  1. Given data \{x_{ij}\}_{n\times k}, that is, a matrix 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 \{r_{ij}\}_{n \times k} where the entry r_{ij} is the rank of x_{ij} within block i.
  2. Find the values:
    • \bar{r}_{\cdot j} = \frac{1}{n} \sum_{i=1}^n {r_{ij}}
    • \bar{r} = \frac{1}{nk}\sum_{i=1}^n \sum_{j=1}^k r_{ij}
    • SS_t = n\sum_{j=1}^k (\bar{r}_{\cdot j} - \bar{r})^2,
    • SS_e = \frac{1}{n(k-1)} \sum_{i=1}^n \sum_{j=1}^k (r_{ij} - \bar{r})^2
  3. The test statistic is given by Q = \frac{SS_t}{SS_e}. Note that the value of Q as computed above does not need to be adjusted for tied values in the data.
  4. Finally, when n or k is large (i.e. n > 15 or k > 4), the probability distribution of Q can be approximated by that of a chi-squared distribution. In this case the p-value is given by \mathbf{P}(\chi^2_{k-1} \ge Q). If n or k is small, the approximation to chi-square becomes poor and the p-value should be obtained from tables of Q specially prepared for the Friedman test. If the p-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.
  • 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

Post hoc analysis

Post-hoc tests were proposed by Schaich and Hamerle (1984)[4] as well as Conover (1971, 1980)[5] 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, pp. 275).[6]

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,[7] and in R.[8])


  1. ^  
  2. ^  
  3. ^  
  4. ^ Schaich, E. & Hamerle, A. (1984). Verteilungsfreie statistische Prüfverfahren. Berlin: Springer. ISBN 3-540-13776-9.
  5. ^ Conover, W. J. (1971, 1980). Practical nonparametric statistics. New York: Wiley. ISBN 0-471-16851-3.
  6. ^ Bortz, J., Lienert, G. & Boehnke, K. (2000). Verteilungsfreie Methoden in der Biostatistik. Berlin: Springer. ISBN 3-540-67590-6.
  7. ^
  8. ^

Further reading

  • Daniel, Wayne W. (1990). "Friedman two-way analysis of variance by ranks". Applied Nonparametric Statistics (2nd ed.). Boston: PWS-Kent. pp. 262–274.  
  • Hollander, M.; Wolfe, D. A. (1973). Nonparametric Statistics. New York: J. Wiley.  
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.