GithubHelp home page GithubHelp logo

grayoj / comex Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 120 KB

Linear regression to perform predictive analysis on individual's income.

License: MIT License

Jupyter Notebook 100.00%
linear-algebra linear-regression numpy pandas sklearn

comex's Introduction

Linear Regression Model


In this project (jupyter notebook) we are using a SickitLearn model, to perform linear regression to make income predictions with the dataset made available in the repository.

Linear regression, is a supervised machine learning model which implements a linear relationship between an independent and dependent variable. It is a statistical method of making predictive analysis. We can illustrate linear regression by the below formula:

$y=a$$0$$+a$$1$$x+ ε$

Where

  • $Y$ represents = The Dependent Variable (Target Variable)
  • $X$ represents = The Independent Variable (Predictor Variable)
  • $a0$ represents = The intercept of the line (Gives an additional degree of freedom)
  • $a1$ represents = The Linear regression coefficient (Scale factor for each input value)
  • $ε$ represents = The Random error

Preparing Data For Linear Regression


  1. Linear Assumption.
  2. Eliminate Noise (Carry out data cleaning)
  3. Eliminate Collinearity.
  4. Rescale the provided inputs.

Requirements

These are the tools, environment variables and libraries used in the project.

  1. Jupyter Notebook.
  2. Python 3+
  3. SickitLearn.
  4. Pandas.
  5. Numpy.
  6. Data Set (Already Provided)

Installation

To use this project, you need to clone the repository.

> git clone https://github.com/grayoj/income-prediction.git

After you finish cloning, install these modules using Pip

Install Sklearn

> pip install sklearn

Install Pandas to read datasets (CSV)

> pip install pandas

Install NumPy

> pip install numpy

Ensure you have Jupyter Notebook installed, which you could easily set up if you use VsCode

Try out the notebook!

Any suggestions, feedback and help, as well as improvements are all welcome and will be appreciated. Contact! Mail me, here.

  • MIT License.

comex's People

Contributors

grayoj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gerytex

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.