Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationSat, 18 Dec 2010 12:43:13 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/18/t129267606677xdcg7c3hqjgi4.htm/, Retrieved Tue, 30 Apr 2024 03:27:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111909, Retrieved Tue, 30 Apr 2024 03:27:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [Exponential Smoothing] [Unemployment] [2010-11-30 13:37:23] [b98453cac15ba1066b407e146608df68]
-   P     [Exponential Smoothing] [] [2010-12-08 17:55:41] [58af523ef9b33032fd2497c80088399b]
-   P       [Exponential Smoothing] [] [2010-12-09 19:53:00] [58af523ef9b33032fd2497c80088399b]
-    D          [Exponential Smoothing] [] [2010-12-18 12:43:13] [7c1b7ddc8e9000e55b944088fdfb52dc] [Current]
-    D            [Exponential Smoothing] [] [2010-12-22 13:21:23] [58af523ef9b33032fd2497c80088399b]
Feedback Forum

Post a new message
Dataseries X:
104,31
103,88
103,88
103,86
103,89
103,98
103,98
104,29
104,29
104,24
103,98
103,54
103,44
103,32
103,3
103,26
103,14
103,11
102,91
103,23
103,23
103,14
102,91
102,42
102,1
102,07
102,06
101,98
101,83
101,75
101,56
101,66
101,65
101,61
101,52
101,31
101,19
101,11
101,1
101,07
100,98
100,93
100,92
101,02
101,01
100,97
100,89
100,62
100,53
100,48
100,48
100,47
100,52
100,49
100,47
100,44




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111909&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111909&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111909&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta-1.01372903127395e-17
gamma0.18775195833985

\begin{tabular}{lllllllll}
\hline
Estimated Parameters of Exponential Smoothing \tabularnewline
Parameter & Value \tabularnewline
alpha & 1 \tabularnewline
beta & -1.01372903127395e-17 \tabularnewline
gamma & 0.18775195833985 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111909&T=1

