Two-sided hypothesis test 2026-10-14
A two-sided test detects departures in either direction from the null hypothesis, for example . With a continuous symmetric null statistic centred at zero, its p-value is . This is the usual coefficient test printed by Gaussian regression summaries, unlike a directional one-sided comparison.
Type I and type II errors Created 2026-09-24 Updated 2026-10-25
For a null hypothesis , a type I error rejects when it is true, while a type II error does not reject when the alternative is true. If a test does not reject on an event , their conditional probabilities are and . Nonrejection does not establish the truth of the null hypothesis.
Uniformly most powerful test for a gamma rate Created 2026-10-25 Updated 2026-10-31
For an independent statistical sample from a gamma distribution with known shape and unknown rate , test against . The alternative-to-null likelihood ratio for any larger rate is , where . This decreases in , so the Neyman-Pearson lemma gives one common lower-tail ordering for all alternatives.
Let be the unit-rate gamma distribution cumulative distribution function with shape . The uniformly most powerful test of exact test size rejects when , where . Its power function is displayed above. If , the sum has an exponential distribution, so and . Monotonicity of also makes this test valid and uniformly most powerful for the larger null hypothesis .
Welch's t-test Created 2026-10-18 Updated 2026-10-25
For two independent samples from approximately normal distributions, Welch's t-test compares their means without assuming equal unknown variances. The displayed test statistic uses sample variances . Under the equal-mean null hypothesis, its reference Student t-distribution has approximate statistical degrees of freedomA p-value from this approximation addresses the specified statistical error model; it cannot distinguish a material effect from an unmeasured experimenter bias when sample and experimenter are confounded.
Wilcoxon signed-rank test 2026-10-14
For independent paired observations, form differences . Assume the differences are identically distributed, continuous and symmetric about a location . Under the zero-location null hypothesis, the signs are independent fair signs conditional on their absolute values. Rank the absolute differences and add ranks with positive signs. A negative-location alternative rejects for small . Its exact conditional distribution is that of a sum of an independently selected subset of ranks, each of the subsets equally likely. Thus its mean is and its variance is . Symmetry is essential: a zero median alone does not justify this signed-rank null law. Zero differences are omitted in the usual version, and tied absolute differences receive average ranks.