Question #148869
Q-3 The daily COVID 19 cases (in hundred) for Delhi for past 2 week is summarizing in the following table:
Day 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Cases 28 29 33 31 37 34 36 43 41 32 34 37 39 32

a. Using exponential smoothing method forecast the cases for 15 days, taking alpha as 0.3 and Initial forecast is the average of all data.
b. Using linear trend analysis, find the trend line for number of COVID 19 cases in Delhi and forecast for next 3 days. Also compute the Mean Square Error.
1
Expert's answer
2020-12-13T13:35:33-0500

a). We remind that the formula for the forecast in exponential smoothing method has the form(https://towardsdatascience.com/simple-exponential-smoothing-749fc5631bed):

ft=αdt1+(1α)ft1f_t=\alpha d_{t-1}+(1-\alpha)f_{t-1}

We set α=0.3\alpha=0.3 and receive the following:

We will consider two cases:

  1. We start from the first day. I.e., d1=28d_1=28, f1=114i=114dif_1=\frac1{14}\sum_{i=1}^{14}d_i and we will use the formula for the rest.

We will get the following values for the first 15 days:



For the 15th day we received f15=35,4386f_{15}=35,4386.

2.We can also set d1=32d_1=32 (value for the last 14th day) and f1=114i=114di=34.7143f_1=\frac1{14}\sum_{i=1}^{14}d_i=34.7143

Then, f2=0.332+0.734,7143=33,9f_2=0.3\cdot32+0.7\cdot34,7143=33,9. This is the forecast for the 15th day.

b). We remind that the aim is to find such line lt=at+bl_t=at+b that S=t[yt(at+b)]2S=\sum_{t}[y_t-(at+b)]^2 is minimized. After substitution of all values we receive: S=171207512a972b+1015a2+210ab+14b2S=17120-7512a-972b+1015a^2+210ab+14b^2

We solve the system Sa=2030a+210b7512=0\frac{\partial S}{\partial a}=2030a+210b-7512=0 , Sb=28b+210a972=0\frac{\partial S}{\partial b}=28b+210a-972=0 . The latter is solved via: a=222455a=\frac{222}{455} , b=282691b=\frac{2826}{91} .

It is the global minimum.

We substitute the values t=15,t=15, t=16,t=16, t=17t=17 in at+bat+b and receive:

l1538.374l_{15}\approx38.374 ; l1638.862l_{16}\approx38.862 ; l1739.35l_{17}\approx39.35 . It is the approximation for the next 3 days.

The Mean Square Error is: S=114t=114[yt(222455t+282691)]2=44294318513.91S=\frac{1}{14}\sum_{t=1}^{14}[y_t-(\frac{222}{455}t+\frac{2826}{91})]^2=\frac{44294}{3185}\approx13.91


The latter was computed via the following formula in Maple:

S:=evalf(((28-(a*1+b))^2+(29-(a*2+b))^2+(33-(a*3+b))^2+(31-(a*4+b))^2+(37-(a*5+b))^2+(34-(a*6+b))^2+(36-(a*7+b))^2+(43-(a*8+b))^2+(41-(a*9+b))^2+(32-(a*10+b))^2+(34-(a*11+b))^2+(37-(a*12+b))^2+(39-(a*13+b))^2+(32-(a*14+b))^2)/14);



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS