Question

SellingPrice Age Miles 13558 5 61476 13764 8 54397 22905 1 8281 15280 1 24871 16430...

SellingPrice Age Miles
13558 5 61476
13764 8 54397
22905 1 8281
15280 1 24871
16430 2 22139
16645 2 23741
16992 2 47426
18444 2 16865
18849 3 35394
19877 3 29634
11812 6 55785
14901 1 46212
15903 3 37007
16502 5 45473
9415 10 86861
12931 6 77208
15731 9 59603
10536 7 93212
8907 8 48263
11996 6 42434

A) Determine the sample regression equation that enables us to predict the price of a sedan on the basis of its age and mileage. (Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.) [If you are using R to obtain the output, then first enter the following command at the prompt: options(scipen=10). This will ensure that the output is not in scientific notation.]

B) Use the predict() function in R or use the regression output to predict the selling price of a six-year-old sedan with 63,000 miles. (Round answer to 2 decimal places.)

Homework Answers

Answer #1

Solution:

A)

R Code

df<-read.csv(file.choose()) # Choose the csv file which contains the above data
reg_model<-lm(df$SellingPrice~df$Age+df$Miles, data = df) # Regression Line
reg_model

Output:

So the regression line becomes

B)

R code to predict the Sell Price

predict(reg_model,data.frame(Age=6,Miles=63000)) # Predict Sell price for age =6 and miles=63000

Therefore, the predicted sell Price for the 6-year-old sedan with 63,000 miles is 13089.10

Complete R code

df<-read.csv(file.choose())
attach(df)
reg_model<-lm(SellingPrice~Age+Miles, data = df)
reg_model

predict(reg_model,data.frame(Age=6,Miles=63000))


Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
19. The accompanying table shows a portion of data consisting of the selling price, the age,...
19. The accompanying table shows a portion of data consisting of the selling price, the age, and the mileage for 20 used sedans. Selling Price Age Miles 13,632 6 61,524 13,750 4 54,396 ⋮ ⋮ ⋮ 11,968 8 42,398 a. Determine the sample regression equation that enables us to predict the price of a sedan on the basis of its age and mileage. (Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.) [If...
The accompanying table shows a portion of data consisting of the selling price, the age, and...
The accompanying table shows a portion of data consisting of the selling price, the age, and the mileage for 20 used sedans. Selling Price Age Miles 13,604 7 61,459 13,831 7 54,341 ⋮ ⋮ ⋮ 11,951 9 42,432 a. Determine the sample regression equation that enables us to predict the price of a sedan on the basis of its age and mileage. (Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.) [If you...
Following are age and price data for 8 randomly selected ambulances between 1 and 6 years...
Following are age and price data for 8 randomly selected ambulances between 1 and 6 years old.​ Here, x denotes​ age, in​ years, and y denotes​ price, in hundreds of dollars. Use the information to complete parts​ (a) through​ (f). x 6 1 6    2 6    2    4 5 y 280 390 245 350 275 370 335 300 a. Find the regression equation for the data points. y with caret = _____+ ________ x ​(Round to two...
Toyota corporation conducts research on the relationship between the age of a car and its selling...
Toyota corporation conducts research on the relationship between the age of a car and its selling price. Below is the result from a sample of 12 used car dealers. Car Age (years) Selling Price ($000) 1 10 8.3 2 7 6.9 3 14 1.4 4 18 2.4 5 8 6.8 6 8 9.4 7 8 7.5 8 15 5.6 9 13 5.6 10 18 3.1 11 6 9.4 12 6 7.6 Determine the regression equation. (Negative amounts should be indicated...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership during the last year. Car Age (years) Selling Price ($000) 1 10 11.7 2 7 10.7 3 12 5.1 4 13 4.8 5 8 8.0 6 8 13.1 7 8 10.2 8 12 9.6 9 11 9.6 10 13 3.7 11 6 11.5 12 6 10.2...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership during the last year. Car Age (years) Selling Price ($000) 1 10 8.3 2 7 6.9 3 14 1.4 4 18 2.4 5 8 6.8 6 8 9.4 7 8 7.5 8 15 5.6 9 13 5.6 10 18 3.1 11 6 9.4 12 6 7.6...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership during the last year. Car      Age (years)      Selling Price ($000)     1            11            12.2          2            8            11.0          3            16            4.9         ...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car...
The owner of Maumee Ford-Volvo wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership during the last year. Car Age (years) Selling Price ($000) 1 12 10.7 2 8 8.8 3 13 3.0 4 15 2.7 5 10 6.0 6 9 12.1 7 10 9.0 8 13 7.8 9 12 7.8 10 15 4.7 11 6 10.8 12 6 8.9...
The owner of Maumee Motors wants to study the relationship between the age of a car...
The owner of Maumee Motors wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at Maumee Motors during the last year: Car Age (years) Selling Price ($ thousands) Car Age (years) Selling Price ($ thousands) 1 8 $9.5 7 6 $10.0 2 13 5.5 8 2 5.5 3 7 9.7 9 1 9.6 4 15 3.6 10 4 3.1 5 9 3.2 11...
The owner of Maumee Ford-Mercury-Volvo wants to study the relationship between the age of a car...
The owner of Maumee Ford-Mercury-Volvo wants to study the relationship between the age of a car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership during the last year. Car Age (years) Selling Price ($000) Car Age (years) Selling Price ($000) 1 15 12.0 7 13 9.7 2 10 10.1 8 17 9.0 3 17 5.4 9 16 9.0 4 19 4.9 10 19 4.9 5 12 5.6 11 8 11.4...