0% found this document useful (0 votes)
5 views

Sample Analysis Multiple Regression

Uploaded by

ali hamza
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Sample Analysis Multiple Regression

Uploaded by

ali hamza
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Weekly_Sales Temperature Unemployment Fuel_Price CPI

281090.95 31.53 8.119 2.666 126.4420645 SUMMARY OUTPUT


286857.13 33.16 8.119 2.671 126.4962581
267956.3 35.7 8.119 2.654 126.5262857 Regression Statistics
273079.07 29.98 8.119 2.667 126.5522857 Multiple R 0.796066
284617.27 40.65 8.119 2.681 126.5782857 R Square 0.633721
272190.83 37.62 8.119 2.733 126.6042857 Adjusted R 0.623105
269624.2 42.49 8.119 2.782 126.6066452 Standard E 15202.35
276279.49 41.48 8.119 2.819 126.6050645 Observatio 143
286197.5 42.15 7.972 2.842 126.6034839
257361.3 38.97 7.972 2.877 126.6019032 ANOVA
280048.74 50.39 7.972 2.915 126.5621 df
278287.04 55.66 7.972 2.936 126.4713333 Regression 4
272997.65 48.33 7.972 2.941 126.3805667 Residual 138
285379.86 44.42 7.972 2.948 126.2898 Total 142
286515.92 50.15 7.972 2.962 126.2085484
267065.35 57.71 7.972 2.95 126.1843871 Coefficients
291891.01 53.11 7.972 2.908 126.1602258 Intercept 653621
282351.82 59.85 7.972 2.871 126.1360645 Temperatu 221.0888
296818.2 65.24 7.972 2.841 126.1119032 Unemploy -24096.38
293481.36 58.41 7.972 2.819 126.114 Fuel_Price -5981.928
288247.24 71.83 7.972 2.82 126.1266 CPI -1404.902
300628.19 78.82 7.804 2.814 126.1392
280472.78 71.33 7.804 2.802 126.1518
297099.95 77.79 7.804 2.791 126.1498065
292680.16 82.27 7.804 2.797 126.1283548
275020.96 78.94 7.804 2.797 126.1069032 SUMMARY OUTPUT
296804.49 81.24 7.804 2.802 126.0854516
291028.09 74.93 7.804 2.837 126.064 Regression Statistics
284740.5 76.34 7.804 2.85 126.0766452 Multiple R 0.792714
293155.08 75.31 7.804 2.854 126.0892903 R Square 0.628396
295880.12 65.71 7.804 2.868 126.1019355 Adjusted R 0.623087
283455.13 65.74 7.804 2.87 126.1145806 Standard E 15202.7
279364.13 66.84 7.804 2.875 126.1454667 Observatio 143
281313.78 68.22 7.804 2.872 126.1900333
300152.45 68.74 7.61 2.853 126.2346 ANOVA
279524.44 63.03 7.61 2.841 126.2791667 df
268708.43 54.12 7.61 2.845 126.3266774 Regression 2
270110.3 56.89 7.61 2.849 126.3815484 Residual 140
286497.49 45.12 7.61 2.841 126.4364194 Total 142
270516.84 49.96 7.61 2.831 126.4912903
281909.79 42.55 7.61 2.831 126.5461613 Coefficients
284322.52 42 7.61 2.842 126.6072 Intercept 423630.6
307646.5 28.22 7.61 2.83 126.6692667 Temperatu 201.2245
264214.12 25.8 7.61 2.812 126.7313333 Unemploy -19550.81
278253.28 36.78 7.61 2.817 126.7934
278646.35 35.21 7.61 2.842 126.8794839
365098.24 34.9 7.61 2.846 126.9835806
241937.11 26.79 7.61 2.868 127.0876774
288320.38 16.94 7.224 2.891 127.1917742
292859.36 20.6 7.224 2.903 127.3009355
276157.8 34.8 7.224 2.934 127.4404839
276011.4 31.64 7.224 2.96 127.5800323
293953.08 23.35 7.224 2.974 127.7195806
307486.73 30.83 7.224 3.034 127.859129
280785.76 40.85 7.224 3.062 127.99525
279427.93 33.17 7.224 3.12 128.13
293984.54 34.23 7.224 3.23 128.26475
284496.14 41.28 7.224 3.346 128.3995
281699.68 44.69 7.224 3.407 128.5121935
285031.81 42.38 7.224 3.435 128.6160645
281514.26 42.49 6.906 3.487 128.7199355
292498.61 42.75 6.906 3.547 128.8238065
289667.55 41.72 6.906 3.616 128.9107333
280357.3 47.55 6.906 3.655 128.9553
281247.97 43.85 6.906 3.683 128.9998667
299354.67 47.75 6.906 3.744 129.0444333
307095.31 52.4 6.906 3.77 129.089
303559.23 52.12 6.906 3.802 129.0756774
308442.49 54.62 6.906 3.778 129.0623548
308950.04 52.76 6.906 3.752 129.0490323
308770.42 61.39 6.906 3.732 129.0357097
300255.87 63.35 6.906 3.704 129.0432
296765.59 66.38 6.906 3.668 129.0663
315273.08 74.29 6.56 3.613 129.0894
295339.01 77.3 6.56 3.563 129.1125
289201.21 75.59 6.56 3.553 129.1338387
303108.81 78.5 6.56 3.563 129.1507742
279677 77.62 6.56 3.574 129.1677097
298080.45 75.56 6.56 3.595 129.1846452
290399.66 75.95 6.56 3.606 129.2015806
290909.69 76.68 6.56 3.578 129.2405806
324174.79 81.53 6.56 3.57 129.2832581
309543.52 77 6.56 3.58 129.3259355
295811.25 70.19 6.56 3.619 129.3686129
303974.28 67.54 6.56 3.641 129.4306
307409.13 63.6 6.56 3.648 129.5183333
299757.75 68.28 6.56 3.623 129.6060667
312577.36 60.62 6.078 3.592 129.6938
293031.78 51.74 6.078 3.567 129.7706452
305969.81 54.66 6.078 3.579 129.7821613
306336.07 47.41 6.078 3.567 129.7936774
307126.34 43.51 6.078 3.538 129.8051935
312233.56 33.8 6.078 3.513 129.8167097
310531.04 40.65 6.078 3.489 129.8268333
309129.01 38.89 6.078 3.445 129.8364
284309.34 33.94 6.078 3.389 129.8459667
304300.91 24.82 6.078 3.341 129.8555333
311144.16 27.85 6.078 3.282 129.8980645
376233.89 24.76 6.078 3.186 129.9845484
263917.85 31.53 6.078 3.119 130.0710323
325327.93 33.8 5.774 3.08 130.1575161
312361.88 25.61 5.774 3.056 130.244
316948.39 32.71 5.774 3.047 130.2792258
308295.38 34.32 5.774 3.058 130.3144516
325986.05 31.39 5.774 3.077 130.3496774
325377.97 33.73 5.774 3.116 130.3849032
320691.21 36.57 5.774 3.119 130.4546207
315641.8 35.38 5.774 3.145 130.5502069
316687.22 32.36 5.774 3.242 130.6457931
303438.24 38.24 5.774 3.38 130.7413793
331965.95 52.5 5.774 3.529 130.8261935
296947.06 47.83 5.774 3.671 130.8966452
310027.29 53.2 5.774 3.734 130.9670968
320021.1 48.85 5.621 3.793 131.0375484
311390.22 51.7 5.621 3.833 131.108
323233.8 50.24 5.621 3.845 131.1173333
330338.36 64.8 5.621 3.842 131.1266667
326053.28 54.41 5.621 3.831 131.136
341381.08 56.47 5.621 3.809 131.1453333
334042.43 65.17 5.621 3.808 131.0983226
343268.29 62.39 5.621 3.801 131.0287742
323410.94 61.11 5.621 3.788 130.9592258
340238.38 68.4 5.621 3.776 130.8896774
338400.82 65.97 5.621 3.756 130.8295333
336241 72.89 5.621 3.737 130.7929
338386.08 82 5.621 3.681 130.7562667
358461.58 79.23 5.407 3.63 130.7196333
336479.49 83.68 5.407 3.595 130.683
337819.16 75.69 5.407 3.556 130.7012903
319855.26 80.42 5.407 3.537 130.7195806
342385.38 81.99 5.407 3.512 130.737871
333594.81 81.69 5.407 3.509 130.7561613
327389.51 79.4 5.407 3.545 130.7909677
337985.74 77.37 5.407 3.582 130.8381613
339490.69 79.18 5.407 3.624 130.8853548
338737.33 70.65 5.407 3.689 130.9325484
347726.67 68.55 5.407 3.749 130.9776667
336017.6 67.96 5.407 3.821 131.0103333
355307.94 64.8 5.407 3.821 131.043
337390.44 61.79 5.217 3.815 131.0756667
337796.13 55.1 5.217 3.797 131.1083333
323766.77 52.06 5.217 3.781 131.1499677
361067.07 46.97 5.217 3.755 131.1930968
As seeen in the left, the model includes all variable
Since this is a real-life dataset we can sayy that hav
Please check the correlation matrix in the second s

