Sample Data: Boston Homes

Source Notebook

Housing values in suburbs of Boston

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

Details

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

View the data:

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

Visualization

Compare AGE to NOX values:

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

Analysis

Train a predictor:

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

Obtain general information about the predictor:

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

Visualize the accuracy of the predictor on the test dataset:

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

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

Data Resource History

Source Metadata

Data Downloads

Publisher Information