<Li> r _̄ = 1 n k ∑ i = 1 n ∑ j = 1 k r i j (\ displaystyle (\ bar (r)) = (\ frac (1) (nk)) \ sum _ (i = 1) ^ (n) \ sum _ (j = 1) ^ (k) r_ (ij)) </Li> <Li> S S t = n ∑ j = 1 k (r _̄ ⋅ j − r _̄) 2 (\ displaystyle SS_ (t) = n \ sum _ (j = 1) ^ (k) ((\ bar (r)) _ (\ cdot j) - (\ bar (r))) ^ (2)), </Li> <Li> S S e = 1 n (k − 1) ∑ i = 1 n ∑ j = 1 k (r i j − r _̄) 2 (\ displaystyle SS_ (e) = (\ frac (1) (n (k - 1))) \ sum _ (i = 1) ^ (n) \ sum _ (j = 1) ^ (k) (r_ (ij) - (\ bar (r))) ^ (2)) </Li> <Li> The test statistic is given by Q = S S t S S e (\ displaystyle 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 . </Li>

Friedman repeated measures analysis of variance on ranks