regression

Diamonds - Part 3 - A polished gem - Building Non-linear Models

Other posts in this series: Diamonds - Part 1 - In the rough - An Exploratory Data Analysis Diamonds - Part 2 - A cut above - Building Linear Models In a couple of previous posts, we tried to understand what attributes of diamonds are important to determine their prices. We showed that carat, clarity and color are the most important predictors of price. We arrived at this conclusion after doing a detailed exploratory data analysis.

Diamonds - Part 2 - A cut above - Building Linear Models

In a previous post in this series, we did an exploratory data analysis of the diamonds dataset and found that carat, x, y, z were strongly correlated with price. To some extent, clarity also appeared to provide some predictive ability. In this post, we will build linear models and see how well they predict the price of diamonds. Before we do any transformations, feature engineering or feature selections for our model, let’s see what kind of results we get from a base linear model, that uses all the features to predict price: