Ejc t2 Enge
Ejc t2 Enge
Ejc t2 Enge
Exercises Chapter 2
83
78
65
69
77
81
71
(a) At a 5% significance level, test against a two-sided alternative the null hypothesis that the
population variance of their scores is 300.
(b) Based on your answer to 4a, decide if a 95% confidence interval for the population variance
would include the value of 300.
(c) Calculate the power of the test.
(d) Draw the power function from 4c in Excel.
(e) Looking at the graph from 4d, what is the probability of Type II error for 2 = 500 (roughly)?
5. State whether each of the following statements is true or false:
(a) The significance level of a test is the probability that the null hypothesis is false.
(b) A Type I error occurs when a true null hypothesis is rejected.
(c) A null hypothesis is rejected a the 0.025 level, but is accepted at the 0.01 level. This means
that the p-value of the test is between 0.01 and 0.025.
(d) The power of a test is the probability of accepting the null hypothesis that is true.
(e) If a null hypothesis is rejected against an alternative at a 5% level, then using the same data
it must be rejected against that alternative at the 1% level.
(f) If a null hypothesis is rejected against an alternative at a 1% level, then using the same data
it must be rejected against that alternative at the 5% level.
(g) The p-value of a test is the probability that the null hypothesis is true.
6. An insurance company employs agents on a bonus basis. It claims that in their first year, agents
will earn a mean bonus of at least 40000 euros and that the population standard deviation is no
more than 6000 euros. A random sample of nine agents found, for the bonuses in their first year,
9
X
xi = 333
and
i=1
9
X
(xi x
)2 = 312,
i=1
where xi are measured in thousands of euros and the population distribution can be assumed to be
normal.
(a) Test at the 5% level the null hypothesis that the population mean is at least 40000 euros (use
a p-value approach).
(b) Test at the 10% level the null hypothesis that the population standard deviation is at most
6000 euros (use a p-value approach).
7. A manufacturer claims that a new windmill in a certain location can generate an average of at least
800 kWh of energy per day. Daily energy generation for the windmill is assumed to be normally
distributed with a standard deviation of 120 kWh. A random sample of 100 days is taken to test
this claim against the alternative hypothesis that the true mean is less than 800 kWh. The claim
will be accepted if the sample mean is 776 kWh or more and rejected otherwise.
(a) What is the probability of a Type I error using the decision rule if the population mean is
in fact 800 kWh per day?
(b) What is the probability of a Type II error using this decision rule if the population mean is
in fact 740 kWh per day?
(c) Suppose that the same decision rule is used, but with a sample of 200 days rather than 100
days.
i. Would the value of be larger than, smaller than, or the same as that found in 7a?
ii. Would the value of be larger than, smaller than, or the same as that found in 7b?
Suppose now that a sample of 100 observations was taken but that the decision rule was changed
so that the claim would be accepted if the sample mean was at least 765 KWh.
(d) For this new decision rule:
i. Would the value of be larger than, smaller than, or the same as that found in 7a?
2
ii. Would the value of be larger than, smaller than, or the same as that found in 7b?
8. We want to test the null hypothesis that a population proportion is 0.5 against a two-sided alternative. One dilemma faced in such circumstances is that for any given significance level, the
larger the number of sample observations taken, the more likely it is that the null hypothesis will
be rejected. Why is this so, and why might the fact present a dilemma to an investigator planning
to use standard hypothesis testing techniques in these circumstances?
9. Consider the population of all residents of Getafe. We are interested in the weekly amount of money
Getafe residents spend on bread (assumed to be normally distributed). For a simple random sample
of ten residents, the following data (in euros) was obtained:
4.6
4.2
5.1
3.8
4.4
4.5
3.8
3.1
5.0
4.0
yielding
n
X
xi = 42.5
and
i=1
n
X
x2i = 183.91.
i=1
(a) Use a confidence interval approach to test a null hypothesis that the population variance 2
is 2 against a two-sided alternative at a 5% level.
(b) Now we switch our attention to another population parameter, the proportion of Getafenses
who spend no more than 4 euros on bread per week, p. We wish to perform an upper-tail test
H0 : p 0.75 at a 5% level. To do so, we need a large sample, thus we collect additional 25
observations, which combined with the earlier data give:
4.6 4.2 5.1 3.8 4.4 4.5 3.8 3.1 5.0 4.0
3.0 4.6 3.3 3.5 4.4 4.2 4.2 3.4 3.8 4.0
4.1 4.5 4.4 2.3 3.7 4.4 4.4 4.1 3.5 3.6
3.5 3.8 4.2 4.4 4.0
Find the sample proportion of Getafenses who spent no more than 4 euros on bread per week
and perform the desired test.
10. The data below represent one-way commuting times (in minutes) for a simple random sample of 15
people who work at a large assembly plant:
21.7
26.8
33.1
27.9
23.5
39.0
28.0
24.7
28.4
28.9
30.0
33.6
33.3
34.1
35.1
Assuming a normal distribution for the commuting times of those who work at the plant, a onesample upper-tail t-test (population mean exceeds 28 minutes) at a 5% level was performed in
Excel. Was the null hypothesis rejected or not? What was the final conclusion? (Note: Excel does
not have a function to perform a one-sample t-test, so we actually use a two-sample t-test for paired
samples, where the first sample is our data and the second sample consists of n repetitions of 0 ).
11. Below you can find an Excel sheet corresponding to problem 9b. Interpret its contents and explain
to your friend how to carry out the test of problem 9b in Excel. Hint: in the dialog window (and
in blue), the value of the population variance is 0.09375 = 21 p0 (1 p0 ) = 12 0.75(1 0.75).
12. You wish to conduct the following hypothesis test: H0 : = 10 vs. H1 : 6= 10. A simple
random sample with 700 observations has been collected, yielding a (standardized) value of the test
statistic equal to 1.96. The p-value associated to this test is:
(a) 0.025
(b) 0.05
(c) 1.96
13. You wish to check if a die is fair. To do so you conduct the following experiment: you throw the die
three times, and you conclude that the die is not fair if the sum of all the throws is smaller than 5.
(a) Define the null and alternative hypothesis for this test.
(b) Define the critical region of the test in terms of the outcomes of the three throws.
4