As seen in Significance-F cell, we have Sig-F value (


However as seen in the table of coefficients table,
Lets remove them and perform a new regression a

SS MS F Significance F
5.52E+10 1.38E+10 59.69061 3.577E-29
3.19E+10 2.31E+08
8.71E+10

Standard Error t Stat P-value Lower 95%Upper 95%Lower 95.0%Upper 95.0%


674830.7 0.96857 0.334454 -680724 1987966 -680724 1987966
97.57534 2.265827 0.025019 28.15274 414.0249 28.15274 414.0249
7762.241 -3.104307 0.002315 -39444.69 -8748.074 -39444.69 -8748.074
8816.786 -0.67847 0.49861 -23415.39 11451.53 -23415.39 11451.53
4997.343 -0.28113 0.779032 -11286.17 8476.361 -11286.17 8476.361

This time we had our model with just 2 independe


As seen in the table left, our overall model is sginifi
On the other side we still have almost 63 percent R
Furthermore we have 2 significant independent va
Our model has 2 independent variable.

(𝒚 ̂=𝟒𝟐𝟑𝟔𝟑𝟎+𝟐𝟎𝟏.𝟐𝒙_𝟏−𝟏𝟗𝟓

SS MS F Significance F
5.47E+10 2.74E+10 118.3725 8.047E-31
3.24E+10 2.31E+08
8.71E+10

Standard Error t Stat P-value Lower 95%Upper 95%Lower 95.0%Upper 95.0%


10571.15 40.07421 1.358E-78 402730.8 444530.3 402730.8 444530.3
73.53351 2.7365 0.007015 55.84475 346.6042 55.84475 346.6042
1350.029 -14.48177 1.275E-29 -22219.89 -16881.73 -22219.89 -16881.73
the model includes all variables and R square is 63 percent which is good.
e dataset we can sayy that having a R square more than 60 percent is a success.
relation matrix in the second sheet.

ce-F cell, we have Sig-F value (p-value) lower than 0.05 which makes our overall model significant.
he table of coefficients table, since P-values for Fuel-price and CPI are more than 0.05 these independent variables should be removed fro
nd perform a new regression analysis without those 2 insignificant variables.

r model with just 2 independent variables, the temperature and unemployment.


eft, our overall model is sginificant with very low Significance-F value.
e still have almost 63 percent R-square which is good.
e 2 significant independent variables in the model, the temperature and unemployment. These 2 independent variables are statistically si
ependent variable.

+𝟐𝟎𝟏.𝟐𝒙_𝟏−𝟏𝟗𝟓𝟓𝟎.𝟖𝒙_𝟐 ) ̂
ariables should be removed from the model.

ent variables are statistically significant and explaining almost 63 percent of the varibility in the dependent variable.
Weekly_Sales Temperature Fuel_Price CPI Unemployment
Weekly_Sales 1
Temperature 0.2678221923 1
Fuel_Price 0.6073673757 0.3320114235 1
CPI 0.740149817 0.1104710796 0.8579475198 1
Unemployment -0.7800764433 -0.1650758431 -0.7942696418 -0.9756122173 1

As seen below, the correlation matrix tells us, for our dependent variable, there are strong relationship between "fuel-price an
We can say that there a weak correlation between temperature and weekly sales. Despite a weak relationship it can still be us
onship between "fuel-price and weekly-sales", "CPI and weekly-sales", "unemployment and weekly-sales".
k relationship it can still be useful in our multiple regression model when used with other variables together.

You might also like