Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationSun, 11 Aug 2013 17:29:28 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Aug/11/t137625659441udz315h97yxi3.htm/, Retrieved Thu, 02 May 2024 03:13:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=211016, Retrieved Thu, 02 May 2024 03:13:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact207
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Exponential Smoothing] [] [2013-08-11 21:29:28] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
684.20
584.10
765.38
892.28
885.40
677.02
1006.63
1122.06
1163.39
993.20
1312.46
1545.31
1596.20
1260.41
1735.16
2029.66
2107.79
1650.30
2304.40
2639.42




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=211016&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=211016&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=211016&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.175201784080097
beta1
gamma1

\begin{tabular}{lllllllll}
\hline
Estimated Parameters of Exponential Smoothing \tabularnewline
Parameter & Value \tabularnewline
alpha & 0.175201784080097 \tabularnewline
beta & 1 \tabularnewline
gamma & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=211016&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]0.175201784080097[/C][/ROW]
[ROW][C]beta[/C][C]1[/C][/ROW]
[ROW][C]gamma[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=211016&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=211016&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
alpha0.175201784080097
beta1
gamma1







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
5885.4816.739437568.6605625000002
6677.02618.94121859188658.0787814081139
71006.63922.49830887762884.131691122372
81122.061109.719937808112.3400621918988
91163.391204.37040563368-40.9804056336759
10993.2998.532748568979-5.3327485689789
111312.461321.25629517464-8.79629517464173
121545.311425.48989471618119.820105283825
131596.21506.3298534737389.8701465262704
141260.411387.08224309411-126.672243094113
151735.161698.6939433484136.4660566515863
162029.661937.8739867392991.7860132607129
172107.792005.12184849325102.668151506753
181650.31727.77712657823-77.4771265782251
192304.42209.4475815634894.9524184365187
202639.422541.6327602993697.7872397006386

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
5 & 885.4 & 816.7394375 & 68.6605625000002 \tabularnewline
6 & 677.02 & 618.941218591886 & 58.0787814081139 \tabularnewline
7 & 1006.63 & 922.498308877628 & 84.131691122372 \tabularnewline
8 & 1122.06 & 1109.7199378081 & 12.3400621918988 \tabularnewline
9 & 1163.39 & 1204.37040563368 & -40.9804056336759 \tabularnewline
10 & 993.2 & 998.532748568979 & -5.3327485689789 \tabularnewline
11 & 1312.46 & 1321.25629517464 & -8.79629517464173 \tabularnewline
12 & 1545.31 & 1425.48989471618 & 119.820105283825 \tabularnewline
13 & 1596.2 & 1506.32985347373 & 89.8701465262704 \tabularnewline
14 & 1260.41 & 1387.08224309411 & -126.672243094113 \tabularnewline
15 & 1735.16 & 1698.69394334841 & 36.4660566515863 \tabularnewline
16 & 2029.66 & 1937.87398673929 & 91.7860132607129 \tabularnewline
17 & 2107.79 & 2005.12184849325 & 102.668151506753 \tabularnewline
18 & 1650.3 & 1727.77712657823 & -77.4771265782251 \tabularnewline
19 & 2304.4 & 2209.44758156348 & 94.9524184365187 \tabularnewline
20 & 2639.42 & 2541.63276029936 & 97.7872397006386 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=211016&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]5[/C][C]885.4[/C][C]816.7394375[/C][C]68.6605625000002[/C][/ROW]
[ROW][C]6[/C][C]677.02[/C][C]618.941218591886[/C][C]58.0787814081139[/C][/ROW]
[ROW][C]7[/C][C]1006.63[/C][C]922.498308877628[/C][C]84.131691122372[/C][/ROW]
[ROW][C]8[/C][C]1122.06[/C][C]1109.7199378081[/C][C]12.3400621918988[/C][/ROW]
[ROW][C]9[/C][C]1163.39[/C][C]1204.37040563368[/C][C]-40.9804056336759[/C][/ROW]
[ROW][C]10[/C][C]993.2[/C][C]998.532748568979[/C][C]-5.3327485689789[/C][/ROW]
[ROW][C]11[/C][C]1312.46[/C][C]1321.25629517464[/C][C]-8.79629517464173[/C][/ROW]
[ROW][C]12[/C][C]1545.31[/C][C]1425.48989471618[/C][C]119.820105283825[/C][/ROW]
[ROW][C]13[/C][C]1596.2[/C][C]1506.32985347373[/C][C]89.8701465262704[/C][/ROW]
[ROW][C]14[/C][C]1260.41[/C][C]1387.08224309411[/C][C]-126.672243094113[/C][/ROW]
[ROW][C]15[/C][C]1735.16[/C][C]1698.69394334841[/C][C]36.4660566515863[/C][/ROW]
[ROW][C]16[/C][C]2029.66[/C][C]1937.87398673929[/C][C]91.7860132607129[/C][/ROW]
[ROW][C]17[/C][C]2107.79[/C][C]2005.12184849325[/C][C]102.668151506753[/C][/ROW]
[ROW][C]18[/C][C]1650.3[/C][C]1727.77712657823[/C][C]-77.4771265782251[/C][/ROW]
[ROW][C]19[/C][C]2304.4[/C][C]2209.44758156348[/C][C]94.9524184365187[/C][/ROW]
[ROW][C]20[/C][C]2639.42[/C][C]2541.63276029936[/C][C]97.7872397006386[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=211016&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=211016&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
5885.4816.739437568.6605625000002
6677.02618.94121859188658.0787814081139
71006.63922.49830887762884.131691122372
81122.061109.719937808112.3400621918988
91163.391204.37040563368-40.9804056336759
10993.2998.532748568979-5.3327485689789
111312.461321.25629517464-8.79629517464173
121545.311425.48989471618119.820105283825
131596.21506.3298534737389.8701465262704
141260.411387.08224309411-126.672243094113
151735.161698.6939433484136.4660566515863
162029.661937.8739867392991.7860132607129
172107.792005.12184849325102.668151506753
181650.31727.77712657823-77.4771265782251
192304.42209.4475815634894.9524184365187
202639.422541.6327602993697.7872397006386







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
212657.089460321892515.609136007662798.56978463613
222233.367792290512083.453204405852383.28238017518
232904.600291146332737.255700499063071.94488179361
243239.620291146333045.108034490953434.13254780172

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
21 & 2657.08946032189 & 2515.60913600766 & 2798.56978463613 \tabularnewline
22 & 2233.36779229051 & 2083.45320440585 & 2383.28238017518 \tabularnewline
23 & 2904.60029114633 & 2737.25570049906 & 3071.94488179361 \tabularnewline
24 & 3239.62029114633 & 3045.10803449095 & 3434.13254780172 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=211016&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]21[/C][C]2657.08946032189[/C][C]2515.60913600766[/C][C]2798.56978463613[/C][/ROW]
[ROW][C]22[/C][C]2233.36779229051[/C][C]2083.45320440585[/C][C]2383.28238017518[/C][/ROW]
[ROW][C]23[/C][C]2904.60029114633[/C][C]2737.25570049906[/C][C]3071.94488179361[/C][/ROW]
[ROW][C]24[/C][C]3239.62029114633[/C][C]3045.10803449095[/C][C]3434.13254780172[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=211016&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=211016&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
212657.089460321892515.609136007662798.56978463613
222233.367792290512083.453204405852383.28238017518
232904.600291146332737.255700499063071.94488179361
243239.620291146333045.108034490953434.13254780172



Parameters (Session):
par1 = 4 ; par2 = Triple ; par3 = additive ;
Parameters (R input):
par1 = 4 ; par2 = Triple ; par3 = additive ;
R code (references can be found in the software module):
par3 <- 'additive'
par2 <- 'Triple'
par1 <- '4'
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')