It's clear to me how to interpret the coefficients of a quadratic regression:
data <- data.frame(hours=c(6, 9, 12, 14, 30, 35, 40, 47, 51, 55, 60),
happiness=c(14, 28, 50, 70, 89, 94, 90, 75, 59, 44, 27))
data$hours2 <- data$hours^2
quadraticModel <- lm(happiness ~ hours + hours2, data=data)
summary(quadraticModel)
Estimate Std. Error t value Pr(>|t|)
(Intercept) -18.25364 6.18507 -2.951 0.0184 *
hours 6.74436 0.48551 13.891 6.98e-07 ***
hours2 -0.10120 0.00746 -13.565 8.38e-07 ***
happinessPredict <- predict(quadraticModel,list(hours=hourValues, hours2=hourValues^2))
plot(data$hours, data$happiness, pch=16)
lines(hourValues, happinessPredict, col='blue')
however, what isn't clear is why this works. Both hours and hours2 increase ever more positively. How does squaring hours and add it to the model allow to capture the quadratic trend?
Is there anyone who could provide me with a non-mathematical explanation for this?

hoursandhours2have a positive relationship with happiness.". Plotting your data will show this is false. Or even just look at the values:happinesspeaks athours= 35 and then declines i.e. it has a unimodal relationship. – mkt Sep 12 '22 at 19:56hoursandhours2both show a positive increase, and that it's confusing to me howhours2can change the direction of the predictions – locus Sep 12 '22 at 22:25hoursandhours2being two separate predictors, when in fact it's one predictor with a quadratic and linear term. I think lots of learning resources on quadratic regression say to 'just add' the quadratic term to the regression to see if it improves fit etc., as if it was a different variable – user2296603 Sep 13 '22 at 09:51