The Diamond Data Example

An annotated notebook (right-click and Download as 07-Regression1/Diamonds.ipynb) has been prepared, based on existing published notebooks but with enhancements a) to include new features and b) to provide extra explanations of what is happening.

The workbook includes two short exercises:

  1. Mean-centre the data and interpret the results
  2. Display the residuals and check certain properties graphically

Note that centring data by its mean is generally good advice

Resources

The data file (right-click and Download as 07-Regression1/data/diamond.dat.txt) is available.