Blog/Hypothesis Testing Basics

Statistics

Hypothesis Testing Basics

p-values, t-tests, and ANOVA

SK

Skari Team

Skari

July 2026·10 min read

Hypothesis Test

α = 0.05

If the test statistic lands in the shaded tail, the result is significant — reject the null.

critical

Almost every data question is really the same question: is what I'm seeing real, or could it have happened by chance? Conversions ticked up, one group scored higher, a metric moved — but samples wobble on their own. Hypothesis testing is the disciplined way to separate a genuine effect from ordinary noise.

Note

Hypothesis testing never proves an effect is real. It measures how surprising your data would be if there were no effect — and lets you act when that surprise crosses a threshold.

The Null and Alternative

Every test starts with two competing statements. The null hypothesis is the boring default: nothing is going on — the groups are equal, the change did nothing. The alternative is what you suspect: there is a difference.

HypothesisSays
Null (H₀)No effect — any difference is chance
Alternative (H₁)A real effect exists

The logic is deliberately conservative: you assume the null is true and ask whether the data is too surprising to believe it. You never "accept" the null — you either reject it or fail to reject it.

What a p-value Actually Means

The p-value is the probability of seeing data at least as extreme as yours if the null hypothesis were true. A small p-value means your result would be unlikely under "no effect," so the no-effect story starts to look implausible.

p-valueInterpretation
p < 0.05Statistically significant by the common convention
p ≈ 0.05Borderline — treat with caution
p > 0.05Not enough evidence to reject the null

Watch out

A p-value is not the probability that the null is true, and not the probability your result was luck. It's the chance of data this extreme assuming no effect. That distinction is where most misuse begins.

Significance Isn't Size

A tiny, meaningless difference can be "significant" with a big enough sample, and a large, important one can miss significance in a small study. That's why a p-value alone is never the whole answer.

  • Effect size: how big the difference actually is, in real units
  • Confidence interval: the plausible range for the true effect
  • Sample size: large samples make even trivial effects significant

Tip

Always report significance and effect size. "Significant" answers 'is it real?'; effect size answers 'does it matter?' — and only the second one runs your business.

Choosing the Test

SituationTest
Two group meanst-test
Three or more group meansANOVA
Two categorical variablesChi-square
Skewed data / small samplesNonparametric (Mann-Whitney, Kruskal-Wallis)

Each test also carries assumptions — normality, equal variances, independence. Break them and the p-value is unreliable, which is why checking assumptions is part of the test, not an afterthought.

Two Ways to Be Wrong

ErrorMeaning
Type I (false positive)Reject a true null — see an effect that isn't there
Type II (false negative)Miss a real effect that is there

Watch out

Running many tests until one is "significant" (p-hacking) manufactures Type I errors. Every extra test is another roll of the dice — decide your test before you look, not after.

Hypothesis Testing in the SKARI Statistical Lab

SKARI's Statistical Lab runs the right test and guards the assumptions: pick your variables and it selects, checks, and interprets — so you get significance, effect size, and a plain-language read together.

  • One-sample, independent, and paired t-tests; one-way and two-way ANOVA
  • Crosstab and chi-square for categorical relationships
  • Automatic normality and variance checks, with nonparametric alternatives (Mann-Whitney, Kruskal-Wallis) when they fail
  • Effect size and interpretation alongside the p-value

Takeaway

The assumptions are checked for you and the effect size sits next to the p-value — so you read 'is it real and does it matter?', not a lone number to over-trust.

Frequently Asked Questions

Is p < 0.05 a law?

No — it's a convention. The right threshold depends on the cost of a false positive; some fields use 0.01 or stricter.

Does a big p-value prove no effect?

No — it means you lack evidence for one. Absence of evidence isn't evidence of absence, especially in small samples.

What's the single most important habit?

Decide your hypothesis and test before seeing the data, and always report effect size beside the p-value.

Key Takeaways

Assumes

H₀

no effect

Measures

p-value

surprise under H₀

Also needs

Effect

does it matter?

Threshold

0.05

a convention

Hypothesis testing keeps you from mistaking noise for signal. Assume nothing is happening, measure how surprising your data would be, and pair significance with effect size before you call anything a win.

Takeaway

Ask 'how surprising would this be if nothing were going on?' — and read the answer alongside how big the effect is, never on its own.

The t-test

Comparing two means

Confidence Intervals

The range behind the estimate

ANOVA

Three or more groups at once