Professional Documents
Culture Documents
Nonlinear Regression Model - Quadratic Model
Nonlinear Regression Model - Quadratic Model
Regression Model
Maria Zefanya Sampe
Residuals
0
Residuals
60
40
20
Residuals
0
0 50 100 150 200 250 300 350 400 450 500
-20
-40
-60
-80
350
300
250
Total Cars Sold
100
50
0
0 50 100 150 200 250 300 350 400 450 500
^𝒚 =𝟏𝟏𝟒 . 𝟒𝟗𝟔𝟑𝟐𝟒𝟖+𝟎 . 𝟓𝟖𝟐𝟐𝟖𝟐𝟏𝟑𝟖 𝒙 𝟏 ^ 𝒚 =𝟔𝟑 . 𝟖𝟓𝟎𝟗𝟔𝟗𝟑𝟒+𝟏 . 𝟒𝟎𝟗𝟒𝟓𝟐𝟓𝟒𝟑 𝒙 𝟏 − 0.00185214 8 𝒙𝟏𝟐
Quadratic Regression Model
Before : Linear Regression Model
Coefficients
Intercept 114.4963248
Job Tenure (Weeks) 0.582282138
>0 <0
How about maximum point?
Finding Maximum Point
Remember : Calculus =)
So, we have
𝒅 𝟐
( 𝟔𝟑 . 𝟖𝟓𝟎𝟗𝟔𝟗𝟑𝟒+𝟏 . 𝟒𝟎𝟗𝟒𝟓𝟐𝟓𝟒𝟑 𝒙 𝟏 − 0.001852148 𝒙 𝟏 )
𝒅𝒙
Conclusion?
Conclusion
• The maximum number of cars sold
from Salesperson at around 317 weeks
on the job.
• After that, the number of cars sold
begins to go down (for several reason :
they get too old, tired being at the job,
sales competition, etc.
How if we do
another polynomial
regression models ?
Quadratic Polynomial
Regression Statistics
^𝒚 =𝒃 𝟎 +𝒃𝟏 𝒙𝟏 +𝒃𝟐 𝒙𝟏𝟐
Multiple R 0.95263863
R Square 0.90752036 Job Tenure Total Cars
Weeks^2
Adjusted R Square
Standard Error
0.892107086
32.67505089
(Weeks) Sold
Observations 15 168 28224 272
428 183184 300
Coefficients Standard Error t Stat P-value
Intercept 63.85096934 19.62804309 3.253048154 0.006917223 296 87616 311
Job Tenure (Weeks) 1.409452543 0.23064056 6.111035036 5.24735E-05 392 153664 365
Weeks^2 -0.001852148 0.000500369 -3.701561402 0.003027121
80 6400 167
56 3136 149
400 Job Tenure (Weeks) Line Fit Plot 352 123904 366
350 444 197136 310
300 168 28224 192
250
200 40000 229
Total Cars Sold
350
300
250
Total Cars Sold
150
𝒚 =𝒃 𝟎 +𝒃𝟏
^ 𝒙𝟏 +𝒃𝟐 𝒙𝟏𝟐 +𝒃𝟑 𝒙 𝟏𝟑
100
50
0
0 50 100 150 200 250 300 350 400 450 500
350
300
250
Total Cars Sold
Total Cars Sold
150
𝒚 =𝒃 𝟎 +𝒃𝟏
^ 𝒙𝟏 +𝒃𝟐 𝒙𝟏𝟐 +𝒃𝟑 𝒙 𝟏𝟑 +𝒃 𝟒 𝒙𝟏𝟒
100
50
0
0 50 100 150 Job Tenure
200 (Weeks) 300
250 350 400 450 500
Quintic Polynomial
350
300
250
Total Cars Sold
150
100
50
0
0 50 100 150 200 250 300 350 400 450 500