1
$\begingroup$

formula


mpg = mileage per gallon and hp = horsepower


Why is this model a linear model despite having a square of horsepower in it?

$\endgroup$
1
$\begingroup$

In order to explain this, I would consider the following quadratic function.

enter image description here

By comparing this function with your function, x1 would be similar to your hp (horsepower).

Actually what we have really done is, we have created a new feature x2 where

enter image description here

By plugging this new feature to the above hypothesis we get the following function which is just like a linear model

enter image description here

$\endgroup$
  • $\begingroup$ i have posted the correct answer below. $\endgroup$ – Bhuwan Bhatt Nov 4 '19 at 11:47
1
$\begingroup$

Ok i got the answer. For the model to be linear it needs to be linear in terms of parameters not the predictors. Here betas are parameters and horsepower is predictor

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.