Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.19 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.19 KB

Intro to Data Science With Linear Regression

Linear regression is the fundamental building block of data science and analytics. If you ever venture into data science, this will most likely be the first model you're taught.

This lesson is aimed at those with no experience in data science or programming. It's also designed to teach you what a linear regression is, and how to write a regression model within Scikit-Learn.

Computer Prerequisites & Installation

The instructions below will walk through the necessary software requirements to complete the lesson.

Prerequisites

Download and install Anaconda. For this exercise, download the Python 2.7 version.

Anaconda Install & Setup

Mac/ Linux (Ubuntu)

Open the Terminal application. Then, type the following code.

  1. python
  2. from sklearn import datasets, linear_model
  3. from sklearn.metrics import mean_squared_error, r2_score

PC

Launch the command line. Then, type the following code.

  1. python
  2. from sklearn import datasets, linear_model
  3. from sklearn.metrics import mean_squared_error, r2_score

References

Boston Data Set