Download STAT-UB.0103 Sample Final Exam Problems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Degrees of freedom (statistics) wikipedia , lookup

History of statistics wikipedia , lookup

Foundations of statistics wikipedia , lookup

Taylor's law wikipedia , lookup

Bootstrapping (statistics) wikipedia , lookup

Confidence interval wikipedia , lookup

Regression toward the mean wikipedia , lookup

Resampling (statistics) wikipedia , lookup

Misuse of statistics wikipedia , lookup

Student's t-test wikipedia , lookup

Transcript
STAT-UB.0103
Sample Final Exam Problems
Here are problems used on the final exams in previous versions of the course. These are
identified as A, B, C, D, E, and F. Some sequence numbers are missing; these
correspond to topics that were moved to other courses.
Solutions follow, beginning on page 19.
A1. Marisol took a sample of 18 values from a population which was assumed normal.
With an average of x = 510.6 and a standard deviation of s = 64.2, she gave a 95%
64.2
confidence interval as 510.6 ± 2.1098
or 510.6 ± 31.9. She reported this interval
18
as (478.7, 542.5).
Unknown to Marisol, the true population mean was µ = 549.2. Did Marisol make a
mistake? If so, what was it?
A2. The information that follows comes from a computer run in which the objective was
to find a useful regression. This shows the results of these steps:
Descriptive statistics
Pearson correlations
Linear regression using four independent variables
Linear regression using two independent variables
Best subset regression
Stepwise regression
Questions follow.
Descriptive Statistics
Variable
N
Mean
ALUM
49
41.280
BORON
49
34.143
COBALT
49
48.31
DIAMOND
49
47.724
SALES
49
2176.6
Median
40.900
34.400
48.90
48.100
2136.0
StDev
5.251
4.340
9.85
—a—
242.9
Variable
ALUM
BORON
COBALT
DIAMOND
SALES
Q1
37.900
30.800
41.85
44.600
2020.5
Q3
44.700
37.450
55.40
51.550
2332.0
COBALT
DIAMOND
0.397
0.698
0.053
Min
31.100
23.700
27.60
31.700
1741.0
Max
51.600
44.600
70.10
62.800
2720.0
Correlations (Pearson)
ALUM
BORON
BORON
0.533
COBALT
-0.424
-0.513
DIAMOND -0.504
-0.336
SALES
0.064
-0.299
1
gs2012
STAT-UB.0103
Sample Final Exam Problems
Regression Analysis
(4 independent variables)
The regression equation is
SALES = 765 + 20.5 ALUM - 7.29 BORON + 21.3 COBALT - 4.47 DIAMOND
Predictor
Constant
ALUM
BORON
COBALT
DIAMOND
S = 147.2
Coef
764.8
20.519
-7.287
21.261
-4.473
SECoef
404.3
5.270
6.243
2.632
4.251
R-Sq = 66.3%
Analysis of Variance
Source
DF
SS
Regression
4
1877299
Error
44
953959
Total
48
2831258
Unusual Observations
Obs
ALUM
SALES
Fit
3
51.6 1903.0 2193.0
T
1.89
3.89
-1.17
8.08
-1.05
P
0.065
0.000
0.249
0.000
0.298
VIF
1.7
1.6
1.5
1.4
R-Sq(adj) = 63.2%
MS
469325
—d—
StDev Fit
54.0
F
21.65
Residual
-290.0
P
0.000
St Resid
-2.12R
R denotes an observation with a large standardized residual
Regression Analysis
(2 independent variables)
The regression equation is
SALES = 288 + 20.3 ALUM + 21.8 COBALT
Predictor
Constant
ALUM
COBALT
S = 148.0
Coef
287.6
20.273
21.778
SECoef
257.6
4.490
—e—
R-Sq = 64.4%
Analysis of Variance
Source
DF
SS
Regression
2
1824009
Error
46
1007249
Total
48
2831258
Unusual Observations
Obs
ALUM
SALES
Fit
3
51.6 1903.0 2233.2
T
1.12
4.51
9.10
P
0.270
0.000
0.000
VIF
1.2
1.2
R-Sq(adj) = 62.9%
MS
912005
21897
StDev Fit
47.1
F
41.65
Residual
-330.2
P
0.000
St Resid
-2.35R
R denotes an observation with a large standardized residual
Best Subsets Regression
Response is SALES
Vars
1
2
3
4
R-Sq
48.7
64.4
65.5
66.3
R-Sq
(adj)
47.6
62.9
63.2
63.2
C-p
22.0
3.5
4.1
5.0
S
175.86
147.98
147.42
147.24
A
L
U
M
B
O
R
O
N
X
X X
X X
2
C
O
B
A
L
T
X
X
X
X
D
I
A
M
O
N
D
X
gs2012
STAT-UB.0103
Sample Final Exam Problems
Stepwise Regression
F-to-Enter:
4.00
Response is SALES
on
Step
Constant
COBALT
T-Value
1
1345.7
2
287.6
17.2
6.67
21.8
9.10
ALUM
T-Value
S
R-Sq
F-to-Remove:
4.00
4 predictors, with N =
49
20.3
4.51
176
48.66
148
64.42
Please answer the following questions.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
Find the position marked —a—. Guess the value that appeared there.
Which variable was used as the dependent variable in the regression work?
Which pairs of variables have negative correlations?
Find the position marked —d—. What value should appear there?
Find the position marked —e—. What value should appear there?
Following the initial regression run, there is a second regression of SALES on
only two of the independent variables, ALUM and COBALT. What is the fitted
model in this second regression run?
Why, in your opinion, was this second regression done?
The BEST SUBSET section shows four models. Which of these four models
would provide an adequate fit to the data? (This is not asking you to choose the
best model.)
The BEST SUBSET section seems to rank the independent variables in terms of
their usefulness, from best to worst. What is this ordering?
DISCLAIMER: Not all BEST SUBSET results suggest an ordering.
Moreover, the claimed ordering does not reflect any scientific reality.
The STEPWISE section also ranks the independent variables in terms of
usefulness. What is the ordering?
DISCLAIMER: Same disclaimer as in (i).
A4.
Maple ice cream is made at Chauncey’s Superlative Ice Cream factory by
squirting high-quality maple syrup into an ice cream base. The resulting mixture is then
stirred and frozen. Because the maple syrup is sticky, the dispenser cannot always squirt
out the same quantity. The management is concerned about the concentration of maple
syrup in the ice cream. A sample of 24 half-gallon containers was taken, and the maple
syrup content of each was measured. The average quantity in this sample was 41.6
ounces, with a standard deviation of 3.5 ounces.
(a)
(b)
Give a 95% confidence interval for the mean amount of maple syrup in a
half-gallon container.
Provide an interval with the property that about 95% of all containers will contain
maple syrup amounts within the interval.
3
gs2012
STAT-UB.0103
Sample Final Exam Problems
A6. Suppose that we record the values obtained by rolling a single die three times,
obtaining the values X1, X2, X3. Find the probability that there is a tie for the maximum
(that is, that the maximum is obtained more than once).
A7. The baloney used at the Super Submarine Drive-In is prepared by a local meatpacking plant. The baloney was ordered to the specification that each slice have a weight
of 25 grams and contain no more than 11 grams of fat. The requirement that the weight
be 25 grams is easily checked, and there has never been a problem here. There is,
however, some concern that the baloney slices might contain more than 11 grams of fat.
You decide to do a quality control inspection, and you arrange for the random sampling
of 80 baloney slices. These 80 baloney slices had an average fat content of 14 grams,
with a sample standard deviation of 1.2 grams. You compute the t-statistic
14 − 11
t = 80
≈ 22.36.
12
.
Please respond T (true) or F (false) to each of the following.
(a)
This problem can be regarded as a test of the null hypothesis H 0 : µ = 11.
(b)
The parameter µ represents the mean weight of the 80 baloney slices in the
sample.
(c)
The t-statistic has 79 degrees of freedom.
(d)
Most published t tables have no line for 79 degrees of freedom.
(e)
At the 5% level of significance, one would accept the hypothesis in (a).
(f)
Though the sampled baloney did have an average fat content above 11 grams, the
amount of extra fat seems to be small.
(g)
The standard deviation of the amount of fat seems to be close to 1.2 grams.
(h)
Type II error here consists of claiming that the baloney is acceptable when it is
really too fatty.
(i)
Given the actual data, it appears that the probability of a type II error is quite
small.
(j)
An approximate 95% prediction interval for the amount of fat in a baloney slice is
about 14 grams ± 2.4 grams.
A9. A fruit dealer receives regular shipments of pears. He gets to make a yes/no
purchase decision on each shipment by taking a sample of pears. The rule that he has
devised is the following. Select ten pears. If the total weight equals or exceeds 2.5
pounds, then the shipment is accepted.
If the true distribution of pear weights in the first shipment in October is approximately
normal with mean µ = 0.28 pound and standard deviation σ = 0.06 pound, what is the
probability that this shipment will be accepted?
A10. A regression of RETURN on SIZE and PARK was performed for a set of 109
randomly-selected toy stores. RETURN was measured in thousands of dollars, SIZE was
4
gs2012
STAT-UB.0103
Sample Final Exam Problems
floor space in thousands of square feet, and PARK was obtained by counting available
numbers of parking spaces. (Stores located in indoor shopping malls were not used in the
data base.) The fitted regression was
RETÛRN = 14.66 + 31.20 SIZE + 1.12 PARK
(2.02)
(4.66)
(1.88)
The figures in ( ) are standard errors.
(a)
(b)
(c)
(d)
State the regression model on which this is based.
What profit would you predict for a store with 10,000 square feet of floor space
and parking for 100 cars?
Which of the estimated coefficients is/are significantly different from zero?
It was noticed that the correlation coefficient between SIZE and PARK was 0.67.
Will this present a problem?
B1. In a certain course, there were two tests and a final exam. The data are listed here
(in alphabetic order, by last name) for the 24 people who took the course:
Test1
110
110
75
118
30
118
59
52
57
105
45
140
Test2
80
102
81
108
33
64
56
78
69
75
42
110
Final
105
103
85
128
83
90
115
79
75
128
106
155
Test1
47
135
97
100
100
32
42
105
60
75
125
92
Test2
65
80
95
95
90
51
12
99
101
77
102
91
Final
84
120
132
130
103
100
45
121
150
96
150
100
There was some curiousity as to whether the final exam could reasonably be predicted
from the two tests. Accordingly, the linear regression of Final on (Test1, Test2) was
done, with these results:
Regression Analysis
The regression equation is
Final = 46.8 + 0.128 Test1 + 0.646 Test2
Predictor
Constant
Test1
Test2
Coef
46.85
0.1277
0.6463
S = 18.95
SECoef
12.94
0.1702
0.2299
R-Sq = 53.6%
Analysis of Variance
Source
DF
SS
Regression
2
8704.0
Error
21
7539.6
Total
23
16243.6
Source
Test1
Test2
DF
1
1
T
3.62
0.75
2.81
P
0.002
0.461
0.010
R-Sq(adj) = 49.2%
MS
4352.0
359.0
F
12.12
P
0.000
Seq SS
5867.2
2836.7
5
gs2012
STAT-UB.0103
Sample Final Exam Problems
Unusual Observations
Obs
Test1
Final
Fit StDev Fit
Residual St Resid
19
42
45.00
59.97
11.64
-14.97
-1.00 X
X denotes an observation whose X value gives it large influence.
Additionally, some graphs were provided. Here first is the normal probability plot of the
residuals.
Normal Probability Plot of the Residuals
(response is Final)
30
20
Residual
10
0
-10
-20
-30
-2
-1
0
1
2
Normal Score
Here is the residual-versus-fitted plot:
Residuals Versus the Fitted Values
(response is Final)
30
20
Residual
10
0
-10
-20
-30
60
70
80
90
100
110
120
130
140
Fitted Value
6
gs2012
STAT-UB.0103
Sample Final Exam Problems
Here is a plot of the residuals in sequence order:
Residuals Versus the Order of the Data
(response is Final)
30
20
Residual
10
0
-10
-20
-30
5
10
15
20
Observation Order
Please provide answers to the following questions:
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
What fraction of the variability in the Final is explained by the two quizzes?
Give the fitted regression equation.
It appears that one of the quizzes was more useful than the other in terms of
predicting the final. Which quiz? How do you know?
The normal plot of the residuals looks reasonably straight, except for the four
oddly-placed points at the bottom left. Locate these four points on the residualversus-fitted plot. (If you verbally locate these points, that’s fine. If not, just
circle them on the residual-versus-fitted plot and indicate with letter “d.”)
Is there any useful information on the plot of the residuals versus the order of the
data? If yes, tell what that information is. If not, please indicate why not.
One of the students got a 45 on the final exam. Locate that student’s point on the
residual-versus-fitted plot. (If you verbally locate this point, that’s fine. If not,
just circle it on the residual-versus-fitted plot and indicate with letter “f.”)
One data point is listed as an unusual observation. Give the three test scores for
this data point. Indicate also what you think is unusual about this point.
Based on this output, it’s possible to find the correlation coefficient between
Test1 and Final. What is this correlation?
The F value is given as 12.12. Exactly what hypothesis is being tested with this F
value? What conclusion do you reach about this hypothesis?
Find the standard deviation of Final. Using this value make a judgment as to
whether the regression was useful.
B2. An auditing investigator is suspicious about the office supply bills submitted by a
large division of Psytron, Inc. In particular, he suspects that these bills have been
overstating the quantities of merchandise actually received. This problem can be
resolved by doing interviews with randomly-selected suppliers to determine the dollar
values of the supplies actually shipped. During November, bills were submitted for many
7
gs2012
STAT-UB.0103
Sample Final Exam Problems
hundreds of orders. What sample size should be used if the investigator wants to know
the average dollar values of supplies actually shipped, correct to within $25 with a
probability of 0.90 or above? The standard deviation of these amounts is not known, but
it is believed to be at most $80.
B5. For each of the following situation circle either the response COULD HAPPEN or
the response IMPOSSIBLE. For example, “ x = -19.4” gets the response COULD
HAPPEN while “x - 1 = x + 1” is IMPOSSIBLE. In dealing with these situations, you
should assume that the arithmetic is always done correctly.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
(k)
()
(m)
In a single sample x = 141.2 and s = -32.1.
In a very strong linear relationship, the correlation was found as r = 1.18.
In a single sample x = 15.2 and s = 33.5.
In a regression of Y on X, we computed sY = 21.04 and sε = 21.52.
In a very strong multiple regression, the F statistic was found as F = 12,810.
A hypothesis test was done at the 5% level of significance, and H 0 was rejected.
With the same data, but using the 1% level of significance, H 0 was again
rejected.
With a single sample of n = 22 values, the 95% confidence interval for µ was
found as 85.0 ± 6.2 and the null hypothesis H 0 : µ = 92 (tested against alternative
H1 : µ ≠ 92) was accepted at the 5% level of significance.
Based on a sample of n = 131 yes-or-no values, the 95% confidence interval for
the binomial parameter p was found to be 0.711 ± 0.083. Also, the null
hypothesis H 0 : p = 0.61 (versus alternative H1 : p ≠ 0.61) was rejected at the 5%
level of significance.
The hypothesis H 0 : µ = 1.8 regarding the mean of a continuous population was
tested against alternative H1 : µ ≠ 1.8 at the 0.05 level of significance, using a
sample of size n = 85. Unknown to the statistical analyst, the true value of µ was
1.74 and yet H 0 was still accepted.
Sherry had a set of data of size n = 6 in which the mean and median were
identical.
In comparing two samples of continuous data, Miles assumed σx = σy while Joy
allowed σx ≠ σy. With α = 0.05, Miles accepted null hypothesis H 0 : µx = µy
while Joy, also using α = 0.05, rejected the same null hypothesis.
In comparing two samples of continuous data, the standard deviations were found
to be sx = 42.4 and sy = 47.2; also, the pooled standard deviation was found to be
sp = 48.5.
Martha had a sample of data x1 , x 2 ,..., x n , measured in inches, and tested the
hypothesis H 0 : µ = 10 inches against the alternative H1 : µ ≠ 10 inches. Edna
converted the data to centimeters by multiplying by 2.54 cm
in and tested
8
gs2012
STAT-UB.0103
Sample Final Exam Problems
(n)
(o)
(p)
(q)
(r)
(s)
(t)
H0: µ = 25.4 cm against H1 : µ ≠ 25.4 cm. Martha accepted the null hypothesis
while Edna (using the same α) rejected it.
Based on a sample of 38 yes-or-no values, the estimate p was found to be 0.41.
In a regression involving dependent variable Y and possible independent variables
G, H, K, L, and M, the regression of Y on (G, H, L) had R 2 = 53.2% and the
regression of Y on (G, K, M) had R 2 = 56.4%.
(a problem about linear programming)
In a regression involving dependent variable D and possible independent variables
R, S, and V, the F statistic was significant at the 5% level while all three t statistics
were non-significant at the 5% level.
For a regression with two independent variables, it was found that SSregr = 58,400
and SSerror = 245,800.
In a linear regression problem, AGE was used as one of the independent
variables, even though AGE = 6 for every one of the data points (which were
first-grade children). The estimated coefficient was found to be bAGE = 0.31.
(a problem about linear programming)
B6. The fill amounts which go into bottles of Nutri-Kleen (a home-use rubbing alcohol)
are supposed to be normally distributed with mean 8.00 oz. and standard deviation
0.05 oz. Once every 30 minutes a bottle is selected from the production line, and its
contents are noted precisely on a control chart. There are bars on the control chart at
7.88 oz. and 8.12 oz. If the actual amount goes below 7.88 oz. or above 8.12 oz., then
the bottle will be declared out of control.
(a)
If the process is in control, meaning µ = 8.00 oz. and σ = 0.05 oz., find the
probability that any one bottle will be declared out of control.
(b)
In the situation of (a), find the probability that the number of bottles found out of
control in an eight-hour day (16 inspections) will be zero.
(c)
In the situation of (a), find the probability that the number of bottles found out of
control in an eight-hour day (16 inspections) will be exactly one.
(d)
If the process shifts so that µ = 7.98 oz and σ = 0.06 oz, find the probability that
any one bottle will be declared out of control. (µ and σ both change)
If you can’t solve (a), use the symbol γ as the solution to (a); then express the solutions
to (b) and (c) in terms of γ.
B8. Two groups of economists were surveyed regarding opinions as to the price of
molybdenum on December 31, 2011. These economists were either academic (major
employment by college or university) or professional (major employment by bank or
securities firm). The findings were the following:
Group
Academic
Professional
Number
24
30
Average
1,450
1,410
9
Standard deviation
94
80
gs2012
STAT-UB.0103
Sample Final Exam Problems
Give a 95% confidence interval for the population mean difference between these groups.
Be sure to state any assumptions that you make.
C2. Thumbs Up Marketing Research is a firm that employs consumer panels to explore
preferences for new products. The current inquiry involves a taste test comparison
between a standard JELL-O gelatin dessert and a new reduced sugar preparation.
Thumbs Up recruits panels of five consumers at a time and determines how many of the
five prefer the new product. Their objective is to obtain a panel of five in which all five
consumers prefer the new product. The actual probability that an individual will prefer
the new product is 0.40. Give an expression for the probability that Thumbs Up will go
through 60 panels (each of five people) without finding a single panel of five which will
unanimously prefer the new product. (You need not evaluate the expression.)
C4. Congresswoman Ruggieri has become concerned about the details of welfare
support, and she’s wondering what could be the average dollar amount of monthly
welfare payments in households with children. Her staff has recommended taking a
sample of these welfare cases.
(a)
How many cases should be sampled if the Congresswoman would like to be
within $75 of the true mean with a probability of 95% or greater if her staff
believes that the standard deviation of the monthly payments could not possible
exceed $250?
(b)
How many cases should be sampled if the Congresswoman would like to be
within $150 of the true mean with a probability of 95% or greater if her staff
believes that the standard deviation of the monthly payments could not possible
exceed $250?
(c)
How many cases should be sampled if the Congresswoman would like to be
within 0.30 of a standard deviation of the true mean with a probability of 95% or
greater?
(d)
Suppose that the staff decides on a sample of size 80, working on a worst-case
standard deviation of $320 (and the same 95% correctness probability). In their
sample of n = 80, suppose it happens that s = $260. Do you still have 95%
$260
confidence in the interval x ± t0.025;79
? Why or why not?
80
C5. It has been determined that 40% of all people who walk into a Dasher automobile
dealership will eventually purchase a Dasher.
(a)
Among four people walking into a Dasher dealership (and presumably a random
sample), what is the probability that all four will eventually purchase a Dasher?
(b)
Among 12 people walking into a Dasher dealership (and presumably a random
sample), is it more likely that four will eventually purchase a Dasher or that
five will eventually purchase a Dasher? (You need a calculation to support the
solution.)
(c)
Find the smallest sample size n for which
P(all n eventually purchase a Dasher) ≤ 0.10.
10
gs2012
STAT-UB.0103
Sample Final Exam Problems
(d)
Among five randomly-selected people walking into a Dasher dealership (and
presumably a random sample), what is the probability that at most one will not
eventually purchase a Dasher?
C6. This problem considers the comparison of two groups. These boxplots compare the
groups
125
C2
115
105
95
1
2
C1
Minitab output related to the comparison is given next.
ITEM 1
Two Sample T-Test and Confidence Interval
Two sample T for C2
C1
N
Mean
1
9
107.06
2
17
112.87
StDev
4.07
9.45
SE Mean
1.4
2.3
95% CI for mu (1) - mu (2): ( -11.3, -0.3)
T-Test mu (1) = mu (2) (vs not =): T = -2.18
P = 0.040
DF = 23
P = 0.093
DF = 24
ITEM 2
Two Sample T-Test and Confidence Interval
Two sample T for C2
C1
N
Mean
1
9
107.06
2
17
112.87
StDev
4.07
9.45
SE Mean
1.4
2.3
95% CI for mu (1) - mu (2): ( -12.7, 1.1)
T-Test mu (1) = mu (2) (vs not =): T = -1.75
Both use Pooled StDev = 8.07
11
gs2012
STAT-UB.0103
Sample Final Exam Problems
ITEM 3
Homogeneity of Variance
ConfLvl
95.0000
Bonferroni confidence intervals for standard deviations
Lower
Sigma
Upper
N Factor Levels
2.61139
6.76488
4.07478
9.45422
8.6868
15.3695
9
17
1
2
F-Test (normal distribution)
Test Statistic: 5.383
P-Value
: 0.021
Please provide answers to the following.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
State the null hypothesis that is being tested. Be sure to identify any parameters
which appear.
State the alternative hypothesis.
What assumptions about the population standard deviations are at work in
ITEM 1?
What assumptions about the population standard deviations are at work in
ITEM 2?
What conclusion, using α = 0.05, about the hypotheses do you make in ITEM 1?
What conclusion, using α = 0.05, about the hypotheses do you make in ITEM 2?
Show the calculation that gives the value -2.18 in ITEM 1. That is, indicate a
numeric expression which, when simplified, will produce the value -2.18.
ITEM 3 may be somewhat unfamiliar, but see if you can use it to reach a decision
as to whether you prefer the assumptions in (c) or the assumptions in (d).
Are there any other assumptions that should be stated in this problem?
Why are the degrees of freedom different in ITEM 1 and ITEM 2 even though the
sample sizes are unchanged? You need not show any elaborate formulas.
C9. The following Minitab output represents a “best subsets” run in the regression of
YNOT on AL, BE, GA, and DE.
Best Subsets Regression
Response is YNOT
Vars
1
1
2
2
3
3
4
R-Sq
68.8
45.8
87.8
68.9
87.9
87.8
87.9
Adj.
R-Sq
68.5
45.1
87.5
68.2
87.4
87.4
87.3
C-p
132.1
293.8
1.5
133.9
3.1
3.4
5.0
s
393.96
519.85
248.03
396.00
248.87
249.32
250.25
A B G
L E A
X
X
X
X X
X X
X X
X X X
D
E
X
X
X
X
Based on this information, which of the independent variables are useful in predicting
YNOT? On what do you base your opinion?
12
gs2012
STAT-UB.0103
Sample Final Exam Problems
C10. Here is a display showing five boxplots:
C4
250
150
50
1
2
3
4
5
C2
The five variables pictured here have the following selected numerical summaries:
ARTICHOKE
BERRY
COLLAR
DIANTHUS
EGGPLANT
N
123
117
124
119
117
Mean
149.03
150.42
144.06
185.91
131.93
Median
148.95
150.32
143.39
185.44
130.83
StDev
3.83
10.02
33.30
8.78
8.31
Match the boxplots to the variables.
D2. The voters in a large state are confronted with a decision about voting for
Proposition 18. The Attimetrix polling service took a random sample of 720 voters, and
found that 450 of them planned to vote “Yes” on Proposition 18.
(a)
Based on the results of Attimetrix, give a 95% confidence interval for the
population proportion that plan to vote “Yes” on this proposition.
(b)
Suppose that Attimetrix tested the null hypothesis H0: p = 0.58 versus
H1: p ≠ 0.58 at significance level 0.05, based on its sample of 720. Would H0 be
accepted or rejected?
Please note that for this problem, there is not an exact correspondence between the
confidence interval and the hypothesis test.
13
gs2012
STAT-UB.0103
Sample Final Exam Problems
D3. A company’s human resources department offers financial planning services,
ranging from all the way from pension planning to debt management. This human
resources department has kept track of meeting times with employees over the last
calendar year. The data below give information on this meeting time for a random
sample of 15 secretarial positions and 12 management positions. The individual values
represent hours per year using these human resources services.
Group
Number of people
Average time (hours)
Secretarial
Management
15
12
6.6
8.0
Standard deviation
of time (hours)
2.1
2.9
You would like to test, at the 0.05 level of significance, whether µS (secretarial mean) is
equal to µM (management mean) or not.
(a)
State null and alternative hypotheses appropriate for this situation.
(b)
It seems reasonable to assume that the population standard deviations σS and σM
are equal. Find the value of sp , the pooled standard deviation.
(c)
Give the value of the t statistic which tests the hypothesis given in (a). NOTE: If
you were not able to get a value for sp in part (b), use sp = 2.5.
(d)
Give the comparison point to which the t statistic should be compared. Indicate
whether this causes you to accept or to reject the null hypothesis.
D4. Claude is a new analyst at a brokerage firm, and he’s been assigned the task of
estimating the shrinkage rate in the customer loads for 2012 for the population of
individual brokers at this firm. (This shrinkage is the result of customers’ moving to
on-line accounts.) It is time-consuming to make the computations, because checking the
status of investors is difficult. As there are hundreds of brokers, Claude would like to
take a sample. He believes that the average rate of shrinkage should be somewhere
around 10% to 20%, and he thinks that the standard deviation of these values should be
between 6 percentage points and 12 percentage points.
(a)
If Claude would like his estimate to be accurate within 0.03 = 3 percentage points
with probability at least 90%, how large a sample size should he use?
(b)
If Claude would like his estimate to be accurate within 0.04 = 4 percentage points
with probability at least 95%, how large a sample size should he use?
D5. A marketing group would like to locate regular drinkers of the liqueur Campari.
The target population is here defined as adults in the city of Philadelphia. This is a
situation of detecting events of low probability, as this is not a very popular drink.
(a)
Suppose that 0.004 of the adults in Philadelphia are regular drinkers of Campari.
What sample size should the marketing group use if it wants a probability of at
least 80% of finding at least one Campari drinker in the sample?
(b)
Suppose that 0.02 of the adults in Philadelphia are regular drinkers of Campari.
What sample size should the marketing group use if it wants a probability of at
least 80% of finding at least one Campari drinker in the sample?
14
gs2012
STAT-UB.0103
Sample Final Exam Problems
D6. Dark corn syrup is particularly difficult to manage, in that the equipment frequently
becomes sticky. The management is concerned about the specific gravity of this syrup.
A sample of 25 quart containers was taken, and the syrup specific gravity in each was
measured. The average quantity in this sample was 1.062, with a standard deviation of
0.015. Assume that the sample comes from a normal population.
(a)
Give a 95% confidence interval for the mean specific gravity of this syrup in a
quart container.
(b)
Provide an interval with the property that about 95% of all quart containers will
have specific gravity values within the interval.
D7. A small bank would like to estimate the average monthly dollar value of checks
written by its customers. A random sample of 160 of its customers had a mean
monthly transaction amount of $1,060, with a standard deviation of $445.
(a)
Give a 95% confidence interval for µ.
(b)
Identify the meaning of µ in this problem.
(c)
State the assumptions behind this confidence interval.
(d)
Suppose that the null hypothesis H0: µ = $1,120 were to be tested at the level
0.05. Based on the confidence interval, would H0 be accepted or rejected?
D8. The Market Maker Newsletter has just invented the Recreation Index, intended to
track the performance of companies involved in sports, leisure, and recreation products.
Using market records, they were able to construct a history as to how this index would
have performed. It is believed that the weekly changes in the market index have mean
0.06 and standard deviation 0.24. If the current value of the index is 276, find a value c,
so that P[ Index value after 52 weeks > c ] = 0.90.
D9. In multiple regression it is useful to examine the standard deviation ratio
sε
, where
sy
sy is the standard deviation of the dependent variable and sε is the standard error of
2
regression. There is a corrected, or adjusted, form of the R2 statistic, called Radj
which
uses
sε
s2
2
. This adjusted R2 is defined as Radj
= 1 - ε2 .
sy
sy
Now consider the following regression analysis of variance table:
Degrees of
Source
Sum Squares
Mean Squares
freedom
Regression
5
150,000
30,000
Residual
70
70,000
1,000
Total
75
220,000
15
F
30.00
gs2012
STAT-UB.0103
Sample Final Exam Problems
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
How many independent variables were used in this regression?
What is the sample size n ?
Find the value of sε .
Find the value of sy .
Give the value of R2.
2
.
Give the value of Radj
Would these regression results be considered significant at the 0.05 level?
True or false…. There is at least one significant t statistic.
True or false…. If Y is measured in units of days, then the units associated with
the value 70,000 will be days2.
True or false…. If the value M is added to all the Y-values, then all the entries of
the analysis of variance table will remain unchanged.
D10. If you do a regression of Y on x, with n data points, and if you make the usual
assumptions, then the 1 - α prediction interval for a new Y-value based on a new x-value
xnew is
b0 + b1 xnew ± tα/2;n-2 sε
b
1 x −x
1 + + new
n
Sxx
g
2
You have sales data for your company’s battery-powered minions toys (based on the
“Despicable Me” movie) collected over 11 weeks. You ran the regression of sales (Y) on
the week numbers (x) over these 11 weeks. Specifically,
Yi = sales in week i
xi = i = week number
This resulted in the fitted regression Y = 240 + 5 x, with an associated standard error of
regression sε = 7.0.
(a)
(b)
(c)
(d)
(e)
(f)
Note that the x’s are the integers 1, 2, …, 11. Please give x and then show that
Sxx = 110.
Please give the point prediction for the 12th week.
Give the 95% prediction interval for the sales for the 12th week.
Please give the point prediction for the 20th week. (This is to be based only on
the data that you’ve seen in weeks 1 through 11. This is a long-range prediction.)
Give the 95% prediction interval for the sales for the 20th week.
The intervals in (c) and (e) will not be equally long. Please indicate which is
longer and why it is reasonable that it be longer.
E1. Nearly all left-handed baseball players will get more hits against a right-handed
pitcher than against a left-handed pitcher. The question here is whether this difference is
statistically significant for a particular player, Skippy. (Baseball players, unlike the rest
of us, are allowed to keep juvenile nicknames into their adult lives.) After his first 120
at-bats this season, here are Skippy’s numbers:
16
gs2012
STAT-UB.0103
Sample Final Exam Problems
Hits
No hits
Total
23
49
72
14
34
48
Against right-handed
pitchers
Against left-handed
pitchers
At the 5% level of significance, test whether Skippy’s performance against left-handed
pitchers is just as good as his performance against right-handed pitchers.
E2. A lognormal random walk model has been assumed for the stock price of
Consolidated Food Products, one of the country’s heaviest users of artificial food
 P 
