Linear Regression vs k-Nearest Neighbors on Boston Housing Prices and U.S. Monthly Climate Data

In this post, I will compare the results of applying linear regression and k-nearest neighbors to two different datasets. Boston Housing Prices You can download this data from the UCI  Machine Learning Repository, at https://archive.ics.uci.edu/ml/datasets/Housing. Alternatively, you can find the Boston data in CSV format at http://github.com/shivathudi/machine-learning/linear_regression_vs_kNN/boston.csv. There are 14 columns and around 500 rows. …