Regression Analysis_ Abhishek Wahane

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 19

Sales Price Mileage Top speed

Cars
(in 1,000 units) (in lakh rupees) (Km/ltr) (Km/hr)

Rocinante 1 171.877 6.1 15.8 168.2

Rocinante 2 139.796 6.1 12.1 149.6

Rocinante 3 178.947 9.9 17 173.4

Rocinante 4 140.022 5.8 11.6 170.6

Rocinante 5 186.476 10 17.2 175


Rocinante 6 192.123 6.5 17.6 173.1
Rocinante 7 175.085 5.5 16 184.6
Rocinante 8 146.882 8.4 13 175.7
Rocinante 9 202.847 6.6 19.3 166.7

Rocinante 10 149.933 8.8 13.3 175.4

Rocinante 11 171.579 9.5 15.8 150.9

Rocinante 12 201.512 9.2 19.2 140.5

Rocinante 13 142.604 8.1 11.7 150.2


Rocinante 14 135.158 5.4 11.2 146.2
Rocinante 15 107.322 5.6 7.8 151.2
Rocinante 16 199.699 6.3 19 143.2
Rocinante 17 202.875 5.8 19.7 178.9
Rocinante 18 204.406 7.7 19.5 168.2
Rocinante 19 107.331 7.2 7.5 164.7
Rocinante 20 190.345 8.4 18.1 182.7
Rocinante 21 108.419 8.4 7.9 165.7
Rocinante 22 150.249 5.7 12.6 137
Rocinante 23 155.882 5.5 12.9 173.9
Rocinante 24 100.98 8.4 7.6 165.1
Rocinante 25 182.679 5.6 16.7 160.1
Rocinante 26 166.752 9.9 15.5 155.6
Rocinante 27 121.561 6.2 9.5 155.4
Rocinante 28 174.256 9.9 16.3 161.9
Rocinante 29 119.018 6.5 9.1 146.8
Rocinante 30 169.842 7.1 15.3 149.5
Rocinante 31 198.311 9.6 19.1 146.5
Rocinante 32 204.875 5.8 19.4 178.9
Rocinante 33 119.561 6.2 9.4 175.4
Rocinante 34 203.875 5.9 19.4 175.9
Rocinante 35 118.561 6.1 9.4 165.4
Predicted sales
Covariance

Sales Price Mileage


(in 1,000 units) (in lakh rupees) (Km/ltr) Top speed (Km/hr)

Sales
(in 1,000 units) 1114.0777421

Price
(in lakh rupees) 7.8331481633 2.45164081633
Mileage
(Km/ltr) 134.4796649 1.17579591837 16.324163265
Top speed (Km/hr) 77.778550612 -0.8462612245 9.6621632653 169.679134693878

Correlation

Sales Price Mileage


(in 1,000 units) (in lakh rupees) (Km/ltr) Top speed (Km/hr)
Sales
(in 1,000 units) 1
Price
(in lakh rupees) 0.1498822386 1
Mileage
(Km/ltr) 0.9972026055 0.18586091114 1
Top speed (Km/hr) 0.1788907466 -0.0414917546 0.1835881673 1

Regression Analysis
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.9978806545
R Square 0.9957658006
Adjusted R Square 0.9953560394
Standard Error 2.307791532
Observations 35

ANOVA
df SS MS F Significance F
Regression 3 38827.6180187 12942.53934 2430.11229551562 7.4472712E-37
Residual 31 165.102954406 5.325901755
Total 34 38992.7209731

Coefficients Standard Error t Stat P-value Lower 95%


Intercept 50.723127179 5.29210288471 9.5846827404 8.739023874041E-11 39.929812186
Price
(in lakh rupees) -0.7950264409 0.25433307604 -3.1259262588 0.003833462977011 -1.3137421693
Mileage
(Km/ltr) 8.3063310924 0.10018130682 82.91298403 5.783563756817E-38 8.10200997
Top speed (Km/hr) -0.018572564 0.03055823545 -0.6077760617 0.547763026123756 -0.0808964961

RESIDUAL OUTPUT PROBABILITY OUTPUT

Predicted Sales Sales


