Wolfram Research

Sample Data: Boston Homes

Housing values in suburbs of Boston

Originator: David A. Belsley, Edwin Kuh, and Roy E. Welsch

Home values for 506 Boston suburbs with potential influential factors (such as the crime rate, number of rooms, distance to employment centers, etc.). The test and training sets were obtained by creating a random sample of 30% of the data for the test set, using the rest for training.

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["Sample Data: Boston Homes"]
Out[1]=

View the data:

In[2]:=
ResourceData["Sample Data: Boston Homes"]
Out[2]=

Visualization

Compare AGE to NOX values:

In[3]:=
ListPlot[ResourceData["Sample Data: Boston Homes"][
  All, {"AGE", "NOX"}]]
Out[3]=

Analysis

Train a predictor:

In[4]:=
p = Predict[ResourceData["Sample Data: Boston Homes", "TrainingData"]]
Out[4]=

Obtain general information about the predictor:

In[5]:=
Information[p]
Out[5]=

Visualize the accuracy of the predictor on the test dataset:

In[6]:=
PredictorMeasurements[p, 
  ResourceData["Sample Data: Boston Homes", 
   "TestData"]]["ComparisonPlot"]
Out[6]=

Wolfram Research, "Sample Data: Boston Homes" from the Wolfram Data Repository (2019) https://doi.org/10.24097/wolfram.29771.data

Data Resource History

Source Metadata

Data Downloads

Publisher Information