coloring. The model declares that log  t  follows a normal distribution with mean 0
 Pt −1 
and with standard deviation 0.016. Here Pt is the price at the end of the tth trading day.
The model further assumes the statistical independence of each day from all the other
days. If the current price is P0 = $52.18, find the probability that the price will exceed
$55 after 40 trading days.
E3. Hal has been exploring the effect that earnings reports have on stock prices. The
issue is very difficult to assess, as many earnings reports are preceded by advance hints.
Hal was able to obtain data for 82 cases in which earnings exceeded prior expectations,
and for each case he explored archives of the Wall Street Journal for the five previous
business days for evidence of prior hints. He obtained the following numbers:
No previous hints in WSJ
Previous hints in WSJ
Stock price rises
on day of report
Stock price falls
on day of report
33
20
11
18
Is there a statistically significant relationship between price behavior on the day of the
report and whether or not hints appeared in the Wall Street Journal?
F5.
The speculator newsletter “Inside Story” has a columnist specializing in
commodities call options; he makes occasional “buy” recommendations in his weekly
column. A competing newsletter, “Margin Madness,” also has a writer who makes
predictions. As part of a research project, you tracked all the picks made by these two
newletters between May 1 and June 1. You calculated the value of a $10,000 investment
exactly 90 days after the pick. The study was completed on September 1, and you
computed this information:
17
gs2012
STAT-UB.0103
Sample Final Exam Problems
Newsletter
Inside Story
Margin Madness
Final dollar value of $10,000
Average
Standard Deviation
$11,410
$2,400
$10,900
$1,900
Number of picks
12
16
Give a 95% confidence interval for the parameter difference µIS - µMM . State any
assumptions that you make.
F6. The weekly salaries of union electricians in two metropolitan areas were
compared by taking random samples of 50 in each area. The results were these:
Area
1
2
n
50
50
Mean
612.26
659.65
Standard deviation
100.20
83.73
Give a 95% confidence interval for the parameter difference µ1 - µ2.
F7. Employees at McKenzie Corporation were given the opportunity to start 401-K
retirement plans beginning January 1, 2007, and 196 employees chose to do so. Of these,
there were 92 who elected to sit through a three-hour seminar on making investment
decisions. The dollar values of all these employees were noted on December 31, 2008,
exactly two years later:
Attend seminar?
No
Yes
n
102
94
Mean
10,900
11,500
Standard deviation
1,440
3,570
Give a 95% confidence interval for the mean difference µNO - µYES .
18
gs2012
STAT-UB.0103
Sample Final Exam Problems
SOLUTIONS.
A1. Marisol’s interval did not cover µ. From a procedural point of view, Marisol did not
make a mistake. Her “mistake” is completely honest. Marisol was simply using a
procedure which works 95% of the time. This time it didn’t work.
A2.
(a)
Find the position marked —a—. Guess the value that appeared there.
SOLUTION: The variable DIAMOND lies between 31.7 and 62.8, with a mean of
47.724. With a sample size of 49, one would guess that the range is about 4 standard
deviations, which would be about 7.5. (The actual value was 5.955.)
(b)
Which variable was used as the dependent variable in the regression work?
SOLUTION: SALES
(c)
Which pairs of variables have negative correlations?
SOLUTION: These pairs...
COBALT, ALUM
DIAMOND, BORON
COBALT, BORON
SALES, BORON
DIAMOND, ALUM
(d)
Find the position marked —d—. What value should appear there?
SOLUTION: This asks for the mean square error. It can be recovered in several ways,
but the easiest is probably 953,959 ÷ 44 ≈ 21681.
(e)
Find the position marked —e—. What value should appear there?
Coefficient 21778
.
SOLUTION: In the line for variable COBALT, we have t =
=
SE
-e21778
.
= 9.10. From this we can recover —e— =
≈ 2.393.
910
.
(f)
Following the initial regression run, there is a second regression of SALES on
only two of the independent variables, ALUM and COBALT. What is the fitted model in
this second regression run?
SOLUTION: SALES
= 288 + 20.3 ALUM + 21.8 COBALT
(g)
Why, in your opinion, was this second regression done?
SOLUTION: The first regression showed significant t values for ALUM and COBLAT,
but non-significant values for the other two variables. The second regression seems to
represent the decision to remove those variables with non-significant t values.
19
gs2012
STAT-UB.0103
Sample Final Exam Problems
(h)
The BEST SUBSET section shows four models. Which of these four models
would provide an adequate fit to the data? (This is not asking you to choose the best
model.)
SOLUTION: The model listed first, using only COBALT, would not be acceptable.
It has an unfavorable (high) value of Cp, along with values of sε and R 2 that can easily
be improved. The other three models would all be acceptable, depending on your
decisions about cutting off Cp, sε, and R 2 . Probably most persons would stick with the
COBALT, ALUM regression.
(i)
The BEST SUBSET section seems to rank the independent variables in terms of
their usefulness, from best to worst. What is this ordering?
DISCLAIMER: Not all BEST SUBSET results suggest an ordering.
Moreover, the claimed ordering does not reflect any scientific reality.
SOLUTION: The BEST SUBSET work, in this problem at least, gets the independent
variables in order. This ordering is COBALT, ALUM, BORON, DIAMOND. But read
the disclaimer again.
(j)
The STEPWISE section also ranks the independent variables in terms of
usefulness. What is the ordering?
DISCLAIMER: Same disclaimer as in (i).
SOLUTION: The STEPWISE section gets the variables in the order COBALT, ALUM
and then stops.
A4.
(a) The sample size n = 24 is not large, so we should begin by stating the assumption that
the amount follow, at least approximately, a normal distribution. The interval
s
35
.
is x ± tα/2;n-1
, which is here 41.6 ± 2.069
or 41.6 ± 1.48. Thus, we’re 95%
n
24
confident that the mean amount is between 40.12 ounces and 43.08 ounces.
(b) About 95% of all the values will be within two standard deviations of the mean.
Thus, an interval for this purpose would be x ± 2s, or 41.6 ± 7.0, meaning 34.6 ounces to
48.6 ounces. This interval is rather wide. Chauncey should be concerned.
20
gs2012
STAT-UB.0103
Sample Final Exam Problems
A6. There are a number of ways to get to the solution, but the easiest is probably to list
all the qualifying outcomes. There are altogether 63 = 216 possible outcomes. Of these,
the number that qualify for this description are the following:
6 outcomes consisting of triples, from (1,1,1) to (6,6,6)
3 outcomes consisting of maximum = 2 (twice), 1 (once)
these refer to the orderings (1,2,2), (2,1,2), (2,2,1)
6 outcomes consisting of maximum 3 (twice), 1 or 2 (once)
these refer to the orderings
(1,3,3), (3,1,3), (3,3,1)
(2,3,3), (3,2,3), (3,3,2)
9 outcomes consisting of maximum 4 (twice), 1 or 2 or 3 (once)
12 outcomes consisting of maximum 5 (twice), 1 or 2 or 3 (once)
15 outcomes consisting of maximum 6 (twice), 1 or 2 or 3 (once)
Altogether there are 51 ways that this event can happen. The probability is then
51
≈
216
0.2361, about 24%.
A7.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
This problem can be regarded as a test of the null hypothesis H 0 : µ = 11. True.
The parameter µ represents the mean weight of the 80 baloney slices in the
sample. False. The parameter is the true-but-unknown mean fat content in the
whole population of these baloney slices.
The t-statistic has 79 degrees of freedom. True.
Most published t tables have no line for 79 degrees of freedom. True. However
you can still use such tables, because you can make a crude interpolation using
the lines for 60 and 120 degrees of freedom. The infinity line will do fine, also.
At the 5% level of significance, one would accept the hypothesis in (a). False.
The value of t is outrageous.
Though the sampled baloney did have an average fat content above 11 grams, the
amount of extra fat seems to be small. False. Don’t be shy or evasive here. The
baloney appears to be 2.5 standard deviations away from the requirement—and 14
grams is not close to 11 grams.
The standard deviation of the amount of fat seems to be close to 1.2 grams. True.
Type II error here consists of claiming that the baloney is acceptable when it is
really too fatty. True.
Given the actual data, it appears that the probability of a type II error is quite
small. True. The data suggest that the baloney is so fatty that you could not
very likely mistake them for adequate.
An approximate 95% prediction interval for the amount of fat in a baloney slice is
about 14 grams ± 2.4 grams. True. Since the population standard deviation
seems to be about 1.2 grams, the interval mean ± 2 SD should capture about 95%
of the values. This question is not the same as finding a confidence interval for
the population mean µ, which can be trapped in a much shorter interval based on
the sample size n = 80.
21
gs2012
STAT-UB.0103
Sample Final Exam Problems
A9. The requirement is apparently X ≥ 0.25 pound. That is, the shipment is accepted if
the 10 selected pears have an average weight 0.25 pound or over. This condition is
identical to having a total weight over 2.5 pounds. For the sampling distribution of X ,
0.06
we have E( X )= 0.28 pound and SD( X ) =
≈ 0.0190. Then
10
 X − 0.28 0.25 − 0.28 
