MTH 542/642 H Fall 2015
Homework # 2 Solutions
Problem 1. (Agresti/ Statistics) The House Selling Prices FL data file lists selling prices of homes in
Gainesville, FL, in 2003 and some predictors for the selling price. To be able to work with these data,
MTH 542/642 H Fall 2015
Homework # 3 Solutions
Problem 2.15
a) Obtain a scatter plot of Length versus Age. Plot the OLS line (using the abline command) , give a title and
label the axes of the plot.
> plot(Length~Age,main="West Bearskin Lake Smallmouth Ba
MTH 542 H Fall 2015
Homework # 1 Solutions
Problem 1. Consider the data in UBSprices from the package alr4. You need to have this package
installed to access it with the command install.packages(alr4).
The data file is explained in problem 2.2 on page 39
MTH 542 Chapter 3
Fuel Consumption Data
Response variable: Fuel = gasoline sold per person (>16 years old) = 1000*FuelC /Pop
Predictors: - Tax = Gasoline state tax rate, cents per gallon
- Dlic = proportion of licensed drivers in a state = 1000*Drivers /P