Hypothesis Testing- Clear Examples of Null and Alternative Hypotheses
What Hypothesis Testing Actually Is
Let's cut through the academic nonsense. Hypothesis testing is a statistical method used to decide whether the evidence in your data is strong enough to reject a claim you've made about a population. That's it. Nothing magical, nothing complicated.
You start with an assumption (the null hypothesis), collect data, and then determine if that data gives you a good reason to believe your assumption is wrong. If it does, you reject the null in favor of the alternative. If it doesn't, you fail to reject the null.
Most textbooks make this sound like rocket science. It isn't. The confusion comes from people not understanding what goes into each hypothesis. Let's fix that.
The Null Hypothesis (H₀)
The null hypothesis is the default assumption. It states there's no effect, no difference, or no relationship in what you're studying. Think of it as the "nothing changed" or "nothing special here" statement.
Researchers usually want to disprove the null. That's the whole point—you gather evidence hoping to show the null is false.
What Null Hypotheses Look Like
- A new drug has no effect on blood pressure
- The average height of men equals the average height of women
- Website load time has no relationship with bounce rate
- The coin is fair—50% heads, 50% tails
The null hypothesis always includes an equality sign (=, ≤, or ≥). It claims the status quo is true until proven otherwise.
The Alternative Hypothesis (H₁ or Ha)
The alternative hypothesis is what you're actually trying to prove. It states there IS an effect, a difference, or a relationship. This is the exciting part of research—it's what gets published and cited.
The alternative hypothesis can be one-sided (you only care about one direction) or two-sided (you care about any difference, positive or negative).
What Alternative Hypotheses Look Like
- A new drug lowers blood pressure
- Men are taller than women on average
- Faster website load times decrease bounce rate
- The coin is unfair—more than 50% heads
The alternative hypothesis uses ≠, <, or > signs. No equality allowed here.
Null vs Alternative: The Key Differences
Here's where people get tangled up. The null and alternative aren't just two ways of saying the same thing. They have different jobs.
- Null hypothesis assumes nothing changed. Alternative assumes something did.
- Null is what you test against. Alternative is what you hope is true.
- Null uses equality (=). Alternative uses inequality (≠, <, >).
- You either reject the null or fail to reject it. You never "accept" the alternative.
That last point trips up a lot of students. In hypothesis testing, you're never proving the alternative is true. You're just proving the null is unlikely enough to reject. Semantics matter here.
Real-World Examples That Actually Make Sense
Enough abstract definitions. Let's look at actual hypotheses in context.
Example 1: A/B Testing a Website Button
Your company changed the "Buy Now" button from green to red. Marketing claims it will increase conversions.
Null hypothesis (H₀): The conversion rate is the same for green and red buttons (conversion rate_green = conversion rate_red)
Alternative hypothesis (H₁): The conversion rate is different for red buttons (conversion rate_green ≠ conversion rate_red)
You run the test, collect data, and decide if the difference is statistically significant.
Example 2: Testing a New Teaching Method
A school claims their new math curriculum improves test scores.
Null hypothesis (H₀): The new curriculum has no effect on test scores (μ_new = μ_old, or μ_new ≤ μ_old)
Alternative hypothesis (H₁): The new curriculum improves test scores (μ_new > μ_old)
This is a one-tailed test because you're only interested in improvement, not a decrease.
Example 3: Quality Control at a Factory
A machine fills cereal boxes. The company claims it fills boxes with exactly 500g on average.
Null hypothesis (H₀): The mean weight is 500g (μ = 500)
Alternative hypothesis (H₁): The mean weight is not 500g (μ ≠ 500)
This is a two-tailed test. You care about both underfilling AND overfilling.
One-Tailed vs Two-Tailed Tests
Choosing between these determines how you analyze your data. Pick wrong, and your results are meaningless.
Two-tailed test: You're testing for any difference in either direction. Use this when you don't know which side matters.
One-tailed test: You're only interested in one direction. Use this when you have a strong reason to expect change in a specific direction only.
When to Use Each
| Scenario | Test Type | Why |
|---|---|---|
| Does a drug work differently? | Two-tailed | Could work or harm |
| Does a drug lower blood pressure? | One-tailed | Only interested in decrease |
| Is the new process faster? | One-tailed | Only care if it's faster |
| Has anything changed? | Two-tailed | Any direction matters |
One-tailed tests are more powerful (easier to find significance) but require justification. Don't use them just because you want significant results faster. That's p-hacking.
Common Mistakes That Ruin Your Analysis
These errors show up constantly. Avoid them.
- Writing hypotheses that aren't mutually exclusive. H₀ and H₁ must cover all possibilities.
- Using "prove" or "accept" language. You never prove anything. You reject or fail to reject.
- Reversing the roles. The alternative is what you want to be true, not what you start with.
- Ignoring the significance level (alpha). Pick it before you collect data. 0.05 is standard, not a suggestion.
- One-tailed tests without justification. If you can't explain why you only care about one direction, use two-tailed.
How to Set Up Your Hypothesis Test
Follow these steps in order. Skipping steps is how you get meaningless results.
Step 1: State Your Question
What are you trying to find out? Write it in plain English first.
Step 2: Choose Your Alpha Level
Usually 0.05. This is your threshold for "unlikely enough to reject." Lower alpha = stricter standards.
Step 3: Write the Null Hypothesis
Start with "There is no difference/effect/relationship." Convert this to mathematical notation using =, ≤, or ≥.
Step 4: Write the Alternative Hypothesis
State what you expect to find. Use ≠, <, or >. This determines whether your test is one or two-tailed.
Step 5: Collect Data
Do this before analyzing. Don't peek at results and adjust your alpha.
Step 6: Calculate Test Statistic
Run the appropriate test (t-test, z-test, chi-square, etc.). Match the test to your data type.
Step 7: Make Your Decision
Compare your p-value to alpha. If p < alpha, reject H₀. If p ≥ alpha, fail to reject H₀.
Step 8: Interpret Results
Report what this means in context. "We reject the null at the 0.05 level" is the correct phrasing. Not "the alternative is true."
Quick Reference Table
| Symbol | Meaning | Used In |
|---|---|---|
| H₀ | Null hypothesis | Always |
| H₁ or Ha | Alternative hypothesis | Always |
| α (alpha) | Significance level | Your threshold |
| p | P-value | Probability of your data given H₀ is true |
| β (beta) | Probability of Type II error | False negative rate |
What Happens If You Get It Wrong
Two types of errors exist. Know them.
Type I Error: You reject H₀ when it's actually true. This is a false positive. Your alpha level IS this error rate.
Type II Error: You fail to reject H₀ when it's actually false. This is a false negative. This is harder to control and depends on sample size and effect size.
You can reduce both errors by increasing sample size. That's the only real lever you have once you've set your alpha.
The Bottom Line
Hypothesis testing isn't complicated. You have a null (nothing is happening), an alternative (something is happening), and a decision rule based on probability. That's the whole framework.
Write clear hypotheses. Pick your alpha before collecting data. Choose your test based on your data type and question. Report results accurately—reject or fail to reject, nothing else.
Most of the confusion around hypothesis testing comes from people trying to prove the alternative hypothesis directly. You can't. You can only reject the null with enough evidence. That's the game. Play it honestly.