Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An Asian automobile company aspires to enter the US market by setting up their manufacturing unit there and producing cars locally to give competition to
An Asian automobile company aspires to enter the US market by setting up their manufacturing unit there and producing cars locally to give competition to their US and European counterparts.
They have contracted an automobile consulting company to understand the factors on which the pricing of cars depends. Specifically, they want to understand the factors affecting the pricing of cars in the American market, since those may be very different from the Asian market. The company wants to know:
Which variables are significant in predicting the price of a car
How well those variables describe the price of a car
Based on various market surveys, the consulting firm has gathered a large dataset of different types of cars across the American market.
Business Goal
You are required to model the price of cars with the available independent variables. It will be used by the management to understand how exactly the prices vary with the independent variables. They can accordingly manipulate the design of the cars, the business strategy etc. to meet certain price levels. Further, the model will be a good way for management to understand the pricing dynamics of a new market.
Dataset
The dataset contains the information of cars across the American market. Here is the data dictionary which states a short description of each feature as well as the data type.
Data Dictionary
CarID: Unique id of each observation Integer
CarCompany: Name of car company Categorical
Carbody: Body of car Categorical
Wheelbase: Wheelbase of car Numeric
Carlength: Length of car Numeric
Carwidth: Width of car Numeric
Carheight: Height of car Numeric
Carweight: The weight of a car without occupants or baggage. Numeric
Cylindernumber: Cylinder placed in the car Categorical
Enginesize: Size of car Numeric
Boreratio: Bore ratio of car Numeric
Horsepower: Horsepower Numeric
Citympg: Mileage in city Numeric
Highwaympg: Mileage on highway Numeric
price Dependent variable: Price of car Numeric
Required Analysis
Using the descriptive analytics and regression tools, complete the following steps and report on them.
Detect and handle missing values describe your strategy in the report
Fix invalid values: There seems to be some spelling error in the carcompany column:
maxda mazda; Nissan nissan; porsche porcshce; toyota toyouta; vokswagen volkswagen, vw Fix the misspellings! provide the formulapart of the results
Hint: You may need to use IF function to automate the misspelling replacement.
Using descriptive analytics, complete the following table:
wheelbase carlength curbweight enginesize price
count
mean
standard deviation
min
percentile
percentile
percentile
max
Create two new features share your approach and part of the results:
a feuleconomy: defined as citympg highwaympg
b carsrange: defined according to the following table
price carsrange
Budget
Medium
Highend
What is the average engine size for each car range? Provide the results in a table
Encode the categorical columns: cylindernumber, carbody. Explain the type of encoding you applied for each of them.
Exclude the carID and carcompany columns, obtain a linear regression model for the rest of dataset where price is the target variable, and the rest of columns are features independent variables Discuss the obtained results in detail.
Important: make sure you apply the regression to the dataset that you modified in previous steps.
What is the regression function?
The Company wants to predict the price of one their product which has the following specs:
carbody Hatchback
wheelbase
carlength
carwidth
carheight
carweight
cylindernumber
enginesize
boreratio
horsepower
citympg
highwaympg
Price
What would be a reasonable price based on the predictive model you obtained?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started