ГоловнаСтаттіСтатистика

Student’s t-Test: Визначення, чи є Різниця Реальною

Одновимірний, двовимірний та парний тести Student'а всі відповідають одному й тому ж питанню — чи є ця різниця більшою за шум вибірки? — з використанням розподілу, спеціально розробленого для малих вибірок.

mysimulator teamОновлено — червень 2026≈ 7 хв читання▶ Відкрити симуляцію

Understanding the Distribution of Sample Means

The Central Limit Theorem (CLT) is a cornerstone of statistics, providing a fundamental understanding of how sample means are distributed. It states that regardless of the shape of the original population distribution – whether it’s normal, uniform, exponential, or any other – the distribution of sample means obtained from repeated random sampling will approach a normal distribution as the sample size increases.

жива демонстрація · пов'язана симуляція● LIVE

One-sample, two-sample, paired: three different questions

The one-sample t-test compares a sample mean against a fixed known value. The two-sample (independent) t-test compares the means of two separate, unrelated groups. The paired t-test compares two measurements taken on the same subjects (before/after, or matched pairs), which is really a one-sample test run on the differences — pairing removes the between-subject variability that would otherwise drown out a real effect, so it is more powerful whenever the pairing is genuine.

one-sample:   t = (x̄ − μ₀) / (s / √n)
two-sample:   t = (x̄₁ − x̄₂) / SE(x̄₁ − x̄₂)
paired:       t = d̄ / (s_d / √n)          d = paired differences

degrees of freedom (Welch, unequal variance):
df ≈ (s₁²/n₁ + s₂²/n₂)² / [ (s₁²/n₁)²/(n₁−1) + (s₂²/n₂)²/(n₂−1) ]

Why the t-distribution has fatter tails than the normal

When the sample size is large, the sample standard deviation s is a very reliable estimate of the true population deviation σ, and the t-distribution converges to the standard normal. When n is small, s itself is noisy — sometimes it happens to underestimate the true spread, which inflates the t-statistic and would make the normal distribution declare significance too often. The t-distribution’s fatter tails exist precisely to correct for that extra uncertainty in estimating σ from a small sample; as degrees of freedom (roughly, sample size minus the number of means already estimated) increase, the tails shrink back toward the normal curve.

p-values and Cohen’s d are answering different questions

The p-value is the probability, assuming there is truly no effect (the null hypothesis), of seeing a t-statistic at least as extreme as the one observed. A small p-value is evidence against the null, not a measure of how large or important the effect is — a tiny, practically meaningless difference can still produce a small p-value if the sample size is large enough. Cohen’s d, the standardized effect size (the mean difference divided by the pooled standard deviation), answers the separate question of how big the effect actually is in units of natural variability, independent of sample size. Reporting both is standard practice precisely because statistical significance and practical importance are not the same thing.

The assumptions worth knowing

The classical t-test assumes the underlying data (or the differences, for a paired test) are approximately normally distributed, though the test is fairly robust to mild violations once n is reasonably large, thanks again to the central limit theorem. The two-sample version further assumes either equal variances (the pooled/Student’s version) or uses Welch’s correction for unequal variances and unequal sample sizes, which is now the more commonly recommended default because it does not require an assumption that is often untrue and rarely tested.

Frequently asked questions

Коли слід використовувати парний тест замість двовимірної перевірки?

Використовуйте парний тест, коли обидва вимірювання походять з одних і тих самих суб'єктів або зіставлених одиниць, наприклад, показники до та після. Зіставлення усуває міжсуб’єктну варіацію з порівняння, що зазвичай робить тест значно чутливішим до реального ефекту, ніж якщо б обидві групи вважалися незалежними.

Чи означає мале значення p-value, що ефект великий або важливий?

Ні. Значення p-value лише вимірює наскільки несподіваними були б дані, якщо б насправді не було жодного ефекту; воно сильно залежить від розміру вибірки. Дуже велика вибірка може дати дуже мале значення p-value для практично незначної різниці, тому що саме з цієї причини повідомляються показники розміру ефекту, такі як коефіцієнт Коhena d, разом із ним.

Чому розподіл t виглядає відмінно від нормального розподілу?

Тому що з невеликою вибіркою стандартне відхилення само по собі оцінюється з помилкою, додаючи додаткову невизначеність за межі того, що враховує нормальний розподіл. Розподіл t має більш товсті хвости, щоб відобразити це, і коли зростають ступені свободи з більшими вибірками, він сходиться до стандартної нормальної кривої.

Спробуйте наживо

Усе, що вище, працює прямо у вашому браузері — відкрийте Student's t-Test і змінюйте параметри під час роботи. Нічого не встановлюється, нічого не завантажується на сервер, уся модель живе в одній вкладці.

▶ Відкрити симуляцію Student's t-Test

Що ви знайшли?

Додати кроки відтворення (опційно)