- Source: 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 (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
{\textstyle n}
wine judges each rate
k
{\textstyle k}
different wines. Are any of the
k
{\textstyle k}
wines ranked consistently higher or lower than the others?
n
{\textstyle n}
welders each use
k
{\textstyle k}
welding torches, and the ensuing welds were rated on quality. Do any of the
k
{\textstyle 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
{
x
i
j
}
n
×
k
{\displaystyle \{x_{ij}\}_{n\times k}}
, that is, a matrix with
n
{\displaystyle n}
rows (the blocks),
k
{\displaystyle 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
i
j
}
n
×
k
{\displaystyle \{r_{ij}\}_{n\times k}}
where the entry
r
i
j
{\displaystyle r_{ij}}
is the rank of
x
i
j
{\displaystyle x_{ij}}
within block
i
{\displaystyle i}
.
Find the values
r
¯
⋅
j
=
1
n
∑
i
=
1
n
r
i
j
{\displaystyle {\bar {r}}_{\cdot j}={\frac {1}{n}}\sum _{i=1}^{n}{r_{ij}}}
The test statistic is given by
Q
=
12
n
k
(
k
+
1
)
∑
j
=
1
k
(
r
¯
⋅
j
−
k
+
1
2
)
2
{\displaystyle Q={\frac {12n}{k(k+1)}}\sum _{j=1}^{k}\left({\bar {r}}_{\cdot j}-{\frac {k+1}{2}}\right)^{2}}
. Note that the value of
Q
{\textstyle Q}
does need to be adjusted for tied values in the data.
Finally, when
n
{\textstyle n}
or
k
{\textstyle k}
is large (i.e.
n
>
15
{\textstyle n>15}
or
k
>
4
{\textstyle k>4}
), the probability distribution of
Q
{\textstyle Q}
can be approximated by that of a chi-squared distribution. In this case the p-value is given by
P
(
χ
k
−
1
2
≥
Q
)
{\displaystyle \mathbf {P} (\chi _{k-1}^{2}\geq Q)}
. If
n
{\textstyle n}
or
k
{\textstyle k}
is small, the approximation to chi-square becomes poor and the p-value should be obtained from tables of
Q
{\textstyle 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.
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
{\textstyle 0}
and
1
{\textstyle 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
{\displaystyle k}
) is large and the number of blocks (
n
{\displaystyle 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, and in R.). Also, there is a specialized package available in R containing numerous non-parametric methods for post-hoc analysis after Friedman.
References
Further reading
Daniel, Wayne W. (1990). "Friedman two-way analysis of variance by ranks". Applied Nonparametric Statistics (2nd ed.). Boston: PWS-Kent. pp. 262–74. ISBN 978-0-534-91976-4.
Kendall, M. G. (1970). Rank Correlation Methods (4th ed.). London: Charles Griffin. ISBN 978-0-85264-199-6.
Hollander, M.; Wolfe, D. A. (1973). Nonparametric Statistics. New York: J. Wiley. ISBN 978-0-471-40635-8.
Siegel, Sidney; Castellan, N. John Jr. (1988). Nonparametric Statistics for the Behavioral Sciences (2nd ed.). New York: McGraw-Hill. ISBN 978-0-07-100326-1.
Kata Kunci Pencarian:
- Milton Friedman
- Tes kehamilan
- Unistat
- Elon Musk
- Monetarisme
- Minitab
- Operasi Power Pack
- Statistika
- Staphylococcus aureus
- Teori relativitas
- Friedman test
- Rabbit test
- Vigenère cipher
- Nemenyi test
- Sign test
- Milton Friedman
- Durbin test
- Page's trend test
- Rabbit Test (film)
- Kruskal–Wallis test