Hypothesis testing is a framework for deciding whether data provides enough evidence against a default claim, the null hypothesis. You choose a test that fits your data, compute a test statistic, and get a p-value: the probability of seeing a result at least as extreme as yours if the null were true. Then you compare it with a significance level chosen in advance. The mechanics are short, but using them well means understanding Type I and Type II errors, statistical power, effect sizes, confidence intervals and the trap of running many tests until one comes out significant. Learnr builds a hypothesis testing course at your level in short, example-driven lessons.
How to learn Hypothesis Testing, step by step
- Understand sampling distributions first. Simulate drawing many samples from a population in a spreadsheet or Python and plot their means. Seeing how sample means spread out, and shrink in spread as samples grow, is the foundation every test rests on.
- Run a permutation test by hand. Take two small groups, shuffle the group labels thousands of times in code and see how often a difference as large as yours appears by chance. That proportion is a p-value you built yourself, which makes the idea click.
- Learn the standard tests and their assumptions. Practice one-sample, paired and two-sample t-tests, chi-square tests of independence and one-way ANOVA. For each, note what it assumes about independence, normality and variance, and know a nonparametric fallback like Mann-Whitney.
- Say exactly what a p-value means. A p-value is not the probability that the null is true. Write a one-sentence interpretation for each result you compute, and pair every p-value with a confidence interval and an effect size such as Cohen d.
- Plan sample size with power analysis. Before collecting data, decide the smallest effect you care about, your alpha and the power you want, then calculate the sample size needed. Underpowered studies miss real effects and exaggerate the ones they find.
- Guard against multiple testing and review. Learn Bonferroni and false discovery rate corrections, and preregister which tests you will run when it matters. Short Learnr lessons each day help you keep error types and test choices straight.
What you'll learn
- State null and alternative hypotheses for a real question
- Choose between t-tests, chi-square tests, ANOVA and nonparametric alternatives
- Interpret p-values, significance levels and confidence intervals correctly
- Explain Type I and Type II errors, power and how sample size affects them
- Report effect sizes and correct for multiple comparisons
How long does it take to learn Hypothesis Testing?
The core logic and common tests take about 3 to 6 weeks at 3 to 4 hours a week. Using power analysis, effect sizes and multiple comparison corrections confidently in real analysis typically takes a few more months of practice.
What you need before you start
Basic statistics, including mean, standard deviation and the normal distribution, plus comfortable arithmetic and some algebra. Using a spreadsheet, R or Python to run simulations makes the ideas much easier to see.
Common mistakes to avoid
- Interpreting a p-value as the probability that the null hypothesis is true, or treating a non-significant result as proof of no effect.
- Running many tests or peeking at results repeatedly and reporting only the significant one, which inflates false positives far beyond the stated alpha.
- Confusing statistical significance with practical importance. With a huge sample, a trivially small difference can produce a tiny p-value.
How Learnr builds your course
Type your topic
Tell Learnr you want to learn Hypothesis Testing, or get as specific as you like.
Get a personalized course
Learnr instantly builds a full Hypothesis Testing course tailored to your goal and skill level.
Learn and level up
Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.
Hypothesis Testing questions, answered
What does a significance level of 0.05 mean?
It means you accept a 5 in 100 chance of rejecting the null hypothesis when it is actually true. It is a convention chosen in advance, not a law, and some fields use stricter thresholds.
When should I use a one-tailed test?
Only when a difference in one direction is the sole result that matters and you decided that before seeing the data. Otherwise, use a two-tailed test, which is the standard default.
What is the difference between a t-test and ANOVA?
A t-test compares means of two groups. ANOVA compares means across three or more groups in one test, and a significant result is usually followed by post hoc tests to find which groups differ.
Explore more courses
More data and ai courses
- Learn Power Query
- Learn DAX
- Learn Excel Dashboards
- Learn SQL Window Functions
- Learn Google Analytics
- Learn Data Science
- Learn Excel
- Learn Artificial Intelligence
Ready to learn Hypothesis Testing?
Start your free, personalized Hypothesis Testing course in seconds. It will be typed in and ready when you get there.
Start learning Hypothesis TestingFree to start. No credit card.