- Project Overview
- Project Details
- Project Submission
- Results
- Licensing, Authors, and Acknowledgements
A jewelry company wants to put in a bid to purchase a large set of diamonds, but is unsure how much it should bid. In this project, you will use the results from a predictive model to make a recommendation on how much the jewelry company should bid for the diamonds.
US Number System
- All numbers that will be presented in this Nanodegree program will be based on the US numbering system where 5,269 is "five thousand two hundred sixty nine" and 158.1 is "one hundred fifty eight point one" where 1 is a decimal number. This is very important so please take note of this.
A diamond distributor has recently decided to exit the market and has put up a set of 3,000 diamonds up for auction. Seeing this as a great opportunity to expand its inventory, a jewelry company has shown interest in making a bid. To decide how much to bid, the company’s analytics team used a large database of diamond prices to build a linear regression model to predict the price of a diamond based on its attributes. You, as the business analysts, are tasked to apply that model to make a recommendation for how much the company should bid for the entire set of 3,000 diamonds.
The following diagram represents the analysis at a high level. Since the model is already built, your analysis will focus on the right side of the diagram.
The linear regression model provides an equation that you can use to predict diamond prices for the set of 3,000 diamonds. The equation is below:
Price = -5,269 + 8,413 x Carat + 158.1 x Cut + 454 x Clarity
- diamonds.csv contains the data used to build the regression model.
- new_diamonds.csv contains the data for the diamonds the company would like to purchase.
For each diamond, plug in the values for each of the variables into the linear model (equation). Then solve the equation to get the estimated, or predicted, diamond price. We suggest using a spreadsheet tool like Excel, Numbers, or Google Sheets. You could also do it in Alteryx and/or Tableau if you already have your license.
Now that you have the predicted price for each diamond, it’s time to calculate the bid price for the whole set. Note: The diamond price that the model predicts represents the final retail price the consumer will pay. The company generally purchases diamonds from distributors at 70% of that price, so your recommended bid price should represent that.
To complete this project, you will be submitting a file in pdf format that contains the answers to the following questions across three steps.
- According to the linear model provided, if a diamond is 1 carat heavier than another with the same cut and clarity, how much more would the retail price of the heavier diamond be? Why?
- If you were interested in a 1.5 carat diamond with a Very Good cut (represented by a 3 in the model) and a VS2 clarity rating (represented by a 5 in the model), what retail price would the model predict for the diamond?
Step 2 - Visualize the Data: Create two scatter plots. If you're not sure what a scatter plot is, see here.
- Plot 1 - Plot the data for the diamonds in the database, with carat on the x-axis and price on the y-axis.
- Plot 2 - Plot the data for the diamonds for which you are predicting prices with carat on the x-axis and predicted price on the y-axis.
- Note: You can also plot both sets of data on the same chart in different colors.
- What strikes you about this comparison? After seeing this plot, do you feel confident in the model’s ability to predict prices?
- What bid do you recommend for the jewelry company? Please explain how you arrived at that number.
All the results(including graphs) are in the Project 1.pdf File.
Must give credit to Udacity to providing this data. You can find the Licensing for the data and other descriptive information at Udacity Page.