Wolfram Data Repository
Immediate Computable Access to Curated Contributed Data
Housing values in suburbs of Boston
Originator: David A. Belsley, Edwin Kuh, and Roy E. Welsch
View the data:
| In[1]:= | ![ResourceData[
ResourceObject["Sample Data: Boston Homes"]]](https://www.wolframcloud.com/obj/resourcesystem/images/50d/50d5d423-3a98-48f5-a759-9bbe769ae059/3c62ee3c82fa1b52.png) | 
| Out[1]= |  | 
Compare AGE to NOX values:
| In[2]:= | ![ListPlot[ResourceData[
ResourceObject["Sample Data: Boston Homes"]][All, {"AGE", "NOX"}]]](https://www.wolframcloud.com/obj/resourcesystem/images/50d/50d5d423-3a98-48f5-a759-9bbe769ae059/74fea895f48c6d2e.png) | 
| Out[2]= |  | 
Train a predictor:
| In[3]:= | ![p = Predict[ResourceData["Sample Data: Boston Homes", "TrainingData"]]](https://www.wolframcloud.com/obj/resourcesystem/images/50d/50d5d423-3a98-48f5-a759-9bbe769ae059/365368c5da0fb9b3.png) | 
| Out[3]= |  | 
Obtain general information about the predictor:
| In[4]:= | ![Information[p]](https://www.wolframcloud.com/obj/resourcesystem/images/50d/50d5d423-3a98-48f5-a759-9bbe769ae059/2da40fe8c5648adc.png) | 
| Out[4]= |  | 
Visualize the accuracy of the predictor on the test dataset:
| In[5]:= | ![PredictorMeasurements[p, ResourceData["Sample Data: Boston Homes", "TestData"]]["ComparisonPlot"]](https://www.wolframcloud.com/obj/resourcesystem/images/50d/50d5d423-3a98-48f5-a759-9bbe769ae059/25f0883962aae2a9.png) | 
| Out[5]= |  | 
Wolfram Research, "Sample Data: Boston Homes" from the Wolfram Data Repository (2020) https://doi.org/10.24097/wolfram.29771.data