Professional Documents
Culture Documents
DADM Homework 2
DADM Homework 2
1. The following table shows Tmall “Double Eleven” Day GMV historical data (2009-2019).
By using the statistical software, we can get the linear regression model for the above
historical data is:
8
where we assume x=1 and y=0.52 (RMB 10 ) in Year 2009, and x=2 and y=9.36 (RMB
8
10 ) in Year 2010, and so on.
(1) Please try to calculate the squared error (SE Line) of the above regression model. (50
points)
(2) Please try to calculate the R 2 (Coefficient of Determination) of the above regression
model. (50 points)
Answer:
(1) Squared error formula: SELine =
(2) Formula:
R2 = 1 - SELine/SEy
y y ̅ (yi-y ̅)^2
0.52 890.5973 792237.6
9.36 890.5973 776579.1
52 890.5973 703245.4
191 890.5973 489436.3
352 890.5973 290087
571 890.5973 102142.4
912 890.5973 458.0767
1207 890.5973 100110.7
1682.69 890.5973 627410.9
2135 890.5973 1548538
2684 890.5973 3216293
SEy = 8646539
R2 = 1 – (786566.6/8646539) = 0.91
(The results were rounded)