[TABLE]
[ROW][C]Estimated Parameters of Exponential Smoothing[/C][/ROW]
[ROW][C]Parameter[/C][C]Value[/C][/ROW]
[ROW][C]alpha[/C][C]1[/C][/ROW]
[ROW][C]beta[/C][C]-1.01372903127395e-17[/C][/ROW]
[ROW][C]gamma[/C][C]0.18775195833985[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111909&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111909&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta-1.01372903127395e-17
gamma0.18775195833985







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13103.44103.804468482906-0.364468482905991
14103.32103.334692599068-0.0146925990675868
15103.3103.314275932401-0.0142759324009347
16103.26103.275942599068-0.0159425990675999
17103.14103.156359265734-0.0163592657342662
18103.11103.127192599068-0.0171925990675845
19102.91103.096359265734-0.186359265734282
20103.23103.2055259324010.0244740675990585
21103.23103.2034425990680.0265574009324183
22103.14103.155109265734-0.0151092657342673
23102.91102.8621925990680.0478074009323848
24102.42102.463442599068-0.0434425990675891
25102.1102.326775932401-0.226775932400912
26102.07101.9946925990680.0753074009324166
27102.06102.064275932401-0.00427593240092961
28101.98102.035942599068-0.0559425990676061
29101.83101.876359265734-0.0463592657342673
30101.75101.817192599068-0.0671925990675817
31101.56101.736359265734-0.176359265734277
32101.66101.855525932401-0.195525932400955
33101.65101.6334425990680.0165574009324274
34101.61101.5751092657340.0348907342657299
35101.52101.3321925990680.187807400932385
36101.31101.0734425990680.236557400932412
37101.19101.216775932401-0.0267759324009091
38101.11101.0846925990680.0253074009324195
39101.1101.104275932401-0.00427593240094382
40101.07101.075942599068-0.00594259906760897
41100.98100.9663592657340.0136407342657492
42100.93100.967192599068-0.0371925990675805
43100.92100.9163592657340.00364073426571565
44101.02101.215525932401-0.195525932400955
45101.01100.9934425990680.0165574009324274
46100.97100.9351092657340.0348907342657299
47100.89100.6921925990680.19780740093239
48100.62100.4434425990680.17655740093241
49100.53100.5267759324010.003224067599092
50100.48100.4246925990680.0553074009324206
51100.48100.4742759324010.0057240675990613
52100.47100.4559425990680.0140574009323871
53100.52100.3663592657340.153640734265736
54100.49100.507192599068-0.0171925990675845
55100.47100.476359265734-0.00635926573427525
56100.44100.765525932401-0.32552593240095

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
13 & 103.44 & 103.804468482906 & -0.364468482905991 \tabularnewline
14 & 103.32 & 103.334692599068 & -0.0146925990675868 \tabularnewline
15 & 103.3 & 103.314275932401 & -0.0142759324009347 \tabularnewline
16 & 103.26 & 103.275942599068 & -0.0159425990675999 \tabularnewline
17 & 103.14 & 103.156359265734 & -0.0163592657342662 \tabularnewline
18 & 103.11 & 103.127192599068 & -0.0171925990675845 \tabularnewline
19 & 102.91 & 103.096359265734 & -0.186359265734282 \tabularnewline
20 & 103.23 & 103.205525932401 & 0.0244740675990585 \tabularnewline
21 & 103.23 & 103.203442599068 & 0.0265574009324183 \tabularnewline
22 & 103.14 & 103.155109265734 & -0.0151092657342673 \tabularnewline
23 & 102.91 & 102.862192599068 & 0.0478074009323848 \tabularnewline
24 & 102.42 & 102.463442599068 & -0.0434425990675891 \tabularnewline
25 & 102.1 & 102.326775932401 & -0.226775932400912 \tabularnewline
26 & 102.07 & 101.994692599068 & 0.0753074009324166 \tabularnewline
27 & 102.06 & 102.064275932401 & -0.00427593240092961 \tabularnewline
28 & 101.98 & 102.035942599068 & -0.0559425990676061 \tabularnewline
29 & 101.83 & 101.876359265734 & -0.0463592657342673 \tabularnewline
30 & 101.75 & 101.817192599068 & -0.0671925990675817 \tabularnewline
31 & 101.56 & 101.736359265734 & -0.176359265734277 \tabularnewline
32 & 101.66 & 101.855525932401 & -0.195525932400955 \tabularnewline
33 & 101.65 & 101.633442599068 & 0.0165574009324274 \tabularnewline
34 & 101.61 & 101.575109265734 & 0.0348907342657299 \tabularnewline
35 & 101.52 & 101.332192599068 & 0.187807400932385 \tabularnewline
36 & 101.31 & 101.073442599068 & 0.236557400932412 \tabularnewline
37 & 101.19 & 101.216775932401 & -0.0267759324009091 \tabularnewline
38 & 101.11 & 101.084692599068 & 0.0253074009324195 \tabularnewline
39 & 101.1 & 101.104275932401 & -0.00427593240094382 \tabularnewline
40 & 101.07 & 101.075942599068 & -0.00594259906760897 \tabularnewline
41 & 100.98 & 100.966359265734 & 0.0136407342657492 \tabularnewline
42 & 100.93 & 100.967192599068 & -0.0371925990675805 \tabularnewline
43 & 100.92 & 100.916359265734 & 0.00364073426571565 \tabularnewline
44 & 101.02 & 101.215525932401 & -0.195525932400955 \tabularnewline
45 & 101.01 & 100.993442599068 & 0.0165574009324274 \tabularnewline
46 & 100.97 & 100.935109265734 & 0.0348907342657299 \tabularnewline
47 & 100.89 & 100.692192599068 & 0.19780740093239 \tabularnewline
48 & 100.62 & 100.443442599068 & 0.17655740093241 \tabularnewline
49 & 100.53 & 100.526775932401 & 0.003224067599092 \tabularnewline
50 & 100.48 & 100.424692599068 & 0.0553074009324206 \tabularnewline
51 & 100.48 & 100.474275932401 & 0.0057240675990613 \tabularnewline
52 & 100.47 & 100.455942599068 & 0.0140574009323871 \tabularnewline
53 & 100.52 & 100.366359265734 & 0.153640734265736 \tabularnewline
54 & 100.49 & 100.507192599068 & -0.0171925990675845 \tabularnewline
55 & 100.47 & 100.476359265734 & -0.00635926573427525 \tabularnewline
56 & 100.44 & 100.765525932401 & -0.32552593240095 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111909&T=2

[TABLE]
[ROW][C]Interpolation Forecasts of Exponential Smoothing[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Fitted[/C][C]Residuals[/C][/ROW]
[ROW][C]13[/C][C]103.44[/C][C]103.804468482906[/C][C]-0.364468482905991[/C][/ROW]
[ROW][C]14[/C][C]103.32[/C][C]103.334692599068[/C][C]-0.0146925990675868[/C][/ROW]
[ROW][C]15[/C][C]103.3[/C][C]103.314275932401[/C][C]-0.0142759324009347[/C][/ROW]
[ROW][C]16[/C][C]103.26[/C][C]103.275942599068[/C][C]-0.0159425990675999[/C][/ROW]
[ROW][C]17[/C][C]103.14[/C][C]103.156359265734[/C][C]-0.0163592657342662[/C][/ROW]
[ROW][C]18[/C][C]103.11[/C][C]103.127192599068[/C][C]-0.0171925990675845[/C][/ROW]
[ROW][C]19[/C][C]102.91[/C][C]103.096359265734[/C][C]-0.186359265734282[/C][/ROW]
[ROW][C]20[/C][C]103.23[/C][C]103.205525932401[/C][C]0.0244740675990585[/C][/ROW]
[ROW][C]21[/C][C]103.23[/C][C]103.203442599068[/C][C]0.0265574009324183[/C][/ROW]
[ROW][C]22[/C][C]103.14[/C][C]103.155109265734[/C][C]-0.0151092657342673[/C][/ROW]
[ROW][C]23[/C][C]102.91[/C][C]102.862192599068[/C][C]0.0478074009323848[/C][/ROW]
[ROW][C]24[/C][C]102.42[/C][C]102.463442599068[/C][C]-0.0434425990675891[/C][/ROW]
[ROW][C]25[/C][C]102.1[/C][C]102.326775932401[/C][C]-0.226775932400912[/C][/ROW]
[ROW][C]26[/C][C]102.07[/C][C]101.994692599068[/C][C]0.0753074009324166[/C][/ROW]
[ROW][C]27[/C][C]102.06[/C][C]102.064275932401[/C][C]-0.00427593240092961[/C][/ROW]
[ROW][C]28[/C][C]101.98[/C][C]102.035942599068[/C][C]-0.0559425990676061[/C][/ROW]
[ROW][C]29[/C][C]101.83[/C][C]101.876359265734[/C][C]-0.0463592657342673[/C][/ROW]
[ROW][C]30[/C][C]101.75[/C][C]101.817192599068[/C][C]-0.0671925990675817[/C][/ROW]
[ROW][C]31[/C][C]101.56[/C][C]101.736359265734[/C][C]-0.176359265734277[/C][/ROW]
[ROW][C]32[/C][C]101.66[/C][C]101.855525932401[/C][C]-0.195525932400955[/C][/ROW]
[ROW][C]33[/C][C]101.65[/C][C]101.633442599068[/C][C]0.0165574009324274[/C][/ROW]
[ROW][C]34[/C][C]101.61[/C][C]101.575109265734[/C][C]0.0348907342657299[/C][/ROW]
[ROW][C]35[/C][C]101.52[/C][C]101.332192599068[/C][C]0.187807400932385[/C][/ROW]
[ROW][C]36[/C][C]101.31[/C][C]101.073442599068[/C][C]0.236557400932412[/C][/ROW]
[ROW][C]37[/C][C]101.19[/C][C]101.216775932401[/C][C]-0.0267759324009091[/C][/ROW]
[ROW][C]38[/C][C]101.11[/C][C]101.084692599068[/C][C]0.0253074009324195[/C][/ROW]
[ROW][C]39[/C][C]101.1[/C][C]101.104275932401[/C][C]-0.00427593240094382[/C][/ROW]
[ROW][C]40[/C][C]101.07[/C][C]101.075942599068[/C][C]-0.00594259906760897[/C][/ROW]
[ROW][C]41[/C][C]100.98[/C][C]100.966359265734[/C][C]0.0136407342657492[/C][/ROW]
[ROW][C]42[/C][C]100.93[/C][C]100.967192599068[/C][C]-0.0371925990675805[/C][/ROW]
[ROW][C]43[/C][C]100.92[/C][C]100.916359265734[/C][C]0.00364073426571565[/C][/ROW]
[ROW][C]44[/C][C]101.02[/C][C]101.215525932401[/C][C]-0.195525932400955[/C][/ROW]
[ROW][C]45[/C][C]101.01[/C][C]100.993442599068[/C][C]0.0165574009324274[/C][/ROW]
[ROW][C]46[/C][C]100.97[/C][C]100.935109265734[/C][C]0.0348907342657299[/C][/ROW]
[ROW][C]47[/C][C]100.89[/C][C]100.692192599068[/C][C]0.19780740093239[/C][/ROW]
[ROW][C]48[/C][C]100.62[/C][C]100.443442599068[/C][C]0.17655740093241[/C][/ROW]
[ROW][C]49[/C][C]100.53[/C][C]100.526775932401[/C][C]0.003224067599092[/C][/ROW]
[ROW][C]50[/C][C]100.48[/C][C]100.424692599068[/C][C]0.0553074009324206[/C][/ROW]
[ROW][C]51[/C][C]100.48[/C][C]100.474275932401[/C][C]0.0057240675990613[/C][/ROW]
[ROW][C]52[/C][C]100.47[/C][C]100.455942599068[/C][C]0.0140574009323871[/C][/ROW]
[ROW][C]53[/C][C]100.52[/C][C]100.366359265734[/C][C]0.153640734265736[/C][/ROW]
[ROW][C]54[/C][C]100.49[/C][C]100.507192599068[/C][C]-0.0171925990675845[/C][/ROW]
[ROW][C]55[/C][C]100.47[/C][C]100.476359265734[/C][C]-0.00635926573427525[/C][/ROW]
[ROW][C]56[/C][C]100.44[/C][C]100.765525932401[/C][C]-0.32552593240095[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111909&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111909&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13103.44103.804468482906-0.364468482905991
14103.32103.334692599068-0.0146925990675868
15103.3103.314275932401-0.0142759324009347
16103.26103.275942599068-0.0159425990675999
17103.14103.156359265734-0.0163592657342662
18103.11103.127192599068-0.0171925990675845
19102.91103.096359265734-0.186359265734282
20103.23103.2055259324010.0244740675990585
21103.23103.2034425990680.0265574009324183
22103.14103.155109265734-0.0151092657342673
23102.91102.8621925990680.0478074009323848
24102.42102.463442599068-0.0434425990675891
25102.1102.326775932401-0.226775932400912
26102.07101.9946925990680.0753074009324166
27102.06102.064275932401-0.00427593240092961
28101.98102.035942599068-0.0559425990676061
29101.83101.876359265734-0.0463592657342673
30101.75101.817192599068-0.0671925990675817
31101.56101.736359265734-0.176359265734277
32101.66101.855525932401-0.195525932400955
33101.65101.6334425990680.0165574009324274
34101.61101.5751092657340.0348907342657299
35101.52101.3321925990680.187807400932385
36101.31101.0734425990680.236557400932412
37101.19101.216775932401-0.0267759324009091
38101.11101.0846925990680.0253074009324195
39101.1101.104275932401-0.00427593240094382
40101.07101.075942599068-0.00594259906760897
41100.98100.9663592657340.0136407342657492
42100.93100.967192599068-0.0371925990675805
43100.92100.9163592657340.00364073426571565
44101.02101.215525932401-0.195525932400955
45101.01100.9934425990680.0165574009324274
46100.97100.9351092657340.0348907342657299
47100.89100.6921925990680.19780740093239
48100.62100.4434425990680.17655740093241
49100.53100.5267759324010.003224067599092
50100.48100.4246925990680.0553074009324206
51100.48100.4742759324010.0057240675990613
52100.47100.4559425990680.0140574009323871
53100.52100.3663592657340.153640734265736
54100.49100.507192599068-0.0171925990675845
55100.47100.476359265734-0.00635926573427525
56100.44100.765525932401-0.32552593240095







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
57100.413442599068100.17477245375100.652112744386
58100.338551864802100.00102130836100.676082421244
59100.06074446386999.6473556459289100.47413328181
6099.61418706293799.136846772301100.091527353573
6199.52096299533898.9872803262072100.054645664469
6299.415655594405598.8310355215405100.000275667271
6399.409931526806598.7784696769194100.041393376694
6499.385874125874198.7108130129896100.060935238759
6599.282233391608498.566222955654499.9982438275623
6699.26942599067698.5146847219877100.024167259364
6799.255785256410298.4642059357308100.04736457709
6899.551311188811298.72453355293100.378088824692

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
57 & 100.413442599068 & 100.17477245375 & 100.652112744386 \tabularnewline
58 & 100.338551864802 & 100.00102130836 & 100.676082421244 \tabularnewline
59 & 100.060744463869 & 99.6473556459289 & 100.47413328181 \tabularnewline
60 & 99.614187062937 & 99.136846772301 & 100.091527353573 \tabularnewline
61 & 99.520962995338 & 98.9872803262072 & 100.054645664469 \tabularnewline
62 & 99.4156555944055 & 98.8310355215405 & 100.000275667271 \tabularnewline
63 & 99.4099315268065 & 98.7784696769194 & 100.041393376694 \tabularnewline
64 & 99.3858741258741 & 98.7108130129896 & 100.060935238759 \tabularnewline
65 & 99.2822333916084 & 98.5662229556544 & 99.9982438275623 \tabularnewline
66 & 99.269425990676 & 98.5146847219877 & 100.024167259364 \tabularnewline
67 & 99.2557852564102 & 98.4642059357308 & 100.04736457709 \tabularnewline
68 & 99.5513111888112 & 98.72453355293 & 100.378088824692 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111909&T=3

[TABLE]
[ROW][C]Extrapolation Forecasts of Exponential Smoothing[/C][/ROW]
[ROW][C]t[/C][C]Forecast[/C][C]95% Lower Bound[/C][C]95% Upper Bound[/C][/ROW]
[ROW][C]57[/C][C]100.413442599068[/C][C]100.17477245375[/C][C]100.652112744386[/C][/ROW]
[ROW][C]58[/C][C]100.338551864802[/C][C]100.00102130836[/C][C]100.676082421244[/C][/ROW]
[ROW][C]59[/C][C]100.060744463869[/C][C]99.6473556459289[/C][C]100.47413328181[/C][/ROW]
[ROW][C]60[/C][C]99.614187062937[/C][C]99.136846772301[/C][C]100.091527353573[/C][/ROW]
[ROW][C]61[/C][C]99.520962995338[/C][C]98.9872803262072[/C][C]100.054645664469[/C][/ROW]
[ROW][C]62[/C][C]99.4156555944055[/C][C]98.8310355215405[/C][C]100.000275667271[/C][/ROW]
[ROW][C]63[/C][C]99.4099315268065[/C][C]98.7784696769194[/C][C]100.041393376694[/C][/ROW]
[ROW][C]64[/C][C]99.3858741258741[/C][C]98.7108130129896[/C][C]100.060935238759[/C][/ROW]
[ROW][C]65[/C][C]99.2822333916084[/C][C]98.5662229556544[/C][C]99.9982438275623[/C][/ROW]
[ROW][C]66[/C][C]99.269425990676[/C][C]98.5146847219877[/C][C]100.024167259364[/C][/ROW]
[ROW][C]67[/C][C]99.2557852564102[/C][C]98.4642059357308[/C][C]100.04736457709[/C][/ROW]
[ROW][C]68[/C][C]99.5513111888112[/C][C]98.72453355293[/C][C]100.378088824692[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111909&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111909&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
57100.413442599068100.17477245375100.652112744386
58100.338551864802100.00102130836100.676082421244
59100.06074446386999.6473556459289100.47413328181
6099.61418706293799.136846772301100.091527353573
6199.52096299533898.9872803262072100.054645664469
6299.415655594405598.8310355215405100.000275667271
6399.409931526806598.7784696769194100.041393376694
6499.385874125874198.7108130129896100.060935238759
6599.282233391608498.566222955654499.9982438275623
6699.26942599067698.5146847219877100.024167259364
6799.255785256410298.4642059357308100.04736457709
6899.551311188811298.72453355293100.378088824692



Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')