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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!