Coder Social home page Coder Social logo

drzeeshanaliofficial / simple-linear-regression-on-boston-dataset Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 104 KB

Simple Linear Regression Implementation using Python on Boston Housing Dataset

Jupyter Notebook 100.00%
python3 deep-learning boston-housing-dataset linear-regression

simple-linear-regression-on-boston-dataset's Introduction

I implemented the Simple Linear Regression Model on the boston housing dataset. Steps which i performed to build the the model in order to predict the prices of houses are as follows:

  1. Imported the Boston dataset from the sklearn dataset repository.
  2. Printed the value of the boston dataset to understand what it contains.
  3. Created a correlation matrix that measures the linear relationships between the variables.
  4. Used the heatmap function from the seaborn library to plot the correlation matrix.
  5. After analyzing the heatmap, I choose RM (average number of rooms per dwelling) as the Independent Variable because the correlation was 0.7 (Strong Positive Correlation) with MEDV (prices). MEDV is our dependent (target) variable.
  6. Applied the linear regression model to predict the house prices.
  7. Read the csv file that contain the rooms without house pricing.
  8. Predicted the prices of the house based on the number of rooms then exported the CSV file that contain rooms with predicted house prices.

All files are attached in this repository for reference.

Thanks & Regards

Zeeshan Ali

simple-linear-regression-on-boston-dataset's People

Contributors

drzeeshanaliofficial avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

cheewen-chan

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.