Coder Social home page Coder Social logo

linear_regression_project's Introduction

Linear Regression Project

We learnt about the New York house prices dataset in the in-class session. We learnt

  • What is linear regression
  • How gradient descent algorithm works to minimize the cost function
  • What are the assumptions of linear regression

We also implemented linear regression using sklearn library in which we

  • Fit a linear regression model
  • Predicted house prices using the fitted model
  • Calculated MSE for predicted and actual house prices

Now, let's take this forward and increase our understanding of linear regression!

This assignment is a series of simple tasks, in which we will be fitting a linear regression model on the house pricing data and validating some of the assumptions of linear regression.

Why solve this assignment?

By the end of this assignment,

  • You will be able to confidently train a linear regression model and predict values of the target variables
  • You will have a better understanding about the assumptions of linear regression and how to validate them. By completing this project you have an opportunity to win 800 points!!

On assumptions of linear regression

Assumptions of linear regression model play an extremely important role in the model performance and stability. Hence, it is very important to validate these assumptions. Validating these assumptions can give us deeper insights into the kind of data we are dealing with and steps that could be taken to improve the results of the linear model.

So, let's get started.

About House Prices dataset

Here are some of the imports that we will be using throughout the assignment.

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

from pprint import pprint

%matplotlib inline

from sklearn.linear_model import LinearRegression

from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score

linear_regression_project's People

Contributors

abhisheksubu92 avatar adimyth avatar alex19427 avatar bhushan45 avatar codebeast77 avatar gyandhanee avatar jay-trivedi avatar mahesh0723 avatar mayureshshilotri avatar shwedosh avatar sonik8494 avatar vishwas31 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.