It’s a statistical method to evaluate assumptions about a population based on sample data.
Define hypotheses Set significance level Select the test Compute test statistic Calculate p-value Make decision Draw conclusion
Parametric Testing and Non-Parametric Testing
Join ALLEN!
(Session 2026 - 27)
Choose class
Choose your goal
Preferred Mode
Choose State
Hypothesis Testing in Statistics
Definition
Hypothesis Testing in Statistics is a method used to make decisions or inferences about population parameters based on sample data. It helps to determine whether there is enough statistical evidence to support a certain belief (hypothesis) about a population. In simple terms, it’s a technique to test assumptions using statistical data.
1.0Hypothesis Testing in Statistics Meaning
The meaning of Hypothesis Testing revolves around verifying claims or ideas regarding a population. This is done by collecting sample data, applying statistical techniques, and then deciding whether to accept or reject a hypothesis.
2.0Understanding Hypothesis Testing
To understand Hypothesis Testing, you must know these key terms:
Null Hypothesis (H₀): The default assumption stating no effect or no difference.
Alternative Hypothesis (H₁ or Ha): The statement we aim to test, suggesting an effect or difference exists.
Significance Level (α): The probability of rejecting the null hypothesis when it is actually true, usually set at 0.05.
Test Statistic: A value calculated from the sample data, which is compared against critical values to make decisions.
p-value: The probability of obtaining test results at least as extreme as the observed results, under the assumption that the null hypothesis is correct.
3.0Hypothesis Testing Steps
Here are the steps of a Hypothesis Test:
State the Hypotheses:
Null Hypothesis (H₀)
Alternative Hypothesis (H₁)
Set the Significance Level (α):
Commonly used values are 0.05, 0.01, or 0.10.
Choose the Appropriate Test:
Based on sample size, type of data, and test objective.
Compute the Test Statistic:
Apply the formula based on the test selected.
Calculate the p-value or Critical Value:
Determine the likelihood of observing the sample result.
Make the Decision:
If p-value ≤ α, reject H₀; otherwise, fail to reject H₀.
State the Conclusion:
Clearly interpret the statistical decision in context.
4.0Hypothesis Testing in Statistics Formula
The Hypothesis Testing formula varies based on the test type. A common formula for a z-test is:
z=σ/nxˉ−μ
Where:
= sample mean
μ = population mean
σ = population standard deviation
n = sample size
For a t-test (when population standard deviation is unknown):
t=s/nxˉ−μ
Where:
s = sample standard deviation
5.0Hypothesis Testing Types
There are two main types of Hypothesis Testing in Statistics:
Parametric Tests (assume data follows a specific distribution)
Z-Test
T-Test
ANOVA
Chi-Square Test (for variances)
Non-Parametric Tests (distribution-free)
Mann-Whitney U Test
Wilcoxon Signed-Rank Test
Kruskal-Wallis Test
What are the Two Types of Hypothesis Testing?
One-tailed Test: Tests for effect in one direction.
Two-tailed Test: Tests for effect in both directions (more common).
6.0Solved Examples on Hypothesis Testing in Statistics
Example 1: A company claims its battery lasts 500 hours. A sample of 36 batteries has an average lifespan of 485 hours with a standard deviation of 60 hours. Test at the 5% significance level whether the claim is valid.
Solution:
Null Hypothesis (H₀): μ = 500
Alternative Hypothesis (H₁): μ ≠ 500
Given:
, , s = 60, n = 36
Using t-test formula:
Degrees of freedom = 36 - 1 = 35
Critical t-value (two-tailed, α = 0.05) ≈ ±2.030
Since -1.5 lies between -2.030 and 2.030, we fail to reject H₀.
Conclusion: There’s insufficient evidence to reject the company's claim.
Example 2: A company claims that the average weight of its product is 150 grams. A sample of 49 items gives a mean of 152 grams with a standard deviation of 5 grams. Test the claim at 5% significance level.
Solution:
Null Hypothesis (H₀): μ = 150
Alternative Hypothesis (H₁): μ ≠ 150 (Two-tailed test)
Given:
xˉ=152,μ=150,σ=5,n=49
Test Statistic (Z-test):
z=σ/nxˉ−μz=5/49152−150z=5/72=52×7=2.8
Critical Z-values for α = 0.05 (two-tailed): ±1.96
Decision: |2.8| > 1.96 → Reject H₀.
Conclusion: The claim is not valid; the average weight differs from 150 grams.
t=60/36485−500=10−15=−1.5
Example 3: The average lifespan of bulbs produced by a factory is claimed to be 1200 hours. A sample of 16 bulbs has a mean lifespan of 1150 hours with a standard deviation of 100 hours. Test at 5% significance level.
Conclusion: No significant evidence to reject the factory's claim.
Example 4: In a city, it is believed that 40% of people prefer public transport. A survey of 500 people shows that 230 prefer public transport. Test the belief at 5% significance level.
Conclusion: Gender and product preference are not independent.
7.0Practice Questions on Hypothesis Testing in Statistics
Question 1: The mean score of students in a school is 68 with a standard deviation of 10. A sample of 36 students has a mean of 70. Test if the mean score is significantly different at 5% significance level.
Question 2: A shopkeeper claims that 30% of customers buy product A. A random sample of 400 customers showed that 140 customers bought product A. Test the claim at 1% significance level.
Question 3: A manufacturer claims the average lifetime of a machine part is 2000 hours. A sample of 25 parts gives a mean of 1950 hours with a standard deviation of 120 hours. Test the claim at 5% significance level.
Question 4: In a survey, 70% of people said they prefer online shopping. A sample of 150 people showed that 95 people prefer online shopping. Test if this result differs from the survey at 5% level.
Question 5: A school wants to know whether there is an association between class level (junior or senior) and participation in sports. The observed data is:
Participate
Not Participate
Total
Junior
25
15
40
Senior
20
30
50
Total
45
45
90
Test for independence at 5% significance level.
Hypothesis Testing cnt
1.0Hypothesis Testing in Statistics Meaning
2.0Understanding Hypothesis Testing
3.0Hypothesis Testing Steps
4.0Hypothesis Testing in Statistics Formula
5.0Hypothesis Testing Types
6.0Solved Examples on Hypothesis Testing in Statistics
7.0Practice Questions on Hypothesis Testing in Statistics