Skip to content

A lesson plan for teaching linear regression at DSST schools in Denver, Colorado.

License

Notifications You must be signed in to change notification settings

gregwchase/linear-regression-lesson

Repository files navigation

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

About

A lesson plan for teaching linear regression at DSST schools in Denver, Colorado.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published