Assignment: Hypothesis Testing
What is Hypothesis Testing?
Hypothesis testing is a statistical method used to make decisions or inferences about population
parameters based on sample data. It helps determine whether there is enough evidence to reject a
null hypothesis (H■) in favor of an alternative hypothesis (H■). Steps involved in hypothesis
testing: 1. Formulate the null hypothesis (H■) and alternative hypothesis (H■). 2. Select the level of
significance (α), usually 0.05 or 0.01. 3. Choose the appropriate test statistic (Z-test or T-test). 4.
Compute the test statistic value. 5. Compare the p-value or critical value and make a decision
(Reject or Fail to Reject H■).
Z-Test
The Z-test is used when the population variance is known, and the sample size is large (n > 30).
It compares the sample mean to the population mean to determine if there is a significant
difference. Formula:
Z = (X■ - µ) / (σ / √n) Where:
X■ = Sample Mean
µ = Population Mean
σ = Population Standard Deviation
n = Sample Size
T-Test
The T-test is used when the population variance is unknown, and the sample size is small (n < 30).
It helps test the hypothesis about the mean of a normally distributed population. Formula:
t = (X■ - µ) / (s / √n) Where:
X■ = Sample Mean
µ = Population Mean
s = Sample Standard Deviation
n = Sample Size Types of T-tests:
1. One-Sample T-test: Compares sample mean with population mean.
2. Independent Two-Sample T-test: Compares means of two independent groups.
3. Paired Sample T-test: Compares means from the same group at different times.
Conclusion:
Hypothesis testing is a fundamental concept in inferential statistics. It helps to make
evidence-based decisions about data. The Z-test and T-test are widely used techniques to compare
sample data with population parameters or between sample groups.