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
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...
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...
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...
age (x): 1, 2, 3, 4, 5, 6, 3, 5, 2, 4 Vocab (y) 3, 220,...
age (x): 1, 2, 3, 4, 5, 6, 3, 5, 2, 4 Vocab (y) 3, 220, 540, 1100, 2100, 2600, 730, 2200, 260, 1200 Predict the vocabulary of a 3.5 year old using your obtained regression line
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...
Consider the data in the following table regarding the age of a particular model of car...
Consider the data in the following table regarding the age of a particular model of car and asking price for that car. Please answer the following questions using the output of Regression analysis from Excel. Alpha is 0.05. Age Asking price 1 11875 1 10222 2 9990 2 8600 3 9000 4 6995 5 4440 5 5500 6 4400 6 4880 8 3900 8 3880 9 3550 9 3620 10 3500 10 3550 13 2100 13 1950 15 1500 3....
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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT