STAT 462


Homework 3
STAT 462: Summer 2019

Note: This homework focuses on types of explanatory variables. It is worth 30 points. You are free to discuss answers with your classmates. However, your submission must be written independently and reflect you own understanding of the topics.
This homework is due before class starts on Wednesday, July 31st. You will not need to use R for this homework. We will keep this one quite short!
Part A:

We are going to re-visit the used Cars dataset. It contains the variables below.

Price Price of the car
Miles # miles driven
Make Make of the car; 6 possible compnies
Model Model of the car
Trim Trim of car
Type Type of car: Convertible, Coupe, Hatchback, Sedan, Wagon
Cylinder # cylinders: 4, 6, or 8
Liter Fuel capacity in liters
Doors # of doors on the car: 2 or 4
Cruise Whether the car has cruise control or not
Sound Whether there is a sound system or not
Leather Whether the car has leather fixings or not

We performed multiple linear regression analysis on price (Y) and Miles, Type, Cylinders (as a quantitative variable), Liter, Cruise, Sound, and Leather; where we are considering an interaction between the Miles and Cruise variables. Below is the R output:

STAT 462 generations to do the job, to write R language work, and do the R programming design work, to write Cars dataset coursework

1)(2 pts) Based on this output, can we find the sample size (n)? How many observations are in the sample data? How did you calculate it?
2)(3 pts) Write down the population regression equation.
3)(3 pts) Write down the estimated sample regression equation.
4)(6 pts) Write down the indicator variables describing the Cylinder variable. First consider how many indicators there will be. Then, write them down fully.
5)Interpret the below coefficients:
a.(2 pts) Miles
b.(2 pts) Cruise
c.(2 pts) Miles:Cruise

The question below is separate from the ones above; it does not pertain to the R output presented above.

(10 points) Suppose that we were fitting a simple model. The response variable is Price and the explanatory variables are Miles, Cruise, an interaction between them. Write down the design matrix for this regression, without the actual numbers. Remember, you don’t need to have 804 rows in your matrix. Just write the first 3.

Because professional, so trustworthy. If necessary, please add QQ: 99515681 or email: [email protected]

Micro letter: codehelp

Guess you like

Origin www.cnblogs.com/goodjava/p/11284875.html