Homework    

Home
Chat Room
Data Sets
Grades
Homework
Listserv
Projects
R
Schedule
Syllabus
Tests and Quizzes


Listed below are the assigned homework problems. Although these homework problems will NOT be turned in for a grade, you should expect to see similar problems or these exact problems on tests and projects. You will be at a great disadvantage when taking tests and completing projects without doing these homework problems. Partial answers with R code and output are available for some homework problems.  

bulletChapter 1
bulletRun the R program HS_college_GPA.R.  The data set needed for it is located on the data sets webpage. 
bullet1.20, 1.24, 1.28, 1.45 
bulletPartial answers
bulletNote that all data sets in KNN are on the CD accompanying the textbook.  If your book did not come with it, go to the data sets web page to download them.  
bulletPage 23-24 proofs
bulletChapter 2
bullet2.2, 2.5, 2.11, 2.12, 2.14 (replace d. with: use R to create a scatter plot with the estimated regression line, 90% C.I., bands, and 90% P.I. bands), 2.24 (only a.-c., do not do the Table 2.3 part), 2.30, 2.31 (a.-c.), 2.64.   
bulletPartial answers
bulletChapter 3
bullet

3.4 - Skip b.  For a, use box and dot plots.  For c, use a histogram.  For e, use a QQ-plot with a normal distribution and skip the correlation part.  For g, also use Levene's test.  

bullet3.8 - For a, use box and dot plots.  For b, use a histogram of the residuals or semistudentized residuals.  For d, use a QQ-plot with a normal distribution and skip the correlation part.  For e, use the median of X instead of 69. 
bullet3.27 - use examine.mod.simple() to examine the models in part a.
bulletReproduce the Box-Cox transformation results for the example on p. 136.  See the partial answers below for more on this problem. 
bulletPartial answers
bulletOld STAT 870 project: Diamond_data_set.doc, diamond_prices.xls
bulletChapter 4
bullet4.3 (only b.-c.), 4.7 (only a. and c. using the Bonferroni procedure), 4.27 (only a.-b. and d. using the Bonferroni procedure), and the extra problem in the partial answers document (data set: SO2.DAT)
bulletPartial answers
bulletChapter 5
bullet5.4, 5.12, 5.23
bulletFind the following for the copier maintenance data set (see #1.20) using matrix methods (do not use lm()): b, Y^, e, SSTO, SSE, Cov^(b), 95% C.I. for E(Yh) at Xh=6, and 95% P.I. for Yh(new) at Xh=6. 
bullet Partial answers
bulletChapter 6
bullet6.15(a.-e., g.)
bulletFor a: Do box and dot plots instead and include Y
bulletFor d: Skip
bulletFor e: Use the semi-studentized residuals; do not examine the two-factor interaction; include a histogram with normal distribution overlay
bulletFor f: Skip
bulletFor g: Do Levene's test as well (once for each predictor variable - there is not a good way to divide the data)
bulletAlso, perform the Box-Cox procedure and comment on its results
bulletYou may use examine.mod.multiple.R to help answer this problem
bullet6.16, 6.17
bullet6.30
bulletFor a: Do box and dot plots instead
bulletFor d.: Also calculate and interpret  the adjusted R2
bulletFor e.: Don't do the two factor interaction plots
bulletYou may use examine.mod.multiple.R to help answer this problem. 
bullet Supplementary problems (download Word file)
bulletPartial answers
bulletChapter 7
bullet7.5, 7.6, 7.14, 7.26, 7.38
bulletPartial answers
bulletChapter 8
bullet8.38
bulletFor part a., use examine.mod.multiple.R to examine the model
bulletAlso, construct a scatter plot of the data with the second-order sample model plotted upon it.  Use this to help justify your results in c. 
bullet8.40
bullet8.41
bulletPartial answers
bulletChapter 9
bullet9.10
bulletFor part a., use examine.mod.multiple.R to examine the model
bullet9.11
bullet9.18
bulleta. Use AIC and hypothesis test methods
bullet9.21
bulletThe last sentence refers to material in Section 9.5 (wait until this section to answer the question)
bullet9.25
bulletFor part a., use examine.mod.multiple.R to examine the model
bulletFor part c., see p. 358 for what KNN refers to as "bias" (paragraph below equation 9.10)
bulletPartial answers
bulletChapter 10
bullet10.7, 10.11, 10.17
bullet10.27
bulletUse examine.mod.multiple.final.R to help answer the questions
bulletb: You do not need to do the formal normality test
bulletd: Replace the dot plot with the plot created by examine.mod.multiple.final()
bullet9.27 (model validation problem)
bulletPartial answers
bulletChapter 11
bulletReproduce the example on p. 427-9 of KNN
bulletKNN uses my "method #4" for obtaining the weights
bulletTry putting the data into 5 groups to obtain weights also; compare these results to those obtained by KNN
bullet11.11
bulletInstead of b.-e., use LMS and LTS to fit the model and plot it; compare the estimates to least squares
bullet11.25
bulletb: Use a 3D plot instead of a contour plot; examine a full second-order model as well
bulletc: Use loess() with q = 9/25
bulletd: Use a 3D plot instead and make sure to put it on the same scale as in b for comparison purposes
bulletPartial answers

  Copyright 2012 Christopher R. Bilder