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.
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.
To understand Hypothesis Testing, you must know these key terms:
Here are the steps of a Hypothesis Test:
Commonly used values are 0.05, 0.01, or 0.10.
Based on sample size, type of data, and test objective.
Apply the formula based on the test selected.
Determine the likelihood of observing the sample result.
If p-value ≤ α, reject H₀; otherwise, fail to reject H₀.
Clearly interpret the statistical decision in context.
The Hypothesis Testing formula varies based on the test type. A common formula for a z-test is:
Where:
For a t-test (when population standard deviation is unknown):
Where:
There are two main types of Hypothesis Testing in Statistics:
What are the Two Types of Hypothesis Testing?
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:
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:
Given:
Test Statistic (Z-test):
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.
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.
Solution:
Given:
Test Statistic (T-test):
Degrees of freedom = 16 - 1 = 15
Critical t-value at α = 0.05 (two-tailed, df = 15) ≈ ±2.131
Decision:
|-2| < 2.131 → Fail to reject H₀.
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.
Solution:
Sample proportion
Test Statistic:
Critical z-value at α = 0.05 (two-tailed): ±1.96
Decision:
|2.74| > 1.96 → Reject H₀.
Conclusion: There is significant evidence that the proportion differs from 40%.
Example 5: A researcher wants to test whether gender and preference for a product are independent. The observed data:
Test at 5% significance level.
Solution:
Expected frequencies:
Chi-square statistic:
Degrees of freedom = (2 - 1)(2 - 1) = 1
Critical value at α = 0.05, df = 1 → 3.841
Decision:
4 > 3.841 → Reject H₀.
Conclusion: Gender and product preference are not independent.
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:
Test for independence at 5% significance level.
(Session 2025 - 26)