Simple Linear Regression
1. Regression with Python
![An example of analytics with Python An example of a Linear Regression](/images/2018-8-16-intro_6_1.png)
2. Simple Linear Regression
![Simple Linear Regression Simple Linear Regression](/images/2018-8-16-simple-regression_17_0.png)
3. Multiple Regression
![Multiple Regression Multiple Regression](/images/2018-8-16-multiple-regression_55_1.png)
4. Local Regression
![k-nearest Neighbors Regression k-nearest Neighbors Regression](/images/2018-8-16-knn.png)
5. Anomaly Detection - K means
![K means Clustering K means Clustering](/images/2018-8-16-k-means-crime_11_2.png)
6. Anomaly Detection - Outliers
![Anomaly Detection - Outliers Anomaly Detection - Outliers](/images/2018-8-16-anol.png)
In this notebook you will use data on house sales in King County from Kaggle to predict house prices using simple (one input) linear regression. You will:
- Use graphlab SArray and SFrame functions to compute important summary statistics
- Write a function to compute the Simple Linear Regression weights using the closed form solution
- Write a function to make predictions of the target given the input feature
- Turn the regression around to predict the input given the target
- Compare two different models for predicting house prices
Anomaly Detection - Outliers
Multiple Regression
1. Regression with Python
![An example of analytics with Python An example of a Linear Regression](/images/2018-8-16-intro_6_1.png)
2. Simple Linear Regression
![Simple Linear Regression Simple Linear Regression](/images/2018-8-16-simple-regression_17_0.png)
3. Multiple Regression
![Multiple Regression Multiple Regression](/images/2018-8-16-multiple-regression_55_1.png)
4. Local Regression
![k-nearest Neighbors Regression k-nearest Neighbors Regression](/images/2018-8-16-knn.png)
5. Anomaly Detection - K means
![K means Clustering K means Clustering](/images/2018-8-16-k-means-crime_11_2.png)
6. Anomaly Detection - Outliers
![Anomaly Detection - Outliers Anomaly Detection - Outliers](/images/2018-8-16-anol.png)
In this notebook you will use data on house sales in King County from Kaggle to predict prices using multiple regression. We will:
- Use SFrames to do some feature engineering
- Use built-in turicreate functions to compute the regression weights (coefficients/parameters)
- Given the regression weights, predictors and outcome write a function to compute the Residual Sum of Squares
- Look at coefficients and interpret their meanings
- Evaluate multiple models via RSS
Local Regression
Anomaly Detection - Kmeans
Regression with Python
1. Regression with Python
![An example of analytics with Python An example of a Linear Regression](/images/2018-8-16-intro_6_1.png)
2. Simple Linear Regression
![Simple Linear Regression Simple Linear Regression](/images/2018-8-16-simple-regression_17_0.png)
3. Multiple Regression
![Multiple Regression Multiple Regression](/images/2018-8-16-multiple-regression_55_1.png)
4. Local Regression
![k-nearest Neighbors Regression k-nearest Neighbors Regression](/images/2018-8-16-knn.png)
5. Anomaly Detection - K means
![K means Clustering K means Clustering](/images/2018-8-16-k-means-crime_11_2.png)
6. Anomaly Detection - Outliers
![Anomaly Detection - Outliers Anomaly Detection - Outliers](/images/2018-8-16-anol.png)
We will use the library Turicreate and the dataset from Airbnb Belgium open dataset