Professional Documents
Culture Documents
Fall-21
Definition:
• The null hypothesis, denoted by H0, is the claim that is initially
assumed to be true (the “prior belief” claim).
• The alternative hypothesis, denoted by Ha or H1, is the assertion that
is contradictory to H0.
• The null hypothesis will be rejected in favor of the alternative
hypothesis only if sample evidence suggests that H0 is false. If the
sample does not strongly contradict H0, we will continue to believe in
the plausibility of the null hypothesis.
• The two possible conclusions from a hypothesis testing analysis are
then reject H0 or fail to reject H0.
Department of Industrial Engineering
University of Engineering & Technology, Peshawar
• The alternative to the null hypothesis H0: θ = θ0 will look like one of
the following three assertions
• The null hypothesis will then be rejected if and only if the observed or
computed test statistic value falls in the rejection region.
1. Traditional Method
2. P-value Method
Note:
• For two-tailed test (non-directional), the alpha is split in half and placed
in each tail of a standard normal distribution.
• A critical value marks the cutoff for the rejection region.
H0 : μ 1 = μ 2
H1: μ1 ≠ μ2
α = 0.05
Degree of Freedom = n1 + n2 – 2 = 18
2 2
2
𝑛 1 − 1 𝑆1 + (𝑛 2 − 1)𝑆2 9 0.100 + 9(0.061)
𝑆𝑝 = = = 𝟎. 𝟎𝟖𝟏
𝑛 1 + 𝑛2 − 2 10 + 10 − 2
𝑆𝑝 = 𝟎. 𝟐𝟖𝟒
Department of Industrial Engineering
University of Engineering & Technology, Peshawar
tα/2, v = t0.025, 18 = 2.101 and –t0.025, 18 = t0.0975, 18 = -2.101
Note: The equal variance and normality assumptions are easy to check
using a normal probability plot.
α= 5% = 0.05
t0 = 2.7354
As 2.7354 > 1.746 we reject null hypothesis and conclude that the
two means are not equal.
H0: µ1 = µ0
• If the sample size is large enough that central limit theorem applies.
𝛼12 𝛼22
• 𝛼𝑋−𝑌 = + is standard deviation of 𝑋 − 𝑌.
𝑚 𝑛
• The larger the 𝑑𝑓 is, the more closely the t distribution approximates a
normal distribution.
• Department of Industrial Engineering
• University of Engineering & Technology, Peshawar
Use of t-Test vs Z-Test
Z-Test
• 𝜇 is known:
• 𝑀𝑥 is computed
• 𝜎𝑀 is known (is known)
t-Test
• 𝜇 is hypothesized or predicted (not computed and generally not
known): 𝑀𝑥 is computed
• 𝜎𝑀 is unknown (𝜎 is unknown) : 𝑆𝑀 is computed
• Degrees of freedom (dof) is computed as the one less than the
sample size (the denominator of the standard deviation): 𝑑𝑓 = 𝑛 − 1