1

formula


mpg = mileage per gallon and hp = horsepower


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

Bhuwan Bhatt
  • 121
  • 7

2 Answers2

1

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

thilakshiK
  • 126
  • 1
  • 4
1

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

Bhuwan Bhatt
  • 121
  • 7