≥
P[ X ≥ 0.25 ] = P 
≈ P[ Z ≥ -1.58 ]
0.0190 
 0.0190
= 0.50 + P[ 0 ≤ Z ≤ 1.58 ] = 0.50 + 0.4429 = 0.9429 ≈ 94%.
It would also be worth the trouble to state the assumption that the ten pears constitute a
random sample. It’s not that easy to take a genuine random sample of objects that come
to you in large piles.
A10.
(a)
(b)
(c)
(d)
B1.
(a)
(b)
State the regression model on which this is based.
SOLUTION: This is RETURNi = β0 + βSIZE SIZEi + βPARK PARKi + εi , where
the noise terms ε1, ε2, … ε109 are independent with means 0 and equal standard
deviations σε. (Other notational schemes would be permitted here, of course.)
What profit would you predict for a store with 10,000 square feet of floor space
and parking for 100 cars?
SOLUTION: Find this as 14.66 + 31.20 (10) + 1.12 (100) = 438.66 , meaning
$438,660.
Which of the estimated coefficients is/are significantly different from zero?
SOLUTION: The constant is 14.66/2.02 ≈ 7.26 standard errors away from zero,
so it is certainly significant. (Most people would not even bother about
asking for the significance of the constant.)
The coefficient of SIZE is 31.20/4.66 ≈ 6.70 standard errors away from zero, so
it is certainly significant.
The coefficient of PARK is 1.12/1.88 ≈ 0.60 standard errors away from zero; it
would be judged not statistically significant.
It was noticed that the correlation coefficient between SIZE and PARK was 0.67.
Will this present a problem?
SOLUTION: No.
What fraction of the variability in the Final is explained by the two quizzes?
SOLUTION: This is asking for R 2 , which is 53.6%.
Give the fitted regression equation.
= 46.8 + 0.128 Test1 + 0.646 Test2
SOLUTION: This is Final
22
gs2012
STAT-UB.0103
Sample Final Exam Problems
(c)
(d)
(e)
(f)
(g)
(h)
(i)
It appears that one of the quizzes was more useful than the other in terms of
predicting the final. Which quiz? How do you know?
SOLUTION: Certainly Test2 was more useful. It had a very strong t statistic.
You should not dismiss Test1 as being useless; it happens that Test1 and Test2
are somewhat collinear, and the conditional role of Test1, given Test2, turns out
to be small. Indeed, in part (g), you’ll show rFinal, Test1 = 0.60.
The normal plot of the residuals looks reasonably straight, except for the four
oddly-placed points at the bottom left. Locate these four points on the residualversus-fitted plot. (If you verbally locate these points, that’s fine. If not, just
circle them on the residual-versus-fitted plot and indicate with letter “d.”)
SOLUTION: The four odd points have the lowest residuals. Thus they must be
the four lowest points on the residual-versus-fitted plot. (These are at the bottom
right.) These four residuals are approximately equal, which explain the flat
section on the normal plot.
Is there any useful information on the plot of the residuals versus the order of the
data? If yes, tell what that information is. If not, please indicate why not.
SOLUTION: The data points were listed alphabetically by last name. There is no
reason at all to even look at this plot.
One of the students got a 45 on the final exam. Locate that student’s point on the
residual-versus-fitted plot. (If you verbally locate this point, that’s fine. If not,
just circle it on the residual-versus-fitted plot and indicate with letter “f.”)
SOLUTION: This must be the leftmost point on the residual-versus-fitted plot.
This has a fitted value of about 60 and a residual of about -15. Thus, 45 = 60 - 15.
One data point is listed as an unusual observation. Give the three test scores for
this data point. Indicate also what you think is unusual about this point.
SOLUTION: We see directly from the unusual observation note that this is point
19, with Test1 = 42 and Final = 45. It does not take much detective work to
identify Test2 = 12. This is a possibly influential point because of its very
unusual value on Test2.
Based on this output, it’s possible to find the correlation coefficient between
Test1 and Final. What is this correlation?
SOLUTION: This is tricky. The output reveals SStotal = 16,243.6 and we then
use the Seq SS (sequential sums of squares) section to find that the regression of
Final on Test1 (only) would have a regression sum of squares of 5,867.2. Thus,
5,867.2
the R 2 for the regression of Final on Test1 (only) would be
≈ 0.3612.
16,243.6
The simple correlation here is the square root of this, namely 0.3612 ≈ 0.60. Of
course, it’s conceptually possible that this correlation could be the negative square
root, namely -0.60, but that’s quite unlikely in this context.
The F value is given as 12.12. Exactly what hypothesis is being tested with this F
value? What conclusion do you reach about this hypothesis?
SOLUTION: It’s testing H 0 : βTest1 = 0, βTest2 = 0 against the alternative that at
least one of these β’s is different from zero. With a p-value printed as 0.000, we
certainly reject H 0 .
23
gs2012
STAT-UB.0103
Sample Final Exam Problems
(j)
Find the standard deviation of Final. Using this value make a judgment as to
whether the regression was useful.
SStotal
16,243.6
SOLUTION: This standard deviation is available as
=
≈
n −1
23
706.2435 ≈ 26.58. The standard error of regression is sε = 18.95. Thus, the noise
remaining after the regression was pleasantly less than 26.58, so we’d say that the
regression was fairly useful. This is a situation of course where we do not want the
regression to be too useful. After all, if the final exam was easily predictable, why give
it?
B2. The formula that covers this is n ≥
F z σI
H E K
α /2
2
and we will use E = $25, σ = $80,
1 - α = 0.90, α = 0.10, zα/2 = 1.645. The result is
F 1.645 × $80 IJ
n≥ G
H $25 K
2
≈ 27.71
and we will recommend a sample of size n = 28.
B5.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
In a single sample x = 141.2 and s = -32.1. IMPOSSIBLE. Standard deviations
cannot be negative.
In a very strong linear relationship, the correlation was found as r = 1.18.
IMPOSSIBLE. Correlations cannot exceed 1.
In a single sample x = 15.2 and s = 33.5. COULD HAPPEN.
In a regression of Y on X, we computed sY = 21.04 and sε = 21.52. COULD
HAPPEN. It’s far more common to have sY > sε, but the situation given here is
possible.
In a very strong multiple regression, the F statistic was found as F = 12,810.
COULD HAPPEN.
A hypothesis test was done at the 5% level of significance, and H 0 was rejected.
With the same data, but using the 1% level of significance, H 0 was again
rejected. COULD HAPPEN. Indeed rejection at the 1% level implies rejection
at the 5% level.
With a single sample of n = 22 values, the 95% confidence interval for µ was
found as 85.0 ± 6.2 and the null hypothesis H 0 : µ = 92 (tested against
alternative H1 : µ ≠ 92) was accepted at the 5% level of significance.
IMPOSSIBLE. There is an exact correspondence for the t test; H 0 is accepted
if and only if the comparison value is inside the confidence interval.
Based on a sample of n = 131 yes-or-no values, the 95% confidence interval for
the binomial parameter p was found to be 0.711 ± 0.083. Also, the null
hypothesis H 0 : p = 0.61 (versus alternative H1 : p ≠ 0.61) was rejected at the 5%
24
gs2012
STAT-UB.0103
Sample Final Exam Problems
(i)
(j)
(k)
()
(m)
(n)
(o)
(p)
(q)
(r)
level of significance. COULD HAPPEN. For the binomial situation, there is not
necessarily exact agreement between the test and the confidence interval. Here
however, the comparison value 0.61 is not even in the interval, so it’s not
surprising that H 0 was rejected.
The hypothesis H 0 : µ = 1.8 regarding the mean of a continuous population was
tested against alternative H1 : µ ≠ 1.8 at the 0.05 level of significance, using a
sample of size n = 85. Unknown to the statistical analyst, the true value of µ was
1.74 and yet H 0 was still accepted. COULD HAPPEN. This is just a real-life
case of Type II error.
Sherry had a set of data of size n = 6 in which the mean and median were
identical. COULD HAPPEN. Here is such a data set: 3 4 5 5 6 7.
In comparing two samples of continuous data, Miles assumed σx = σy while Joy
allowed σx ≠ σy. With α = 0.05, Miles accepted null hypothesis H 0 : µx = µy
while Joy, also using α = 0.05, rejected the same null hypothesis. COULD
HAPPEN. The procedures are slightly different, and it’s certainly possible that
one could accept and one could reject.
In comparing two samples of continuous data, the standard deviations were found
to be sx = 42.4 and sy = 47.2; also, the pooled standard deviation was found to be
sp = 48.5. IMPOSSIBLE. The pooled standard deviation must be between sx
and sy.
Martha had a sample of data x1 , x 2 ,..., x n in inches and tested the hypothesis
H 0 : µ = 10 inches against the alternative H1 : µ ≠ 10 inches. Edna converted
the data to centimeters by multiplying by 2.54 cm
in and tested H 0 : µ = 25.4 cm
against H1 : µ ≠ 25.4 cm. Martha accepted the null hypothesis while Edna
(using the same α) rejected it. IMPOSSIBLE. The t test carries consistently
across changes of units.
Based on a sample of 38 yes-or-no values, the estimate p was found to be 0.41.
x
IMPOSSIBLE: There is no integer x for which
would round to 0.41. You can
38
15
16
check that
≈ 0.3947 ≈ 0.39 and
≈ 0.4211 ≈ 0.42.
38
38
In a regression involving dependent variable Y and possible independent variables
G, H, K, L, and M, the regression of Y on (G, H, L) had R 2 = 53.2% and the
regression of Y on (G, K, M) had R 2 = 56.4%. COULD HAPPEN. The sets of
predictors are not nested, so there is no required ordering on the R 2 values.
(a linear programming problem)
In a regression involving dependent variable D and possible independent variables
R, S, and V, the F statistic was significant at the 5% level while all three t statistics
were non-significant at the 5% level. COULD HAPPEN. In situations with
strong collinearity, this is easily possible.
For a regression with two independent variables, it was found that SSregr = 58,400
and SSerror = 245,800. COULD HAPPEN. There are no required
interrelationships involving these two quantities.
25
gs2012
STAT-UB.0103
Sample Final Exam Problems
(s)
(t)
In a linear regression problem, AGE was used as one of the independent
variables, even though AGE = 6 for every one of the data points (which were
first-grade children). The estimated coefficient was found to be bAGE = 0.31.
IMPOSSIBLE. If all values of AGE are identical, then the regression cannot be
performed.
(a linear programming problem)
B6. For part (a), we let X be the random amount in one bottle. We can ask for the
probability that a bottle will be in control as
P[ 7.88 ≤ X ≤ 8.12 ] = P
. − 8.00 O
LM 7.88 − 8.00 ≤ X − 8.00 ≤ 812
0.05
0.05 PQ
N 0.05
= P[ -2.40 ≤ Z ≤ 2.40 ] = 2 × P[ 0 ≤ Z ≤ 2.40 ] = 2 × 0.4918 = 0.9836
The probability that the bottle will be out of control is 1 - 0.9836 = 0.0164. This solves
(a), and we can call this answer γ.
For (b), the probability of no bottles out of control in 16 inspections is (1 - γ)16 = 0.983616
≈ 0.7675.
For (c), the probability of exactly one bottle out of control in 16 inspections is
16
16
15
1− γ γ1 =
0.983615 0.01641 ≈ 0.2048.
1
1
FG IJ a f
H K
FG IJ
H K
For part (d), we can ask for the probability that a bottle will be in control as
P[ 7.88 ≤ X ≤ 8.12 ] = P
. − 7.98 O
LM 7.88 − 7.98 ≤ X − 7.98 ≤ 812
0.06
0.06 PQ
N 0.06
≈ P[ -1.67 ≤ Z ≤ 2.33 ] = P[ 0 ≤ Z ≤ 1.67 ] + P[ 0 ≤ Z ≤ 2.33 ]
= 0.4525 + 0.4901 = 0.9426
The probability that the bottle will be declared out of control is then 1 - 0.9426 =
0.0574.
B8. The assumption should be that these are samples from populations with equal
standard deviations. The calculation depends on the pooled standard deviation, found as
follows:
(24 − 1) × 942 + (30 − 1) × 802
s 2p =
≈ 7,477.4615; sp = 7, 477.4615 ≈ 86.47
24 + 30 − 2
It is no surprise that sp is about halfway between 80 and 94. The professional-minusacademic confidence interval is then
26
gs2012
STAT-UB.0103
Sample Final Exam Problems
24 + 30
24 × 30
The value 2.0067 is t0.025;52 . If your t table does not a line for 52 degrees of freedom, you
might reasonably use t0.025;∞ = 1.96. Numerically the interval is -40 ± 47.52. This is
(-87.52, +7.52) or about (-88, +8).
(1,410 – 1,450) ± 2.0067 × 86.47
If you had used 1.96, the interval would have been -40 ± 46.14. This works out to
(-86.14, +6.14), or about (-86, +6). You can see that, by using 1.96, you would get a
slightly shorter interval. This is a bit dishonest, but many people do it.
C2. The probability that a group of five will be unanimous in favor of the new product is
0.405 = 0.01024. Thus, the probability that it will not be unanimous in favor of the new
product is 1 - 0.405 = 0.98976. The probability that 60 such panels will be
non-unanimous is then ( 1 - 0.405 )60 ≈ 0.5393. Thus, there is about a 54% chance that,
even after 60 tries, Thumbs Up will be unable to find a unanimous panel.
C4. The formula governing these situations is
2
z σ
n ≥ α /2
E
F
H
I
K
F 1.96 × $250 IJ ≈ 42.68. This
Use z = 1.96, E = $75, and σ = $250. Then n ≥ G
H $75 K
should be moved up to n = 43.
F 1.96 × $250 IJ ≈ 10.67. This
Use z = 1.96, E = $150, and σ = $250. Then n ≥ G
H $150 K
2
(a)
α/2
2
(b)
(c)
(d)
α/2
should be moved up to n = 11, and with a small sample size one should also stick
in the assumption that the sampled population is normal.
This will work out exactly as (a), in which E = 0.3 σ.
This is still a 95% confidence interval. Once the sample size is stated, all the
other probabilities follow automatically. An interesting situation occurs when s is
bigger than the prior guess at σ; although the confidence interval is still correct,
you no longer believe (after the fact) that x is within E of the true value µ.
27
gs2012
STAT-UB.0103
Sample Final Exam Problems
C5. For part (a), the probability is 0.44 = 0.0256 ≈ 2.5%.
For part (b), you have to compare
12
P[ 4 purchases ] =
× 0.4 4 × 0.68 = 495 × 0.4 4 × 0.6 8
4
with
12
P[ 5 purchases ] =
× 0.4 5 × 0.6 7 = 792 × 0.4 5 × 0.6 7
5
FG
H
FG
H
4
Thus we ask 495 × 0.4 × 0.6
0.67, we rephrase this as
495 × 0.6
how
related
?
IJ
K
IJ
K
8
how
related
?
792 × 0.4 5 × 0.6 7 .
By canceling factors 0.44 and
792 × 0.4
The values being compared are 297 (left) and 316.8 (right). The number on the right is
bigger, so that five purchases are more likely than four.
In part (c), the probability of n out of n purchases is 0.4n. We ask for the smallest n for
which 0.4n ≤ 0.10. This is easily done by trial-and-error:
0.41 = 0.40
0.42 = 0.16
0.43 = 0.064
This exceeds 0.10.
This exceeds 0.10.
This is below 0.10.
Thus n = 3 is the smallest.
In part (d), we have
P[ at most one does not purchase] = P[ n-1 or n make purchase ]
=
FG n IJ × 0.4
H n − 1K
n −1
× 0.6 + 0.4 n
= n × 0.4 n −1 × 0.6 + 0.4 n = 0.4n-1 (0.6n + 0.4)
For n = 5, this is 0.44 × 3.4 = 0.08704 ≈ 9%.
C6.
(a, b) We are testing H0: µ1 = µ2 versus H1: µ1 ≠ µ2, where µ1 and µ2 are the means of
the two populations being compared.
(c)
ITEM 1 is not making an assumption about σ1 and σ2. It is permitting σ1 ≠ σ2.
28
gs2012
STAT-UB.0103
Sample Final Exam Problems
(d)
(e)
(f)
(g)
(h)
(i)
(j)
ITEM 2 is using the assumption σ1 = σ2, where the σ’s are the standard deviations
of the two populations.
Reject H0 as the p-value is 0.04.
Accept H0 as the p-value is 0.093, which exceeds 0.05.
107.06 − 112.87
The expression is
.
4.07 2
9.452
+
9
17
ITEM 3 is suggesting that you should not invoke the assumption σ1 = σ2. There
is a test provided, and the p-value is 0.021, which is significant. The confidence
intervals overlap a little bit, but this does not constitute a test.
As the sample sizes are small, we should invoke the assumption that the samples
come from normal populations.
ITEM 2, which uses the pooled standard deviation, gets the degrees of freedom as
9 + 17 - 2 = 24. ITEM 1 uses an approximation formula for an approximate t
version of the test statistic.
C9. It appears that you should use the two-predictor model (BE, DE). This is the first
model that produces a reasonably small Cp value. Also, the model has an R2 value which
is virtually identical with that for the full model.
C10. In order from 1 to 5, the boxplots are BERRY, COLLAR, ARTICHOKE,
EGGPLANT, DIANTHUS.
D2.
(a) The sample proportion for Attimetrix is p =
450
= 0.625. Then the 95%
720
continuity-corrected confidence interval is

