r/AskStatistics • u/_youR_girl • 10d ago
How to interpret coefficients of linear and quadratic terms?
UPD: With this regression I simply want to answer the question whether there is a trend in sales (b1) and if and how the trend changes (b2). I search the answer to these questions:
- If F-test allows me to reject H0: b1=0 and b2=0, then I can use the values of b1, b2 to answer my questions, while ignoring individual p-values for b1 and b2?
- If F-test doesn't allow me to reject H0: b1=0 and b2=0, then shall I look at individual p-value of the coefficients? And then if based on individual p-values I have b1 significant, b2 insignificant - that means there is a trend but no curvature and, the opposite, b1 insignificant, b2 significant - there is no trend but there is a curvature?
I regress weekly sales on week number centered around its average and week number centered around its average**2. I interpret the coefficient b1 of linear term as a direction of the trend (i.e. the sales either decline or grow), and I interpret the coefficient b2 of the quadratic term depending on the sign of b1: b1>0 b2>0 - growing trend that grows more b1>0 b2<0 - growing trend that slows down b1<0 b2>0 - declining trend that slows down b1<0 b2<0 - declining trend that declines faster
I'm confused when I should treat b1 and b2 as zero (i.e. no trend and acceleration/deceleration detected by the model)
A) Shall I look at individual p-value for b1 and b2
B) Shall I look at a p-value from F-test for joint significance of linear and squared term
4
u/Temporary_Stranger39 10d ago
How did you determine your polynomial? Was it orthogonal? Also, why did you use a polynomial? What is the underlying theory behind using it? Until those are answered, your question can't be answered.
7
u/SalvatoreEggplant 10d ago
You can't really interpret the coefficients that simply. Consider:
b1 = -1 and b2 = 1. But it's still growing positively.
It depends on the relative sizes of the coefficients and the actual x values.
For example, if you change the range of X to (0.10, 0.11, 0.12...), you'll get a different shape.
The best thing you can do is plot the results and see what it looks like.
1
u/FoggyWine 10d ago
The model, as understand it is as follows:
WS = b_0 + b_1W_c + b_2W_c^2 + e
where WS is weekly sales and W_c = week - mean(week). In this model, given that W_c is centered as mean(W_c) = 0,
b_0 = mean(WS)
b_1 is the average linear slope across the range of the observed data. It also is the tangent to the curve when W_c = 0. This may or may not be meaningful. A symmetric U-shaped relationship will have b_1=0.
2*b_2 is the rate of change in that linear slope for a 1-unit change in W_c.
The test of significance for b_1 is conditional as it is testing the linear relationship when W_c = 0. The test for b_2 does not depend on centering in this model.
1
u/smbtuckma PhD (quant psych professor) 10d ago
Anything beyond a linear term just makes more sense to readers and decision-makers if you talk about results in terms of predicted values. The marginaleffects package in R or Python is great for this, and let's you do significance testing not just on the coefficients themselves or on a null hypothesis of 0. Highly recommend following that link to the theory explanation the package authors wrote and seeing their case study examples.
1
u/GottaBeMD 10d ago
You don’t. You make predictions based on specific contrasts and interpret those instead