GithubHelp home page GithubHelp logo

multiple-linear-regression's Introduction

Multiple-Linear-Regression

Multiple linear regression is used to estimate the relationship between two or more independent variables and one dependent variable. You can use multiple linear regression when you want to know:

  • How strong the relationship is between two or more independent variables and one dependent variable.
  • The value of the dependent variable at a certain value of the independent variables.

image
where,

  • Y : the dependent or response variable
  • B0 : this is the y-intercept.
  • B1X1 : (B1) is the coefficient of the first independent variable (X1) in your model.
  • e : this is the model error

Our basic agenda is to implement a multiple linear regression program using numpy and pandas and sklearn libraries.
Then check the efficiency of the model using the following metrics :

MEAN SQUARE ERROR :

image

where,

  • 𝑁 is the total number of observations (data points)
  • yᵢ is the actual value of an observation and y^ is the predicted value
  • J is the cost function which is the mean squared error in this case

R-squared value:

image

Where,

  • yₚᵣₑ𝒹 is the predicted y value,
  • y̅ is the mean,
  • y is the actual value

multiple-linear-regression's People

Contributors

sg-akshay10 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.