Business Analytics > EXAM > FALL2021_-_Midterm_Exam_1_Part_2_Solutions (1) (All)

FALL2021_-_Midterm_Exam_1_Part_2_Solutions (1)

Document Content and Description Below

FALL2021_-_Midterm_Exam_1_Part_2_Solutions (1)Midterm Exam 1 - Open Book Section (R) - Part 2 Recommended Packages library(car) ## Loading required package: carData Car Price Data Analysis For th... is exam, you will be building a model to predict the price of second-hand cars (price). The “USA_cars_datasets.csv” data set consists of the following variables: • price: price of the second-hand car • brand: brand of the car • year: year of the car • title_status: clean vehicle or salvage insurance • mileage: mileage driven of the car • color: color of the car • users: number of previous users of the car Read the data and answer the questions below. Assume a significance threshold of 0.05 for hypothesis tests unless stated otherwise. # Read the data set cars = read.csv('USA_cars_datasets.csv', header=TRUE) #Set brand and title_status as categorical cars$brand<-as.factor(cars$brand) cars$title_status<-as.factor(cars$title_status) head(cars) ## price brand year title_status mileage color users ## 1 6300 toyota 2008 clean vehicle 274117 6 3 ## 2 2899 ford 2011 clean vehicle 190552 10 2 ## 3 5350 dodge 2018 clean vehicle 39590 3 1 ## 4 25000 ford 2014 clean vehicle 64146 4 1 ## 5 27700 chevrolet 2018 clean vehicle 6654 3 1 ## 6 5700 dodge 2018 clean vehicle 45561 7 1 Note: For all of the following questions, treat all variables as quantitative variables except for brand, and title_status. They have already been converted to categorical variables in the above code. Question 1 - 5pts Create an ANOVA model, called anovamodel, to compare the mean car price (price) among the different car brands (brands). Display the corresponding ANOVA table. A) Identify the value of the mean squared error (MSE) from the ANOVA table. B) Provide the formula that is used to calculate the MSE in the table, and clearly explain what this quantity rep [Show More]

Last updated: 2 years ago

Preview 1 out of 19 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$7.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

116
0

Document information


Connected school, study & course


About the document


Uploaded On

Aug 19, 2022

Number of pages

19

Written in

Seller


seller-icon
AMAZING GRACE

Member since 3 years

140 Documents Sold

Reviews Received
9
2
2
0
8
Additional information

This document has been written for:

Uploaded

Aug 19, 2022

Downloads

 0

Views

 116

Document Keyword Tags

Recommended For You

Get more on EXAM »

$7.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·