






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
09_25ans Material Type: Notes; Professor: Stepanov; Class: Methods of Applied Statistics; Subject: Statistics; University: University of Illinois - Urbana-Champaign; Term: Fall 2008;
Typology: Study notes
1 / 10
This page cannot be seen from the preview
Don't miss anything!







Fall 2008
are unknown model parameters.
i
’s are fixed (not random).
i
i
2
i
i i ~ N
2
2
ˆ^ = x
2
2 2
,
i
i = N
2
2 2
i
2 2
e (^) i i
2
i i
2
2
~ χ
2
is located near a college campus, then there is a linear relationship between sales
and the size of the student population. Suppose data were collected from a
sample of 10 Momma Leona’s Pizza restaurants located near college campuses.
Restaurant
Student Population
(1000s)
Quarterly Sales
($1000s)
= 5, ˆ^ = 60
s e
2 = 191.
(^ − )
2 2
i
2
where
2
Rejection Region:
0
Do NOT Reject H
Confidence interval for α : SXX
2
2
ˆ^ ± t ⋅ +
where 2
: α = α 0
2
0
ˆ
d) Construct a 90% confidence interval for α.
2
2
ˆ^ ± t ⋅ +
( )
2 −
: α = 75 vs. H 1
: α < 75. Use a 5% level of significance.
Test Statistic:
2
0
ˆ
( )
568
2 −
Rejection Region:
0
Do NOT Reject H
2 :
( ) ( )
−
2
2
1
2
2
2
2
−
2
2
1
2
2
2
2
where
2
2
2
2
1
and
are the appropriate values of χ
2 distribution
2 .
χ
2
( 8 df ) = 17.54, χ
2
( 87.229 , 701.835 )
Mean response ( y ) for a fixed value of x : μ ( x ) = μ
= α + β x.
( )
2 2 1
Note that α = μ ( x = 0 ), ˆ^ = y ˆ^ if x = 0.
( )
2
2
( )
2 −
j) University of Illinois at Urbana-Champaign has 38 thousand students. The owner
of Momma Leona’s Pizza restaurant chain would agree to open a restaurant near the
UIUC campus, but only if there is enough evidence that the average quarterly sales
Use a 5% level of significance.
x = 38. y ˆ^ = 60 + 5 ⋅ x = 60 + 5 ⋅ 38 = 250.
Test Statistic:
( ) (^ )
568
2 2
e SXX
Rejection Region:
0
Accept H
b) Test the assumption that students do not affect the sales. That is, test
1
Use a 1% level of significance.
= { a 1 , a ∈ R }, dim ( V 0
) = 1, [ ]
V = { a 0
1 + a 1
x , a 0
, a 1
∈ R }, dim ( V ) = 2.
x <- c(2,6,8,8,12,16,20,20,22,26)
y <- c(58,105,88,118,117,137,157,169,149,202)
fit <- lm(y ~ x)
summary(fit)
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-21.00 -9.75 -3.00 11.25 18.
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 60.0000 9.2260 6.503 0.000187 ***
x 5.0000 0.5803 8.617 2.55e-05 ***
Signif. codes: 0 ***' 0.001**' 0.01 *' 0.05.' 0.1 ` ' 1
Residual standard error: 13.83 on 8 degrees of freedom
Multiple R-Squared: 0.9027, Adjusted R-squared: 0.
F-statistic: 74.25 on 1 and 8 DF, p-value: 2.549e-
anova(fit)
Analysis of Variance Table
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x 1 14200.0 14200.0 74.248 2.549e-05 ***
Residuals 8 1530.0 191.
Signif. codes: 0 ***' 0.001**' 0.01 *' 0.05.' 0.1 ` ' 1
confint(fit, level=0.90)
5 % 95 %
(Intercept) 42.843745 77.
x 3.920969 6.
fit lwr upr
[1,] 110 98.583 121.
fit lwr upr
[1,] 250 216.3396 283.
fit lwr upr
[1,] 250 203.6316 296.