Probability and Statistics: Testing Hypothesis
Probability and Statistics: Testing Hypothesis
Testing Hypothesis
DBS&H, CEME-NUST
The mean lifetime of 100 bulbs produced by is 1570 hours with a σ =120
hours. Test the claim of company that average life time of bulb is 1600.
The mean lifetime of 100 bulbs produced by is 1570 hours with a σ =120
hours. Test the claim of company that average life time of bulb is 1600.
H0 : µ = 1600 and H1 : µ 6= 1600
The mean lifetime of 100 bulbs produced by is 1570 hours with a σ =120
hours. Test the claim of company that average life time of bulb is 1600.
H0 : µ = 1600 and H1 : µ 6= 1600
It is claimed that automobiles are driven on average more than 20,000 kilometers
per year. To test this claim
The mean lifetime of 100 bulbs produced by is 1570 hours with a σ =120
hours. Test the claim of company that average life time of bulb is 1600.
H0 : µ = 1600 and H1 : µ 6= 1600
It is claimed that automobiles are driven on average more than 20,000 kilometers
per year. To test this claim
H0 : µ = 20, 000 & H1 : µ > 20, 000
In such cases we say that the hypothesis has been rejected at a 0.05 level
of significance, which means that we could be wrong with probability 0.05.
Two tailed
The critical value divides the area under the probability distribution curve
in rejection region(s) and in non-rejection region.
If the significance level α, then the critical region will consist of all
values of Z which are
(i) less than −z α2 and greater than z α2 in case of two-tailed test;
Since 1.32 < 1.65, and is not in the critical region, the decision is to not
reject the null hypothesis.
Summarize the results. There
is not enough evidence to sup-
port the claim that assistant
professors earn more on aver-
age than $42,000 per year.
Dr. Yasir Ali ([email protected]) Probability and Statistics
The mean lifetime of 100 bulbs produced by is 1570 hours with a σ =120 hours.
Test the hypothesis µ = 1600 against the alternative hypothesis µ 6= 1600 (
µ <1600), using a level of significance of 0.05
X ± 1600
µ = 1600, σ = 120 and n = 100 gives z = = ±2.50
120/10
P−value
z }| {
P (z ≤ −2.5) + P (z ≥ 2.5) = 0.0124
P − value > α
Since the P-value is more than 0.001, the
decision is not to reject the null hypothesis.
X − 1600 X − 1600
gives zo = = −2.50 gives zo = = −2.50
120/10 120/10
P(−2.5 ≤ z ≤ 2.5) = 0.0124
Reject H0 if zo ∈
/ [−z α2 , z α2 ]
Accept H0 if zo ∈ [−z α2 , z α2 ] If P-value ≤ α, reject H0
If P-value > α, accept H0 .
Since −2.5 ∈ [−2.58, 2.58], we Since the P-value is more than
accept H0 at 0.001 level of 0.001, the decision is accept H0 .
significance.
Yes I will agree with the claim that automobiles are driven on average more
than 20,000 kilometers per year.
Dr. Yasir Ali ([email protected]) Probability and Statistics
To test the hypothesis that a coin is fair, using decision rules are adopted:
(1) Accept the hypothesis if the number of heads in a single sample of
100 tosses is between 40 and 60 inclusive,
(2) Reject the hypothesis otherwise.
(a) Find probability of rejecting the hypothesis when it is correct.
(b) Interpret graphically the decision rule and the result of part (a).
(c) Draw conclusions if 100 tosses yielded 53 heads? 60 heads?
The mean and standard deviation of the number of heads in 100 tosses are
1
√
given by µ = np = 100 2 = 50 and σ = npq = 5. As np > 5, nq > 5,
the normal approximation to the binomial distribution can be used.
On a continuous scale, between 40 and 60 heads inclusive is the same as
between 39.5 and 60.5 heads.
P (39.5 < X < 60.5) = P (−2.10 < Z < 2.10) = 0.9642
If a single sample of 100 tosses yields a z score between -2.10 and 2.10, we
accept the hypothesis; otherwise we reject the hypothesis and decide that
the coin is not fair.
The error made in rejecting the hypothesis when it should be accepted is
the Type I error of the decision rule; and the probability of making this
error, equal to 0.0358
Dr. Yasir Ali ([email protected]) Probability and Statistics
(c) According to the decision rule, we would have to accept the hypothesis
that the coin is fair in both cases. If only one more head had been
obtained, we would have rejected the hypothesis. This is what one
must face when any sharp line of division is used in making decisions.
First Method:
If the level of significance is 0.05, it means that non-rejection region area is
95% implies that −1.96 ≤ z ≤ 1.96.
(1) Accept the hypothesis that the coin is fair if −1.96 ≤ z ≤ 1.96.
(2) Reject the hypothesis otherwise.
√
−1.96 ≤ z ≤ 1.96 =⇒ 24.16 ≤ x ≤ 39.84, µ = np = 32, σ = npq = 4
(1) Accept the hypothesis that the coin is fair if the number of heads is
between 24.16 and 39.84, i.e., between 25 and 39 inclusive.
(2) Reject the hypothesis otherwise.
Thus, with probability 0.95, the number of heads will lie between
(1) Accept the hypothesis that the coin is fair if the number of heads is
between 24.16 and 39.84, i.e., between 25 and 39 inclusive.
(2) Reject the hypothesis otherwise.