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. …

Predicting Life Expectancy using Decision Tree Ensembles

In this post, I will predict life expectancy for the “average” person born in a certain year in one or more countries. I gathered all my data from Gapminder. For the predictor variables, I used birth rates, mortality rates (male, female, under5, and infant), HIV rates, GNI, and Internet usage rates. You can find this data in a …