Observation (in 1,000 units) Residuals Percentile (in 1,000 units)
1 173.98959189 -2.1125918859 1.42857142857143 100.98
2 143.60161653 -3.8056165344 4.28571428571429 107.322
3 180.83951139 -1.8925113887 7.14285714285714 107.331
4 139.29693508 0.72506492343 10 108.419
5 182.39155886 4.08444113935 12.8571428571429 118.561
6 188.53197171 3.59102828775 15.7142857142857 119.018
7 175.82328392 -0.7382839194 18.5714285714286 119.561
8 148.76400978 -1.8820097833 21.4285714285714 121.561
9 202.69209633 0.15490366523 24.2857142857143 135.158
10 150.9434703 -1.0104703038 27.1428571428571 139.796
11 171.60780734 -0.028807344 30 140.022
12 200.28099566 1.23100434413 32.8571428571429 142.604
13 138.67788768 3.92611232275 35.7142857142857 146.882
14 136.74558378 -1.5875837774 38.5714285714286 149.933
15 108.25218996 -0.9301899552 41.4285714285714 150.249
16 200.87516019 -1.1761601931 44.2857142857143 155.882
17 206.42406464 -3.5490646437 47.1428571428571 166.752
18 203.45097462 0.95502537771 50 169.842
19 104.23751871 3.09348129185 52.8571428571429 171.579
20 190.99629041 -0.6512904064 55.7142857142857 171.877
21 106.58744685 1.83155314794 58.5714285714286 174.256
22 148.30680696 1.9421930368 61.4285714285714 175.085
23 150.27238397 5.60961603225 64.2857142857143 178.947
24 104.10669106 -3.1266910627 67.1428571428572 182.679
25 182.01324086 0.66575914219 70 186.476
26 168.71060639 -1.9586063892 72.8571428571429 190.345
27 121.81793218 -0.2569321789 75.7142857142857 192.123
28 175.23866411 -0.9826641099 78.5714285714286 198.311
29 118.41661586 0.60138413996 81.4285714285714 199.699
30 169.38870685 0.45329315451 84.2857142857143 201.512
31 199.02091659 -0.7099165863 87.1428571428572 202.847
32 203.93216532 0.94283468401 90 202.875
33 120.61584779 -1.0548477898 92.8571428571429 203.875
34 203.90838036 -0.0333803639 95.7142857142857 204.406
35 120.88107607 -2.3200760738 98.5714285714286 204.875

227.89

Specifications Rocinante36
Price 7 lacs
Predicted Sales 22789
159523
Manufacturing Cos6 lacs
Mileage 22 km/ltr
Top Speed 140 Kmpl
New Price 8 Lacs
Price
(in lakh rupees) Line Fit Plot
Sales
(in 1,000 units)

400
(in 1,000 units)
200
Sales

Predicted Sales
0 (in 1,000 units)
5 6 7 8 9 10 11
Price
(in lakh rupees)
200 Predicted Sales

(in 1,000
Sale
0 (in 1,000 units)
5 6 7 8 9 10 11
Price
(in lakh rupees)

Upper 95% Lower 95.0% Upper 95.0%


61.516442172 39.929812186 61.516442172
Mileage
(Km/ltr) Line Fit Plot
Sales

(in 1,000 units)


-0.2763107124 -1.3137421693 -0.2763107124 400
(in 1,000 units)
200

Sales
Predicted Sales
8.5106522147 8.10200997 8.5106522147 0 (in 1,000 units)
6 8 10 12 14 16 18 20 22
0.0437513681 -0.0808964961 0.0437513681
Mileage
(Km/ltr)

Normal Probability Plot


250
200
(in 1,000 units)

150
Sales

100
50
0
0 20 40 60 80 100 120
Sample Percentile

Top speed (Km/hr) Line Fit


Plot
300 Sales
(in 1,000 units)

(in 1,000 units)


200
Predicted Sales
Sales

100 (in 1,000 units)


0
130 140 150 160 170 180 190
Top speed (Km/hr)
Plot
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)

t
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)

Plot

0 100 120

e Fit

Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)
Sales Price Mileage Top speed
Cars
(in 1,000 units) (in lakh rupees) (Km/ltr) (Km/hr)

Marengo 1 20.896 42.5 9.3 199.4

Marengo 2 31.048 36 9.7 235.2

Marengo 3 29.904 54.7 16.6 240.8

Marengo 4 28.792 42.7 11.7 232.5

Marengo 5 16.776 44.9 13.7 188.8


Marengo 6 18.928 35.5 9.6 184.2
Marengo 7 22.776 51.3 13.7 207.7
Marengo 8 36.824 30.4 12.6 249.5
Marengo 9 22.216 38.4 16.2 175.8

Marengo 10 35.456 32.2 9.6 245.6

Marengo 11 28.576 59.4 11.3 223.3

Marengo 12 33.648 50.8 13.6 240

Marengo 13 33.44 57.5 13.5 250


Marengo 14 34.912 44.6 11.1 247.4
Marengo 15 24.016 34.6 14.1 192
Marengo 16 20.992 56.4 13.4 201.2
Marengo 17 21.696 41.4 12.8 193.3
Marengo 18 17.832 53.7 16 202
Marengo 19 25.624 44.8 12.7 208.9
Marengo 20 21.92 32.4 13.6 176.9
Marengo 21 24.792 40.9 11.6 218.2
Marengo 22 22.256 44.1 11.4 190
Marengo 23 15.488 46.6 16.3 176.8
Marengo 24 21.64 31.4 14.5 178.9
Marengo 25 23.264 54.7 14.3 192.3
Marengo 26 19.328 37.9 9.4 184.1
Marengo 27 27.216 52.9 15.3 240.3
Marengo 28 23.096 42.7 15 192.1
Marengo 29 17.824 54.9 13.5 199
Marengo 30 19.144 44 11.8 181.1
Marengo 31 21.6 42.2 9.3 181.2
Covariance

