Professional Documents
Culture Documents
Ex Hypothesistest
Ex Hypothesistest
Soln:
p(x)
0.3
0.2
=.03339
0.1
0 1 2 3 4 5 6 7 8 25
Graph of p(x) for n = 25 and p = .10, i.e. if the null hypothesis is true.
Test statistic: x
Rejection region: x 6
25
= (P x 6 if in fact p = .10) = p(x)
x=6
= 1 - p(x)
0
= 1- 0.96661
= 0.03339
Hence, we say that the null hypothesis, p = .10, is being tested at the = .03339 level
of significance.
b) The probability that we will fail to reject H0, is equal to the probability that x = 0, 1,
2, 3, 4, and 5, i.e., the probability that x does not fall in the rejection region.
5
= P(x 5 if in fact p = .2) = p(x) for n = 25 and p = 0.2
x=0
= 0.6167
p(x)
0.2
= .6167
0.1
0 1 2 3 4 5 6 7 8 9 10 25
Graph of p(x) for n = 25 and p = .20, i.e. if the null hypothesis is true.
c) The probability that we will fail to reject H0, is equal to the probability that x = 0, 1,
2, 3, 4, and 5, i.e., the probability that x does not fall in the rejection region.
5
= P(x 5 if in fact p = .4) = p(x) for n = 25 and p = 0.4
x=0
= 0.02936
p(x)
0.2
= .02936
0.1
1 5 6 7 8 9 10 11 12 13 14 15
Graph of p(x) for n = 25 and p = .40, i.e. if the null hypothesis is true.
Examples:
4/308) The proportion of adults living in a small town who are college graduates is
estimated to be p = 0.3. To test this hypothesis, a random sample of 15 adults is
selected. If the number of college graduates in our sample is anywhere from 2 to 7, we
shall accept the null hypothesis that p = 0.3; otherwise, we shall conclude that p 0.3;
a) Evaluate assuming that p = 0.3.
b) Evaluate for the alternative p = 0.2 and p = 0.4.
c) Is this a good test procedure?
Soln:
p(x)
0.2
= .08528
0.1
0 1 2 3 4 5 6 7 8 9 10 25
Graph of p(x) for n = 15 and p = .30, i.e. if the null hypothesis is true.
Test statistic: x
Rejection region: x < 2 and x > 7
Hence, we say that the null hypothesis, p = .30, is being tested at the = .08528 level
of significance.
b-1)
p(x)
0.2
= .8286
0.1
0 1 2 3 4 5 6 7 8 9 10 25
@p = .20
7
= P( 2 x 7 if in fact p = .2) = p(x) for n = 15 and p = 0.2
x=2
= 0.8286
b-2)
p(x)
0.2
= .7817
0.1
0 1 2 3 4 5 6 7 8 9 10 25
@p = .40
7
= P( 2 x 7 if in fact p = .4) = p(x) for n = 15 and p = 0.4
x=2
= 0.7817
c) no
14/309) A manufacturer has developed a new fishing line, which he claims has a mean
breaking strength of 15 kilograms with a standard deviation of 0.5 kilogram. To test
the hypothesis that = 15 kilograms against the alternative that < 15 kilograms, a
random sample of 50 lines will be tested. The critical region is defined to bex < 14.9.
a) Find the probability of committing a type I error when H0 is true.
b) Evaluate for the alternatives = 14.8 and = 14.9 kilograms.
Soln:
Given: n = 50 lines, = 15 kg, = 0.5 kg
14.9 =15
__
z =(x - 0)/(/n) = (14.9 15)/ (0.5/50) = -1.414
b) @ = 14.8
=14.8 14.9 15
__
z = (14.9 14.8)/ 0.5/50 = 1.414
@ = 14.9
= 14.9 15
15/309) A soft-drink machine at the Longhorn Steak House is regulated so that the
amount of drink dispensed is approximately normally distributed with a mean of 200
milliliters and a standard deviation of 15 milliliters. The machine is checked
periodically by taking a sample of 9 drinks and computing the average content. Ifx
falls in the interval 191 <x < 209, the machine is thought to be operating
satisfactorily; otherwise, we conclude that 200 milliliters.
a) Find the probability of committing a type I error when = 200 milliliters.
b) Find the probability of committing a type II error when = 215 milliliters.
Soln:
Given: n = 9 drinks, = 200 ml, = 15 ml
/2
/2
z =(x - 0)/(/n) = 0
= P(x < 191 when = 200) + P(x > 209 when = 200)
z1 = (191 200)/ 15/9 = -1.8
z2 = (209 200)/ 15/9 = 1.8
b. A type II error will result when the sample mean x falls between 191 and 209
when H1 is true.
= P(-4.8 Z -1.2)
= P(Z < -1.2) P(Z < -4.8)
= 0.1151 0.0000
= 0.1151
1/329) An electrical firm manufactures light bulbs that have a length of life that is
approximately normally distributed with a mean of 800 hours and a standard deviation
of 40 hours. Test the hypothesis that = 800 hours against the alternative 800
hours if a random sample of 30 bulbs has an average life of 788 hours. Use a 0.04
level of significance.
Soln:
Hypothesis: H0: = 800
H1: 800
7/330) Test the hypothesis that the average content of containers of a particular
lubricant is 10 liters if the contents of a random sample of 10 containers are 10.2, 9.7,
10.1, 10.3, 10.1, 9.8, 9.9, 10.4, 10.3, and 9.8 liters. Use a 0.01 level of significance and
assume that the distribution of contents is normal.
Soln:
Hypothesis: H0: = 10
H1: 10
10.2+9.7+10.1+10.3+10.1+9.8+9.9+10.4+10.3+9.8
x = ---------------------------------------------------------------
10
x = 10.06
10
s2 = (xi -x)2/(n-1) = 0.544/9 = 0.0604
i=1
s = 0.246
13/330) A manufacturer claims that the average tensile strength of thread A exceeds
the average tensile strength of thread B by at least 12 kilograms. To test his claim, 50
pieces of each type of thread are tested under similar conditions. Type A thread had an
average tensile strength of 86.7 kilograms with a standard deviation of 6.28 kilograms,
while type B thread had an average tensile strength of 77.8 kilograms with a standard
deviation of 5.61 kilograms. Test the manufacturers claim using a 0.05 level of
significance.
Soln:
Given:
Thread A Thread B
No. of samples 50 50
x 86.3 kg 77.8 kg
6.28 kg 5.61 kg
Hypothesis: H0: A - B = 12
H1: A - B < 12
20/331) A UCLA researcher claims that the average life span of mice can
be extended by as much as 8 months when the calories in their food are
reduced by approximately 40% from the time they are weaned. The
restricted diets are enriched to normal levels by vitamins and protein.
Suppose that a random sample of 10 mice are fed a normal diet and live an
average life span of 32.1 months with a standard deviation of 3.2 months,
while a random sample of 15 mice are fed the restricted diet and live an
average life span of 37.6 months with a standard deviation of 2.8 months.
Test the hypothesis at the 0.05 level of significance that the average life
span of mice on this restricted diet is increased by 8 months against the
alternative that the increase is less than 8 months. Assume the distributions
of life spans for the regular and restricted diets are approximately normal
with equal variances.
Given:
Normal diet Restricted diet
n1 = 10 n2 = 15
s2p = 8.779
sp = 2.963
(x2 -x1) 8 (37.6 32.1) - 8
t = ------------------------ = --------------------------- = -2.067
sp 1/n1 + 1/n2 2.963 1/10 + 1/15
21/331) The following data represent the running times of films produced
by 2 motion-picture companies:
Test the hypothesis that the average running time of films produced by
company 2 exceeds the average running time of films produced by
company 1 by 10 minutes against the one-sided alternative that the
difference is more than 10 minutes. Use a 0.1 level of significance and
assume the distributions of times to be approximately normal with unequal
variances.
Soln:
Company 1
x1 = (102 + 86 + 98 + 109 + 92)/5 = 97.4
5
s21 = (xi -x)2/(n-1) = (21.16 + 129.96 + 0.36 + 134.56 + 29.16)/(5-1) =
i=1
= 78.8
Company 2
x1 = (81 + 165 + 97 + 134 + 92 + 87 + 114)/7 = 110
7
s22 = (xi -x)2/(n-1) = (841 + 3025 + 169 + 576 + 324 + 529 + 16)/(7-1) =
i=1
= 913.33
1 2 but unknown
Sample
Analysis 1 2 3 4 5
X-ray 2.0 2.0 2.3 2.1 2.4
Chemical 2.2 1.9 2.5 2.3 2.4
Assuming that the populations are normal, test at the 0.05 level of
significance whether the two methods of analysis give, on the average, the
same result.
Soln:
Hypothesis: H0: D = 0
H1: D 0
5
d = (x2i -x1i)/5
i=1
d d0
t = ------------ = (0.10 0)/(0.1414/ 5) = 1.581
sd / n
Soln:
Hypothesis: H0: D = 0
H1: D > 0
8
d = (x1i -x2i)/8
i=1
d d0
t = ------------ = (198.625 0)/(210.1652/ 8) = 2.673
sd / n
2/339) Suppose that, in the past, 40% of all adults favored capital
punishment. Do we have reason to believe that the proportion of adults
favoring capital punishment today has increased if, in a random sample of
15 adults, 8 favor capital punishment? Use a 0.05 level of significance.
Soln:
Given: p = 0.40
Hypothesis: H0: p = 0.40
H1: p > 0.40
= 1 - .7869 = 0.2131
1. H0: p1 = p2
2. H1: p1 > p 2
3. Computations:
Urban: p1 = 63/100 = 0.63
q1= 37/100 = 0.37
Suburban: p2 = 59/125 = 0.472
q2 = 66/125 = 0.528
p = (62+59)/(100+125) = 0.542
q = 1 0.542 = 0.458
1. H0: pA = pB
2. H1: pA > pB
3. = 0.06
4. Critical region: z > 1.555
5. Computations:
Brand A: pA = 56/200 = 0.28
qA = 144/200 = 0.72
Brand B: pB = 29/150 = 0.193
qB = 121/150 = 0.807
p = (56+29)/(200+150) = 0.243
q = 1 0.243 = 0.757
Since z > z, reject H0. We can conclude that at .06 level of significance,
brand A outsells brand B.