Docsity

Problemas en Análisis de Series Temporales: Daniel Test y Kruskal-Wallis (87 characters), Apuntes de Presas

Toggle sidebar
bg1
PROBLEM SET 1
A) DANIEL TEST
Period (A) Yt (B) Time Rank (C) Value Rank Yt
(D)
Dt (E) Dt^2 (F)
1) Time Rank
oWrite 1 to the first cell of time rank
oEdit-Fill-series
2) Rank Yt
oClick the left button of the
mouse and while clicked
choose the columns A, B, and
C. (PERIOD, Yt, Time Rank).
oData- Order Once there
choose the option that it
orders the data according to
variable Yt in and from
smallest to larger (increasing) Ascendente way and accept.
ocell D2 and create a time variable up to cell D285 following the same steps you
have done before to create the time rank.
oChoose jointly columns A, B, C and D (left mouse button pressed) and follow the
next instructions: Datos-Ordenar. Once in this menu choose to order the data
according to the time rank (t) with increasing Ascendente rank and accept:
pf3
pf4
pf5
pf8
pf9
pfa

Vista previa parcial del texto

¡Descarga Problemas en Análisis de Series Temporales: Daniel Test y Kruskal-Wallis (87 characters) y más Apuntes en PDF de Presas solo en Docsity!

PROBLEM SET 1

A) DANIEL TEST

Period (A) Yt (B) Time Rank (C) Value Rank Yt (D) Dt (E) Dt^2 (F)

  1. Time Rank o Write 1 to the first cell of time rank o Edit-Fill-series
  2. Rank Yt o Click the left button of the mouse and while clicked choose the columns A, B, and C. (PERIOD, Yt, Time Rank).

o Data- Order Once there

choose the option that it orders the data according to variable Yt in and from smallest to larger (increasing) Ascendente way and accept. o cell D2 and create a time variable up to cell D285 following the same steps you have done before to create the time rank. o Choose jointly columns A, B, C and D (left mouse button pressed) and follow the next instructions: Datos-Ordenar. Once in this menu choose to order the data according to the time rank (t) with increasing Ascendente rank and accept:

  1. Dt o Write down the following formula =D2-C2 in cell E2 (expander)
  2. Dt^
  1. Go to cell F2 and write the following formula: =E2^
    1. Calculate Daniel Test o T  =COUNT(B2:B285)COUNT(B2:B285) (B=Yt column) o Sum dt^2  =COUNT(B2:B285)SUM(F2:F285) (sum of the Dt^2 column) o Tao_s  =COUNT(B2:B285) 1-((6* Sum dt^2)/(T(T^2-1))) o Z  Daniel Test  SQRT(T-1)tao_s B) Kruskall Wallis Test Period (A) Yt (B) Time Rank (C) Value Rank Yt (D)

= (12/(T(T+1)))( Sum (Ri^2/Ti))-(3*(T+1)) PROBLEM SET 2

  1. Naïve Method Period (A) Yt (B) Forecast (C)

Error (D) e^2 (E) | e | (F)

A6 B6 _ _ _ _

A7 B7 B6 =COUNT(B2:B285)C6-B7 (Error)^2 ABS(D7) A8 B8 B7 =COUNT(B2:B285)C7-B8 “””” ABS(D8) … A278 B278 Forecast A A279 B279 Forecast A A280 B280 Forecast A (Same formulas, BUT Forecast) … (e^2) (column)

| e | (Column)

MSE AVERAGE(E7:E

MAD AVERAGE(F7:F

MSE(12) AVERAGE(E278:E

MAD (12) AVERAGE(F278:F

  1. Simple Mean Period (A) Yt (B) Forecast (C)

Error (D) e^2 (E) | e | (F)

A4 B4 average(Yt) Yt - Forecast (Error)^2 ABS(ERRO R) A5 B5 average(Yt) Yt - Forecast (Error)^2 ABS(ERRO R) A6 B6 average(Yt) Yt - Forecast

“””” ABS(ERRO

R)

Mean=COUNT(B2:B285)AVERAGE(B4:B275) average(Yt) =COUNT(B2:B285) FORECAST

… (e^2) (column)

| e | (Column)

MSE AVERAGE(E4:E275)^ MAD AVERAGE(F4:F275)

MSE(12) AVERAGE(E276:E

MAD (12) AVERAGE(F276:F

  1. Moving Averages (k=COUNT(B2:B285)6)

Period (A) Yt (B) Forecast (C) Error (D) e^2 (E) | e | (F)

A2 B2 Yt - Forecast (Error)^2 ABS(ERRO R) A3 B3 Yt - Forecast (Error)^2 ABS(ERRO R) A4 B4 Yt – Forecast (Error)^2 ABS(ERRO R) A5 B5 Yt – Forecast (Error)^2 ABS(ERRO R) A6 B6 Yt – Forecast (Error)^2 ABS(ERRO R) A7 B7 =COUNT(B2:B285)AVERAGE( B2:B7) (COLUMN Yt) Yt - Forecast (Error)^2 ABS(ERRO R) A8 B8 =COUNT(B2:B285)AVERAGE( B3:B8) (COLUMN Yt) Yt - Forecast

“””” ABS(ERRO

R)

A274 B274 =COUNT(B2:B285)AVERAGE(B$

:B$273) Yt - Forecast (Error)^2 ABS(ERRO R) A275 B275 =COUNT(B2:B285)AVERAGE(B$ :B$273) Yt - Forecast (Error)^2 ABS(ERRO R) A276 B276 =COUNT(B2:B285)AVERAGE(B$ :B$273) Yt - Forecast (Error)^2 ABS(ERRO R)

Abs ((Y-Forecast)/Y)  abs(Forecast error / Yt) EPAM = SUM(F4:F15)/COUNT(F4:F15)*100  (F= Abs ((Y-Forecast)/Y)) Absolute Deviation= ABS(forecast error) Running Sum of forecast errors =SUM(E$27:E27)  =SUM(E$27:E28)  =SUM(E$27:E29)  =SUM(E$27:E30): E=FORECAST ERRORS MAD = AVERAGE(F$27:F27)  =AVERAGE(F$27:F28)  =AVERAGE(F$27:F29)  =AVERAGE(F$27:F30)… F= ABSOLUTE DEVIATION Tracking Signal = +G27/H27=+G28/H28…. G= Running Sum of Forecast Errors. H = MAD Finally (for the period) Sum = SUM(E27:E38) (forecast errors column) MAD = +'Simple Mean'!H Tracking signal = Sum /MAD

5) Ex-ante Forecast GREEN (ANSWERS) =AVERAGE(B$6:B$289) =average of Yt MEAN = =AVERAGE(B$6:B$289) =average of Yt PROBLEM SET 3

1. NAÏVE METHOD Forecast for seasonal naïve method  until 12 month _ , after that Yt Forecast Errorsame, Yt – Forecast for seasonal naïve method Absolute Error  abs(forecast error) Squared Error  Forecast Error ^ Absolute error/observed series:

3. CHOICE OF BEST METHOD

4. EX-ANTE FORECAST

  • PROBLEM SET