# Is this a linear model? [closed]

mpg = mileage per gallon and hp = horsepower

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

• Possible duplicate of What happens when I include a squared variable in my regression? – PsychometStats Nov 1 '19 at 2:51
• Models are called linear when they are a linear function of the coefficients. – Michael R. Chernick Nov 1 '19 at 3:40
• 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 Nov 1 '19 at 3:55
• I'm voting to close this question topic because the OP answered it in a comment – Peter Flom Nov 1 '19 at 11:39

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