c_tes_4.gif

Step 3: For i=T,...K, S_{i+1}=a_i*(S_i+b_i(x_{i+1}-x_i))+(1-a_i)* {y_{i+1}}\over I_{i+1-T}. Then, I _{i+1}=e_i I_{i+1-T}+(1-e_i) * {y_{i+1}}\over S_{i+1}. Then, b_{i+1}=d_i b_i + (1-d_i) * {S_{i+1}-S_i}\over {x_{i+1}-x_i}. Forecast for x is (S_K + b_K(x-x_K)) * (I_j)^m. Where j is determined by finding the maximum j, such that x_j < x, and then m = {x-x_j}\over T.