October 11, 2018

Objective

The purpose of the corresponding shiny application is to predict diamond price from carat and selected cut,color and clarity.

How it Works

  • This app loads the diamonds dataset from ggplot2 package
  • The dataset contains the prices and other attributes of almost 54,000 diamonds
  • You may choose the carat, and select the quality of cut, color and clarity of your diamond to predict the price
  • A plot with regression based on your selection is shown with the predicted price highlighted

Sample Plot

Carat: 3; Cut: Idea; Color: D; Clarity: IF

Predicted Price (USD): 54998.67

Conclusion