0.625 × 0.375
1 
0.625 ± 1.96
+

720
1, 440 

which is 0.625 ± 0.0361, approximately. This is (0.5889, 0.6611), or about 59% to 66%.
Most people would now use the Agresti-Coull interval. This starts from p =
452
≈ 0.6243, and the interval is given as p ± 1.96
724
out to 0.6243 ± 0.0353. This is (0.5890, 0.6596
p (1 − p )
. This works
n+4
(b) It would seem that, for the Attimetrix data, that H0: p = 0.58 would be rejected, as it
is outside the confidence interval. However, this is an approximate correspondence, so
we ought to check. The test statistic is
29
gs2012
STAT-UB.0103
Sample Final Exam Problems
Z =
n
pˆ − p0
p0 (1 − p0 )
=
720
0.625 − 0.58
≈ 2.4465
0.58 × 0.42
This is easily outside the interval (-1.96, 1.96), so we reject the null hypothesis.
D3. Certainly for part (a) we use H0: µS = µM versus H1: µS ≠ µM . There is nothing in
this problem which should lead you to a one-sided H1.
Part (b) asks for sp. This will be found as
sp =
(15 − 1) × 2.12
+ (12 − 1) × 2.92
15 + 12 − 2
=
14 × 2.12 + 11× 2.9 2
25
≈ 2.4839
15 × 12 6.6 − 8.0
×
≈ -1.4553
15 + 12 2.4839
(d) The t statistic should be compared to t0.025;25 = 2.0595. As | -1.4553 | is not greater
than 2.0595, we accept H0. We do not find a significant difference here between the
management people and the secretarial people.
(c) The t statistic is t =
2
 z σ
D4. The formula governing this situation is n ≥  α / 2  , where 1 - α is the desired
 E 
correctness probability, E is the error limit, and σ is known (or worst-case) population
standard deviation. Here we should use the pessimistic σ = 0.12.
(a) If Claude wants E ≤ 0.03 with probability 0.90, he should use
2
 1.645 × 0.12 
n≥ 
 ≈ 43.2964
0.03


He’ll need a sample of size 44 for this.
(b) If Claude wants E ≤ 0.04 with probability 0.95, he should use
2
 1.96 × 0.12 
n≥ 
 ≈ 34.5744
 0.04 
He’ll need a sample of size 35 for this.
The results of (a) and (b) are similar because the requests are similar. An answer good to
within 0.03 with probability 90% is compatible to an answer good to within 0.04 with
probability 95%. These sample sizes are large enough to use the Central Limit theorem,
justifying the use of zα/2 , so Claude should get good answers.
30
gs2012
STAT-UB.0103
Sample Final Exam Problems
D5. Let p be the proportion of fraudulent claims. The probability that a sample of n
turns up no bad cases is (1 - p)n . Thus, the probability that the sample turns up at least
one bad (fraudulent) case is 1 - (1 - p)n . We want this to be at least 80%.
(a) Using p = 0.004, we want 1 - (1 - 0.004)n = 1 - 0.996n ≥ 0.80. This statement is
0.996n ≤ 0.20. This can be solved either by trial and error or by logarithms. In logarithm
form, this is
n log 0.996 ≤ log 0.20
or
n≥
log ( 0.20 )
log ( 0.996 )
The inequality direction is reversed, as this results from the division by log(0.996), which
is negative. Any base can be used for these logarithms. The result comes to n ≥ 401.55.
The marketers will need a sample of size 402 in order to have at least an 80% probability
of seeing at least one Campari drinker.
(b) Using p = 0.02, we want 1 - (1 - 0.02)n = 1 - 0.98n ≥ 0.80. This statement is
0.98n ≤ 0.20. Now we solve
log ( 0.20 )
n≥
≈ 79.66
log ( 0.98 )
The required sample size is at least 80.
D6.
(a) The interval is 1.062 ± t0.025;24
s
0.015
, or 1.062 ± 2.0639
. This comes down to
n
25
1.062 ± 0.0062.
(b) About 95% of all the values will be within two standard deviations of the mean.
Thus, an interval for this purpose would be 1.062 ± (2 × 0.015), or 1.062 ±0.03. We can
state that about 95% of all the containers will have specific gravities in the interval
(1.032, 1.092). This interval is distressingly wide. Management should be concerned.
31
gs2012
STAT-UB.0103
Sample Final Exam Problems
D7.
The confidence interval is certainly x ± tα/2;n-1
$1,060 ± 1.96
s
, which here is
n
$445
160
This computes to $1,060 ± $68.95. This interval runs from $991.05 to $1,128.95.
In this context, µ is the true-but-unknown mean of the population of the monthly check
amounts for the customers of this bank.
In setting up this interval, we assume simply that we have a random sample and that this
sample represents only a small proportion of the population. As n is quite large, we have
no need to assume a normal population.
The value $1,120 is inside this confidence interval, so we would certainly accept the null
hypothesis H0: µ = $1,120.
D8. Let the index sequence be T0 = current value = 276, T1, T2, …, T52 . Our problem is
to find c so that P[ T52 > c ] = 0.90.
However, T52 is T0 plus the sum of 52 weekly changes. The sum of 52 random variables
with mean 0.06 and standard deviation 0.24 will itself have mean 52 × 0.06 = 3.12 and
will have standard deviation 52 × 0.24 ≈ 1.7307. Thus, T52 will have mean
276 + 3.12 = 279.12 and standard deviation 1.7307.
c − 279.12 
c − 279.12 
 T − 279.12

P[ T52 > c ] = P  52
>
≈ P Z >

1.7307 
1.7307 

 1.7307
Here Z represents a standard normal random variable, and the ≈ (approximate equal) sign
indicates that we’ve used the Central Limit theorem in approximating the distribution
of T52.
The normal table tells us that P[ Z > -1.28 ] = 0.90. Thus we solve
-1.28 =
c − 279.12
1.7307
The solution is c = 279.12 - 1.28 × 1.7307 ≈ 276.90.
32
gs2012
STAT-UB.0103
Sample Final Exam Problems
D9.
(a)
(b)
(c)
(d)
(e)
There are five predictors, or independent variables, used in this regression.
The sample size n is 76.
sε is, as always, the square root of the residual mean square. Here that value is
1, 000 ≈ 31.62.
We can calculate sy from information in the Total line. This is sy =
220, 000
75
≈ 54.16.
SS regression
150, 000
R2 =
=
≈ 0.6818 = 68.18%.
SS total
220, 000
2
(f)
(g)
(h)
(i)
(j)
s2
 31.62 
R = 1 - ε2 = 1 - 
 ≈ 0.6591 = 65.91%.
sy
 54.16 
With an F statistic of 30, these data would certainly be regarded as significant.
Specifically this means that H0: β1 = β2 = β3 = β4 = β5 = 0 would be rejected.
False. Even though the F is large, it can happen in highly collinear cases that
none of the individual t statistics will be significant.
True. The sums of squares and the mean squares in the analysis of variance table
are all in the units of Y2.
True. Adding a number to all the Y-values changes nothing but b0, the estimate
of β0.
SIDE NOTE: The formula usually given for the adjusted R2 is
n −1
2
Radj
× 1 − R2
= 1 n −1 − K
sε2
This is algebraically identical to 1 - 2 .
sy
2
adj
(
)
D10.
(a) If the x’s are the integers 1, 2, …, 11, then clearly x = 6. To find Sxx , simply do this:
11
Sxx =
∑ ( xi − x )
i =1
2
11
=
∑ ( x − 6)
2
i
i =1
= (1 - 6)2 + (2 - 6)2 + … + (6 - 6)2 + … + (11 - 6)2
= (-5)2 + (-4)2 + …. + 02 + 12 + … + 52 = 2 [ 12 + … + 42 + 52 ] = 110
(b) Yˆ12 = 240 + 5(12) = 240 + 60 = 300.
33
gs2012
STAT-UB.0103
Sample Final Exam Problems
(c) The 95% prediction interval is
300 ± tα/2;n-2 sε
t0.025;9 sε
b
1 x −x
1 + + new
n
Sxx
1 (12 − 6 )
1+ +
11
110
g
2
or 300 ±
2
This is 300 ± 2.2622 × 7.0 × 1.4182, which is about 300 ± 26.84.
(d) Yˆ20 = 240 + 5(20) = 240 + 100 = 340.
(e) The 95% prediction interval is then
340 ± t0.025;9 sε
1 ( 20 − 6 )
1+ +
11
110
2
or about 340 ± 2.2622 × 7.0 × 1.6949
This becomes about 340 ± 26.84.
(f) Certainly the prediction interval in (c), which is done for week 12, is shorter than that
in (d), which is done for week 20. This makes sense. It should be easier to give a
prediction for the very next week, rather than for nine weeks into the future.
E1. The first step is to complete the table by finding the column totals:
Hits
No hits
Total
23
49
72
14
34
48
37
83
120
Against right-handed
pitchers
Against left-handed
pitchers
TOTAL
The null hypothesis could be phrased H0: pR = pL , where the p’s are Skippy’s
probabilities of getting a hit against right-handed and left-handed pitchers. This is tested
through the chi-squared statistic:
2
120 × ( 23 × 34 − 49 × 14 )
120 × 962
2
χ =
=
≈ 0.1042
72 × 48 × 37 × 83
72 × 48 × 37 × 83
The 5% comparison point for chi-squared with one degree of freedom is 3.84. This value
is well below that, so these results are not statistically significant. This should not be a
23
surprise. After all, Skippy is batting
≈ 0.319 against right-handed pitchers and
72
14
≈ 0.292 against left-handed pitchers. These values are not very far apart.
48
34
gs2012
STAT-UB.0103
Sample Final Exam Problems
 P 
P 
E2. If we let Xt = log  t  , then it’s routine to show that log  40  is the sum of 40
 Pt −1 
 P0 
independent normal random variables, each with mean 0 and standard deviation 0.016.
P 
Thus, Y = log  40  will be normally distributed with mean 0 and with standard
 P0 
deviation 0.016 40 ≈ 0.1012. Then we associate the event P40 > $55 with
 $55 
Y > log 
 ≈ 0.0526. We get then P[ P40 > $55 ] = P[ Y > 0.0526 ] =
 $52.18 
0.0526 
 Y
P
>
≈ P[ Z > 0.52 ] = 0.3015.
 0.1012 0.1012 
E3. Complete the table to this:
Stock price rises
on day of report
Stock price falls
on day of report
33
20
53
11
18
29
No previous hints in WSJ
Previous hints in WSJ
TOTAL
TOTAL
44
38
82
2
82 × ( 33 × 18 − 11 × 22 )
82 × 3522
The find χ =
=
≈ 3.9536. This beats the
44 × 38 × 53 × 29
44 × 38 × 53 × 29
comparison point of 3.84, so we would declare the results significantly different (but not
by much).
2
F5. Neither sample size is large, so that to be technically correct, you should assume
(i) that the samples come from normally distributed populations and (ii) the standard
deviations of the populations are equal. Following this, the confidence interval
2
nIS − 1 sIS2 + nMM − 1 sMM
calculation uses sp =
.
nIS + nMM − 2
b
g b
Here the calculation gives sp =
g
a12 − 1f2,400
2
a
f
+ 16 − 1 1,900 2
≈ 2,125.94.
12 + 16 − 2
It should be noted that sp is between sIS and sMM . Here sp is in units of dollars.
The 95% confidence interval for µIS - µMM is then
35
gs2012
STAT-UB.0103
Sample Final Exam Problems
xIS − xMM ± t0.025;26 sp
nIS + nMM
nIS nMM
and numerically this is
12 + 16
12 × 16
$510 ± 2.056 × $2,125.94 ×
or $510 ± $1,669.18. This interval is (-$1,159.18, $2,179.18), which can certainly be
rounded to (-$1,160, $2,180). The fact that this interval includes zero should suggest
that the magazines do about the same in terms of making predictions.
The sample standard deviations are sufficiently close that you shouldn’t even be
tempted to use the unequal-standard deviation version. Nonetheless, if you went
that route, your interval would be
xIS − xMM ± z0.025
s2
sIS2
+ MM
nIS nMM
2,4002 1,9002
+
≈ 840.01. This figure is in
12
16
dollars. The resulting interval is
The square-root part of this is
$510 ± 1.96 × $840.01
which is $510 ± $1,646.42, or -$1,136.42 to $2,156.42. This could be rounded
to ( -$1,140, $2,160). This is very close to the previous interval.
F6. This solution will require the pooled standard deviation sp, which we find as
sp =
( n1 − 1)s12 + ( n2 − 1)s22
=
n1 + n2 − 2
(50 − 1) ⋅ 100.20 2 + (50 − 1) ⋅ 83.732
≈ 92.33
50 + 50 − 2
You might observe that sp is between 100.20 and 83.73.
The interval is then
50 + 50
50 × 50
The value 1.9845 is t0.025;48, but it could reasonably be replaced by t0.025;40 if that is
available in your t table.
(612.26 - 659.65) ± 1.9845 × 92.33 ×
36
gs2012
STAT-UB.0103
Sample Final Exam Problems
The interval numerically works out to -47.39 ± 36.6458 and can be given as
(-84.0358, -10.7442). The fact that this interval does not cover zero should lead you to
conclude that the pay is noticeably better in area 2.
If, for some reason, you decided to use the unequal-standard deviation version, then you
would compute the interval as
100.20 2 83.732
+
(612.26 - 659.65) ± 1.96 ×
50
50
and this simplifies to -47.39 ± 36.1945. This is virtually identical with the interval
above!
F7. It would seem unwise to assume that σNO = σYES , given that sNO = 1,440 and
sYES = 3,570 are so far apart. Thus we’ll use the interval
b
x NO − x YES
g
s12 s22
+
n1 n2
± 1.96
The arithmetic is this:
(10,900 - 11,500) ± 1.96
1,440 2 3,570 2
+
102
94
or
-600 ± 1.96 × 394.8588
or
-600 ± 773.92
This interval is (-1,373.92, 173.92). The fact that the interval covers zero suggests that
the two groups might not be all that far apart. With unequal standard deviations, we’re a
little nervous about answering this question. After all, the real concern might be about
the number of big winners and big losers, which is not exactly a question of the
difference of the means.
Suppose that you unwisely made the assumption that σNO = σYES . You’d then be led
through the calculation that uses the pooled standard deviation. This would be found as
a102 − 1f1,440 + a94 − 1f3,570
2
sp =
2
102 + 94 − 2
≈ 2,681.2727
Now the interval is
bx
NO
− x YES
g±t
0 . 025;194
sp
nNO + nYES
nNO nYES
37
gs2012
STAT-UB.0103
Sample Final Exam Problems
and numerically this is
-600 ± 1.9723 × 2,681.2727 ×
102 + 94
102 × 94
or
-600 ± 756.10
This is not quite identical to the preferred interval above, but the discrepancy is not bad
enough to get upset about. The similarity of these two intervals is shocking, given that
sNO and sYES are rather far apart.
The value 1.9723 is t0.025;194 . If your t table doesn’t have this detail, you could
reasonably use t0.025;∞ = 1.96.
38
gs2012