Expand description
The studentized range distribution and Tukey’s honestly significant difference test (SciPy’s
studentized_range and tukey_hsd).
See the book entry Multivariate distributions and further tests.
Structs§
- Studentized
Range - The distribution of
Q = (max − min)/Sforkindependent standard normal deviates and an independentS = √(χ²_ν / ν)(SciPy’sstudentized_range(k, df)):F(q) = ∫₀^∞ f_S(s) W(qs) ds, with the distribution of the rangeW(w) = k ∫ φ(z) (Φ(z) − Φ(z − w))^{k−1} dzandf_S(s) = ν^{ν/2} s^{ν−1} e^{−νs²/2} / (Γ(ν/2) 2^{ν/2−1}). Both integrals are evaluated by composite Gauss-Legendre quadrature (the inner over|z| ≤ 8.5, the outer over the part ofsholding all but 10⁻¹⁷ of its mass);df = ∞gives the range of standard normals itself. - Tukey
HsdResult - The result of
tukey_hsd: entry(i, j)compares treatmentiwith treatmentj.
Functions§
- tukey_
hsd - Tukey’s honestly significant difference test of all pairwise differences of means (SciPy’s
tukey_hsd):|x̄_i − x̄_j| / se_ijagainst the studentized range withktreatments, wherese_ij = √(MSE (1/n_i + 1/n_j) / 2)with the pooled variance andN − kdegrees of freedom (the Tukey-Kramer form), or, withequal_var = false, the Games-Howell formse_ij = √((s_i²/n_i + s_j²/n_j)/2)with Welch’s degrees of freedom.
Type Aliases§
- Interval
Matrices - Lower and upper limits, as
k × kmatrices.