MATH 4387
Yunzhou Li
HW3
2.1
he dataset teengamb concerns a study of teenage gambling in Britain. Fit a regression model with
the expenditure on gambling as the response and the sex, status, income and verbal score as
predictors. Present the output.
(a) W
Applied Regression Analysis
Homework 1 Solutions
Exercise 1.1 (modified): The teengamb dataset in the faraway package concerns a study of
teenage gambling in Britain. Make a numerical and graphical summary of the data, commenting on
what you notice.
Applied Regression Analysis
Permutation Tests and Confidence Intervals
Exercises 3.1, 3.5, 3.6, and 3.7 from LMWR2.
Notes:
For 3.1 (b), make sure to clearly state " and # , provide the graph of the joint confidence
region, and then explain your c
Applied Regression Analysis
Parameter Estimation Homework
Problems: 2.1, 2.3, 2.4, 2.5, 2.6, 2.7 from LMWR2. For 2.1 a, comment on whether it seems like
" is an adequate description of model fit based on a plot of vs .
Final problem: Suppose that % ,
Applied Regression Analysis
Regression Diagnostics Homework
Exercises 6.2, 6.8 from LMWR2. Exercise 6.4 is recommended, but not required.
6.2
Using the teengamb dataset, fit a model with gamble as the response and the other
variables as predict
Applied Regression Analysis
General F Test
3.3, 3.4 from Chapter 3 of LMWR2. For each hypothesis test (3.3 c, 2 in 3.4a, 3.4b), make sure to
clearly stat " and # , calculate the test statistic (plug the numbers into the formula for or ),
provide th
Applied Regression Analysis
Prediction Solutions
Exercises 4.2 and 4.5 from LMWR2. Note that in 4.2, a male with average values of the predictors is
a male who has the average value of the predictors among all individuals (male and female), not
just
MATH 4387 HW2
Yunzhou Li
1:
y f ( y ) dy
E(Y ) =
y ey dy
=
0
0
2
E( Y
=
y
1
=
2
f ( y ) dy
=
0
V(Y) = E( Y 2 
y 2 ey dy
=
2
2
1
2
0
E(Y )2 =

1
2
=
2
2
2:
1
4
+2 =
+2
1
16
V(4Y+2) = V(4Y) = 16V(Y) =16 2 =
2
E(4Y+2) = 4E(Y)+2 = 4
3:
1
f x = 6 ( 1 y
MATH4387 HW5
Yunzhou Li
3. Using the teengamb data, fit a model with gamble as the response and the other variables as
predictors.
(a) Which variables are statistically significant at the 5% level?
sex and income are statistically significant at the 5% l
MATH 4387
HW4
Yunzhou Li
1.Consider a simple linear regression of log(fertility) on pctUrban using the UN11 data set in the
alr4 package.
a.
Write the model you are fitting (in terms of the mean of log(fertility conditional on
knowing the value of pctUrba
Applied Regression Analysis
Categorical Predictors Homework
Scientists wished to compare growth rates of two different types of bacteria. The
growth was recorded at five equally spaced times for bacteria types A and B. The
data will be in a data frame
Applied Regression Analysis
Homework 2 Random Variables and Matrices Review
Note: make sure to write out any sum or integral you need to compute, even if you use a computer
to actually compute the sum or integral.
1. Suppose that a random variable
Applied Regression Analysis
Main Effects Interpretation
1. Fit a simple linear regression of log(fertility) on pctUrban using the UN11 data set in
the alr4 package.
a. Write the model you are fitting (in terms of the mean of log(fertility)
conditiona