Professional Documents
Culture Documents
Hypothesis Testing I
Hypothesis Testing I
T K Datta
Hypothesis Testing
Many problems in engineering require that we decide which of two competing claims or
statements about some parameter is true. The statements are called hypotheses, and the
decision-making procedure is called hypothesis testing. This is one of the most useful aspects
of statistical inference, because many types of decision making problems, tests, or experiments
in the engineering world can be formulated as hypothesis-testing problems. Furthermore, as we
will see, a very close connection exists between hypothesis testing and confidence intervals.
Statistical hypothesis testing and confidence interval estimation of parameters are the
fundamental methods used at the data analysis stage of a comparative experiment in which the
engineer is interested, for example, in comparing the mean of a population to a specified value.
Def: A statistical hypothesis is a statement about the parameters of one or more populations.
In hypothesis testing, we construct two hypotheses, known as ‘null hypothesis’ and ‘alternative
hypothesis’. Null hypothesis is denoted by Ho and the alternative hypothesis is denoted by H1.
These hypotheses are mutually exclusive. When we are testing on a parameter 𝜃, then generally
three possible null hypotheses are 𝜃 ≤ 𝜃0 , 𝜃 ≥ 𝜃0 , 𝜃 = 𝜃0 and the corresponding alternative
hypotheses are 𝜃 > 𝜃0 , 𝜃 < 𝜃0 , 𝜃 ≠ 𝜃0 . We write it as:
𝐻0 : 𝜃 ≤ 𝜃0
𝐻0 : 𝜃 ≥ 𝜃0
𝐻0 : 𝜃 = 𝜃0
AnS; a) C b) W c) W d) W e) W
1
Probability and Statistics -Hypothesis testing-I Dr. T K Datta
P(type II error) = β.
Sometimes, we use p-value approach to test in which critical region is not required.
When you are testing a hypothesis, the level of significance should be decided, if not given.
Ideally, it 5%, i.e. α = 0.05.
2
Probability and Statistics -Hypothesis testing-I Dr. T K Datta
Null hypothesis 𝐻0 : μ = μ0
𝑋̅−𝜇0
If the sample size is n, then the test statistic is 𝑍 =
𝜎/√𝑛
H1 CR p-value
𝑘−μ0 σ
= 𝑃(𝑧 > σ ) because 𝑋̅ has normal distribution with mean μ and sd .
√𝑛
√𝑛
3
Probability and Statistics -Hypothesis testing-I Dr. T K Datta
185−175
𝛼 = 𝑃(𝑥̅ > 185/ μ= 175) = 𝑃(𝑧 > 20 ) = 1 – Φ(1.58) = 1 - 0.942947 = 0.05705.
√10
185−185
= Φ( 20 ) = Φ(0) = 0.5.
√10
185−195
= Φ( 20 ) = Φ(-1.58) = 1 – Φ(1.58) = 0.05705.
√10
Solution:
a) It is right-tailed test.
180−175
p-value = 1- Φ(z0) = 1- Φ( 20 ) = 1 - Φ(0.791) = 1 – 0.7852 = 0.2148.
√10
4
Probability and Statistics -Hypothesis testing-I Dr. T K Datta
Solution:
Solution:
a) 4.85 ≤ 𝑥̅ ≤ 5.15
4.85−μ0 5.15−μ0
Or, ≤𝑧≤
𝜎/√𝑛 𝜎/√𝑛
5
Probability and Statistics -Hypothesis testing-I Dr. T K Datta
Solution:
H0: μ = 40
H1: μ > 40 (right-tailed test)
Given: σ = 1.25, 𝑥̅ = 40.5, n = 10.
a) CR is C = {Z > 𝑧0.05}= {Z > 1.645}
40.5−40
Zobs = = 1.26 which does not belong to C. So, H0 is accepted. It means
1.25/√10
we can’t support the claim.
b) P-value = 1 – Φ(1.26) = 1- 0.896165 = 0.103835.
Test Statistics:
6
Probability and Statistics -Hypothesis testing-I Dr. T K Datta