Measure the Performance of a Predictor 

Train a predictor that predicts the median value of properties in a neighborhood of Boston, given some features of the neighborhood.

In[1]:=
Click for copyable input
X
Out[1]=

Get data on the performance of the predictor on a test set.

In[2]:=
Click for copyable input
X
Out[2]=

Compare the predicted values with the actual values.

In[3]:=
Click for copyable input
X
Out[3]=

Plot the residuals.

In[4]:=
Click for copyable input
X
Out[4]=

Compute the standard deviation of the predicted values from the actual values (root mean square of the residuals).

In[5]:=
Click for copyable input
X
Out[5]=

Plot a histogram of the residuals.

In[6]:=
Click for copyable input
X
Out[6]=