Question
Load the data set diamonds from the ggplot2 library. How many rows are there? How many columns? Which fields are categorical? Perform some basic EDA.
Load the data set diamonds from the ggplot2 library.\ How many rows are there? How many columns? Which fields are categorical?\ Perform some basic EDA. Which variables seem most closely related? Which seem least related?\ Using only the numerical features, fit a linear regression model to predict the price.\ Using visualization, determine which is any of the factors you wish to recode as numerics. If so, make that recode (you should be able to figure this out, but you can always google it or ask me).\ With the recoded variables, find a linear model you like to predict price.
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