Sales Price Mileage


(in 1,000 units) (in lakh rupees) (Km/ltr) Top speed (Km/hr)

Sales
(in 1,000 units) 33.849579222

Price
(in lakh rupees) -2.4945614984 68.8151508845
Mileage
(Km/ltr) -2.1838201873 6.35608740895 4.7611238293
Top speed (Km/hr) 130.61288574 45.7091259105 -5.4057544225 631.20593132152

Correlations

Sales Price Mileage


(in 1,000 units) (in lakh rupees) (Km/ltr) Top speed (Km/hr)
Sales
(in 1,000 units) 1
Price
(in lakh rupees) -0.051686312 1
Mileage
(Km/ltr) -0.1720225973 0.3511503368 1
Top speed (Km/hr) 0.8935602727 0.21931854074 -0.0986088827 1

Regression Analysis
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.9290251332
R Square 0.8630876981
Adjusted R Square 0.8478752201
Standard Error 2.3067303951
Observations 31
ANOVA
df SS MS F
Regression 3 905.669817745 301.88993925 56.735510054881
Residual 27 143.667138126 5.3210051158
Total 30 1049.33695587

Coefficients Standard Error t Stat P-value


Intercept -13.447648888 4.45379402893 -3.019369284 0.0054789631673
Price
(in lakh rupees) -0.1867281721 0.05543836326 -3.3682122113 0.0022883767338
Mileage
(Km/ltr) 0.041301187 0.2066403011 0.1998699516 0.8430800339023
Top speed (Km/hr) 0.220801682 0.01722315008 12.820052137 5.388274944E-13

RESIDUAL OUTPUT

Predicted Sales
Observation (in 1,000 units) Residuals
1 23.028360234 -2.1323602342
2 32.163314045 -1.1153140447
3 30.192964836 -0.2889648358
4 30.398673124 -1.606673124
5 20.421440014 -3.6454400143
6 20.991662228 -2.0636622281
7 23.399531503 -0.6235315032
8 36.486229304 0.337770696
9 18.868004234 3.34799576602
10 35.165088473 0.29091152672
11 25.2324167 3.34358329987
12 30.6206598 3.02734019955
13 31.573467749 1.86653225105
14 33.309053947 1.60294605282
15 23.067826044 0.94817395562
16 20.999616536 -0.0076165361
17 22.031425118 -0.3354251175
18 21.787807033 -3.9558070326
19 24.836925453 0.78707454654
20 20.123872031 1.79612796924
21 27.573189662 -2.781189662
22 20.74079184 1.51520815968
23 17.561765023 -2.0737650234
24 20.789374635 0.85062536476
25 19.389090527 3.87490947316
26 20.513174209 -1.1851742094
27 30.364983161 -3.1489831615
28 21.614579087 1.48142091327
29 20.798075212 -2.9740752125
30 18.810850162 0.33314983781
31 19.065788073 2.53421192727

Predicted Sales 25.295

Specifications Marengo32
Price 41 lacs
Predicted Sales 25295
1062390
Manufacturing Cost33 lacs
Mileage 15km/ltr
Top Speed 210 Kmpl
New Price 42 Lacs
Price
(in lakh rupees) Line Fit Plot
Sales
(in 1,000 units)

40
(in 1,000
20
Sales

Predicted
0 (in 1,000
25 30 35 40 45 50 55 60 65
Price
(in lakh rupees)
40 Sales
(in 1,000

(in 1,000 uni


20

Sales
Predicted
0 (in 1,000
25 30 35 40 45 50 55 60 65
Price
(in lakh rupees)
Significance F
8.7448816E-12

Lower 95% Upper 95% Lower 95.0% Upper 95.0%


-22.586079391 -4.3092183857 -22.586079391 -4.3092183857
Top speed (Km/hr) Line Fit
Plot
-0.3004782976 -0.0729780466 -0.3004782976 -0.0729780466 40 Sales

(in 1,000 units)


(in 1,000
20 Predicted

Sales
-0.3826896887 0.4652920627 -0.3826896887 0.4652920627 0 (in 1,000
0.1854626971 0.256140667 0.1854626971 0.256140667 0 0 0 0 0 0 0 0 0 0
17 18 19 20 21 22 23 24 25 26
Top speed (Km/hr)

Mileage
(Km/ltr) Line Fit Plot
(in 1,000 units) 40 Sales
(in 1,00
20
Sales

Predicte
0 (in 1,00
8 9 10 11 12 13 14 15 16 17 18
Mileage
(Km/ltr)
Price
pees) Line Fit Plot
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)
45 50 55 60 65
ice
rupees)
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)
45 50 55 60 65
ice
rupees)

d (Km/hr) Line Fit


Plot
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)

10 220 230 240 250 260


ed (Km/hr)

Mileage
r) Line Fit Plot
Sales
(in 1,000 units)
Predicted Sales
(in 1,000 units)
2 13 14 15 16 17 18
ileage
m/ltr)

You might also like