Multi Linear Regression: Prediction of Speed of Vehicle(MPG)

 

What is Multiple Linear Regression?

Multiple Linear Regression is a statistical technique used to model the relationship between one dependent variable (also known as the outcome or response variable) and two or more independent variables (also known as predictors or explanatory variables). It extends simple linear regression, which involves only one predictor, to include multiple predictors.

Prediction Equation
y=β0+β1x1+β2x2+β3x3++βnxn+ϵ
  • Where:

    • y is the dependent variable (the variable we are trying to predict).
  • is the y-intercept (the predicted value of y when all  values are 0).

  • β1,β2,,βn are the coefficients (the change in y for a one-unit change in the respective x variable).
  • x1,x2,,xn are the independent variables (the predictors).
  • ϵ is the error term (the difference between the actual and predicted values).
Example in Context

For your cars dataset, if we want to predict MPG (Miles Per Gallon) based on the features HP (Horse Power), VOL (Volume), SP (Speed), and WT (Weight), the prediction equation would look like this:

MPG=β0+β1HP+β2VOL+β3SP+β4WT+ϵ


Explanation in Short

  • Multiple Linear Regression: A method to predict a dependent variable using multiple independent variables.
  • Prediction Equation: An equation that includes the intercept, coefficients for each predictor, and an error term to estimate the dependent variable.

  • The goal is to find, the values of 
  • β0,β1,,βn\beta_0, \beta_1, \ldots, \beta_n, that minimize the error term ϵ\epsilon, thereby providing the best linear fit to the data.


Multi Linear Regression: Prediction of Speed of Vehicle(MPG)


To predict the fuel efficiency (MPG) of cars using multiple linear regression, we will analyze the relationships between MPG and other car attributes such as horsepower (HP), volume (VOL), speed (SP), and weight (WT).

Go through the following Jupyter Notebook


Download Cars dataset from here (Cars)

 

टिप्पणी पोस्ट करा

0 टिप्पण्या