You are on page 1of 8

Production Mean July Mean Predcited Predicted

Year ('000 tons) Temp(F) Rainfall (in) (using sumproduct)(using Trend)


1945 470 62 33 559.388533297 559.3885333
1946 520 62 42 564.505651641 564.5056516
1947 560 63 32 547.5064687457 547.5064687
1948 510 61 38 573.5448726678 573.5448727
1949 500 64 31 535.6244041945 535.6244042
1950 550 61 40 574.6820100776 574.6820101
1951 630 62 44 565.6427890508 565.6427891
1952 640 63 36 549.7807435653 549.7807436
1953 650 61 30 568.9963230287 568.996323
1954 620 58 43 610.3282037314 610.3282037

Note: If you are interested in mathematics behind the Regression Statistics, please refer to the sheet titled Regression Backend
Coefficients 0.568569 -11.31349585 1242.063
Standard Errors 5.228251 16.734334852 1143.137
R-Square,SE(Y) 0.094957 70.690377233 #N/A
F- Statistic, Degrees of Freedom 0.36722 7 #N/A
SSreg, SSresid 3670.094 34979.906033 #N/A

0 0 1
0 1 0
1 0 0

Constant Temperature Rainfall


Coefficients 1242.063 -11.31349585 0.568569

heet titled Regression Backend Chart Title


700

600

500

400

300

200

100

0
1 2 3 4 5 6 7 8 9 10
Production ('000 tons ) Predci ted (us ing s umproduct)
Here the coefficients are in reverse order. For eg. .568569 is a coeffcient of Rainfall

Have multiplied with the identity matrix to reverse the coefficients in the first row

8 9 10
ng s umproduct)
Movie Name Year Gross WorBudget Awards IMDB Rating Remake Sequel
Dhoom 3 2013 5.42 1.25 15 5.5 0 1
Chennai Express 2013 3.95 0.75 28 6 0 0
3 Idiots 2009 3.92 0.55 25 8.5 1 0
Enthiran 2010 2.1 1.32 11 7.1 0 0
Happy New Year 2014 3.4 1.25 11 5.6 0 0
Ek Tha Tiger 2012 3.2 0.75 6 5.3 0 0
Yeh Jawaani hai Diwani 2013 3.11 0.7 24 6.8 0 0
Krishh 3 2013 3 1.15 9 5.5 0 1
Dabangg 2 2012 2.5 0.6 6 4.9 0 1
Bodyguard 2011 2.3 0.65 4 4.4 1 0
Vishwaroopam 2013 2.4 0.95 2 8.9 0 0
Dabangg 2010 2.15 0.42 18 6.3 0 0
Jab Tak Hai Jaan 2012 2.11 0.6 12 6.9 0 0
Ra.One 2011 2.4 1.25 9 4.8 0 0
Agneepath 2012 1.93 0.6 12 7 1 0
Barf 2012 1.75 0.4 34 8.2 0 0
Don 2 2011 2.06 0.75 2 7.1 1 1
Ready 2011 1.84 0.4 5 4.6 1 0
Rowdy Rathore 2012 2.5 0.45 5 5.7 1 0
Goliyon ki RasLeela Ram-Leela 2013 2.02 0.8 32 6.2 0 0
Ghajini 2008 1.9 0.45 7 7.3 1 0
Housefull 2 2012 1.86 0.5 9 5.1 0 1
Bhaag Milkha Bhaag 2013 1.64 0.3 50 8.4 0 0
My Name is Khan 2010 2 0.38 9 8 0 0
Talaash 2012 1.74 0.4 5 7.3 0 0
Golmaal 3 2010 1.6 0.4 1 5.2 1 1
Rab ne Bana Di Jodi 2008 1.58 0.2 3 7.1 0 0
Race 2 2013 1.62 0.6 3 5.3 0 1
Zindagi Na Milegi Dobara 2011 1.53 0.55 17 8.1 0 0
Dasavatharam 2008 2 0.6 2 7.1 0 0
Singh is King 2008 1.75 0.5 2 5.3 1 0
Kick 2014 3.77 1 9 5.6 1 0
Bang-bang 2014 3.4 1.4 3 5.5 1 0
Singham Returns 2014 2.05 0.9 1 5.8 1 1
Jai HO 2014 1.83 0.999 0 5.6 1 0
Thupakakki 2012 1.8 0.7 5 7.8 0 0
PK 2014 7.35 0.85 2 8.4 0 0
Tanu weds manu returns 2015 2.43 0.39 7 7.9 0 1
Dil Dhadakne Do 2015 1.44 0.85 5 6.9 0 0
Total screens
5250
4250
2215
3000
6000
3850
3200
4100
3950
2732
1500
2100
3100
4000
2650
1650
3755
2200
2700
2550
1500
2950
1200
1200
3020
2000
1200
3500
1800
1300
1500
5000
5000
4000
3900
1500
6000
2550
2600
Y X0 X1 X2 10 617 369
470 1 62 33 617 38093 22728
520 1 62 42 369 22728 13863
560 1 63 32
510 1 61 38 261.5025 -3.7868 -0.75221
500 1 64 31 -3.7868 0.05604 0.00892
550 1 61 40 -0.75221 0.00892 0.00547
630 1 62 44
640 1 63 36 1242.063 -11.3135 0.568569
650 1 61 30
620 1 58 43

Predicted Y Errors of Prediction


559.3885333 89.388533297
564.5056516 44.505651641
547.5064687 -12.4935312543
573.5448727 63.5448726678
535.6244042 35.6244041945
574.6820101 24.6820100776
565.6427891 -64.3572109492
549.7807436 -90.2192564347
568.996323 -81.0036769713
610.3282037 -9.6717962686

3670.093967 34979.9060329566 Last Row

38650 Total of SS Regression and SS Residual

Rsquare 0.0949571531 SE(y) 70.6903772 Third row

F Stat 0.3672202227 df 7 Fourth Row


F stat 0.3672202227
1. Get the SSCP matrix using X'X. Use MMULT() and TRANSPOSE() to postmultiply the transpose of the X matrix
2. Use MINVERSE() to calculate the inverse of the SSCP matrix.
3. Use the array formula given here to calculate the intercept and coefficients:

First row

The sum of squares regression is the sum of the squared deviations of the Y values that are predicted by the regr
The sum of squares residual is the sum of the squared deviations of the differences between the actual Y values a

Predicted Y values on the basis of the combination of the X values and the regression coefficients and intercept.
Obtained the sum of squared deviations of the predicted Y values (the sum of squares regression).
Calculated the errors of prediction by subtracting the predicted Y values from the actual Y values.
Obtained the sum of squared deviations of the errors of prediction (the sum of squares residual).
Demonstrated that the total sum of squares of the actual Y values has been divided into two portions: the sum of

Mean Square residual


4997.129

Msresid*SSCP inverse
1306762 -18923.1 -3758.906
-18923.1 280.038 44.574694
-3758.91 44.57469 27.334609

1143.137 16.73433 5.228251 Second row


e transpose of the X matrix by the X matrix.

t are predicted by the regression coefficients and intercept, from the mean of the predicted values.
tween the actual Y values and the predicted Y values, from the mean of those deviations.

coefficients and intercept.


regression).

to two portions: the sum of squares regression and the sum of squares residual.

You might also like