Free Statistics

of Irreproducible Research!

Author's title

Предсказваl...

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationTue, 15 Apr 2014 01:43:48 -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/2014/Apr/15/t1397540817oym8cqlyoqu31za.htm/, Retrieved Fri, 17 May 2024 03:45:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=234449, Retrieved Fri, 17 May 2024 03:45:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Exponential Smoothing] [Пр...] [2014-04-15 05:43:48] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
364
354
410
407
378
364
420
418
393
375
432
429
409
388
441
435
415
404
450
448




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=234449&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=234449&T=0

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







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.339010543469226
betaFALSE
gammaFALSE

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234449&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.339010543469226
betaFALSE
gammaFALSE







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2354364-10
3410360.60989456530849.3901054346923
4407377.35366105072529.6463389492749
5378387.404082529792-9.40408252979165
6364384.215999400538-20.2159994005376
7420377.36256245698842.6374375430122
8418391.8171033305826.1828966694205
9393400.693381360078-7.69338136007832
10375398.085243964082-23.0852439640822
11432390.25910286169941.740897138301
12429404.40970708544824.5902929145525
13409412.746075650477-3.74607565047739
14388411.476116508332-23.4761165083322
15441403.51746549229637.4825345077044
16435416.22443988635618.7755601136435
17415422.589552724422-7.58955272442188
18404420.016614330627-16.0166143306272
19450414.58681320186435.4131867981357
20448426.59225690427821.4077430957225

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
2 & 354 & 364 & -10 \tabularnewline
3 & 410 & 360.609894565308 & 49.3901054346923 \tabularnewline
4 & 407 & 377.353661050725 & 29.6463389492749 \tabularnewline
5 & 378 & 387.404082529792 & -9.40408252979165 \tabularnewline
6 & 364 & 384.215999400538 & -20.2159994005376 \tabularnewline
7 & 420 & 377.362562456988 & 42.6374375430122 \tabularnewline
8 & 418 & 391.81710333058 & 26.1828966694205 \tabularnewline
9 & 393 & 400.693381360078 & -7.69338136007832 \tabularnewline
10 & 375 & 398.085243964082 & -23.0852439640822 \tabularnewline
11 & 432 & 390.259102861699 & 41.740897138301 \tabularnewline
12 & 429 & 404.409707085448 & 24.5902929145525 \tabularnewline
13 & 409 & 412.746075650477 & -3.74607565047739 \tabularnewline
14 & 388 & 411.476116508332 & -23.4761165083322 \tabularnewline
15 & 441 & 403.517465492296 & 37.4825345077044 \tabularnewline
16 & 435 & 416.224439886356 & 18.7755601136435 \tabularnewline
17 & 415 & 422.589552724422 & -7.58955272442188 \tabularnewline
18 & 404 & 420.016614330627 & -16.0166143306272 \tabularnewline
19 & 450 & 414.586813201864 & 35.4131867981357 \tabularnewline
20 & 448 & 426.592256904278 & 21.4077430957225 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=234449&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]2[/C][C]354[/C][C]364[/C][C]-10[/C][/ROW]
[ROW][C]3[/C][C]410[/C][C]360.609894565308[/C][C]49.3901054346923[/C][/ROW]
[ROW][C]4[/C][C]407[/C][C]377.353661050725[/C][C]29.6463389492749[/C][/ROW]
[ROW][C]5[/C][C]378[/C][C]387.404082529792[/C][C]-9.40408252979165[/C][/ROW]
[ROW][C]6[/C][C]364[/C][C]384.215999400538[/C][C]-20.2159994005376[/C][/ROW]
[ROW][C]7[/C][C]420[/C][C]377.362562456988[/C][C]42.6374375430122[/C][/ROW]
[ROW][C]8[/C][C]418[/C][C]391.81710333058[/C][C]26.1828966694205[/C][/ROW]
[ROW][C]9[/C][C]393[/C][C]400.693381360078[/C][C]-7.69338136007832[/C][/ROW]
[ROW][C]10[/C][C]375[/C][C]398.085243964082[/C][C]-23.0852439640822[/C][/ROW]
[ROW][C]11[/C][C]432[/C][C]390.259102861699[/C][C]41.740897138301[/C][/ROW]
[ROW][C]12[/C][C]429[/C][C]404.409707085448[/C][C]24.5902929145525[/C][/ROW]
[ROW][C]13[/C][C]409[/C][C]412.746075650477[/C][C]-3.74607565047739[/C][/ROW]
[ROW][C]14[/C][C]388[/C][C]411.476116508332[/C][C]-23.4761165083322[/C][/ROW]
[ROW][C]15[/C][C]441[/C][C]403.517465492296[/C][C]37.4825345077044[/C][/ROW]
[ROW][C]16[/C][C]435[/C][C]416.224439886356[/C][C]18.7755601136435[/C][/ROW]
[ROW][C]17[/C][C]415[/C][C]422.589552724422[/C][C]-7.58955272442188[/C][/ROW]
[ROW][C]18[/C][C]404[/C][C]420.016614330627[/C][C]-16.0166143306272[/C][/ROW]
[ROW][C]19[/C][C]450[/C][C]414.586813201864[/C][C]35.4131867981357[/C][/ROW]
[ROW][C]20[/C][C]448[/C][C]426.592256904278[/C][C]21.4077430957225[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=234449&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234449&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
2354364-10
3410360.60989456530849.3901054346923
4407377.35366105072529.6463389492749
5378387.404082529792-9.40408252979165
6364384.215999400538-20.2159994005376
7420377.36256245698842.6374375430122
8418391.8171033305826.1828966694205
9393400.693381360078-7.69338136007832
10375398.085243964082-23.0852439640822
11432390.25910286169941.740897138301
12429404.40970708544824.5902929145525
13409412.746075650477-3.74607565047739
14388411.476116508332-23.4761165083322
15441403.51746549229637.4825345077044
16435416.22443988635618.7755601136435
17415422.589552724422-7.58955272442188
18404420.016614330627-16.0166143306272
19450414.58681320186435.4131867981357
20448426.59225690427821.4077430957225







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
21433.849707525608384.367764653288483.331650397928
22433.849707525608381.601645819874486.097769231342
23433.849707525608378.974783984952488.724631066264
24433.849707525608376.468050916727491.231364134489
25433.849707525608374.066333609726493.63308144149
26433.849707525608371.757444896897495.941970154319
27433.849707525608369.531386963427498.168028087789
28433.849707525608367.379837347262500.319577703953
29433.849707525608365.295780408974502.403634642242
30433.849707525608363.273236908983504.426178142233
31433.849707525608361.307061542117506.392353509099
32433.849707525608359.392788653869508.306626397347

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
21 & 433.849707525608 & 384.367764653288 & 483.331650397928 \tabularnewline
22 & 433.849707525608 & 381.601645819874 & 486.097769231342 \tabularnewline
23 & 433.849707525608 & 378.974783984952 & 488.724631066264 \tabularnewline
24 & 433.849707525608 & 376.468050916727 & 491.231364134489 \tabularnewline
25 & 433.849707525608 & 374.066333609726 & 493.63308144149 \tabularnewline
26 & 433.849707525608 & 371.757444896897 & 495.941970154319 \tabularnewline
27 & 433.849707525608 & 369.531386963427 & 498.168028087789 \tabularnewline
28 & 433.849707525608 & 367.379837347262 & 500.319577703953 \tabularnewline
29 & 433.849707525608 & 365.295780408974 & 502.403634642242 \tabularnewline
30 & 433.849707525608 & 363.273236908983 & 504.426178142233 \tabularnewline
31 & 433.849707525608 & 361.307061542117 & 506.392353509099 \tabularnewline
32 & 433.849707525608 & 359.392788653869 & 508.306626397347 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=234449&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]433.849707525608[/C][C]384.367764653288[/C][C]483.331650397928[/C][/ROW]
[ROW][C]22[/C][C]433.849707525608[/C][C]381.601645819874[/C][C]486.097769231342[/C][/ROW]
[ROW][C]23[/C][C]433.849707525608[/C][C]378.974783984952[/C][C]488.724631066264[/C][/ROW]
[ROW][C]24[/C][C]433.849707525608[/C][C]376.468050916727[/C][C]491.231364134489[/C][/ROW]
[ROW][C]25[/C][C]433.849707525608[/C][C]374.066333609726[/C][C]493.63308144149[/C][/ROW]
[ROW][C]26[/C][C]433.849707525608[/C][C]371.757444896897[/C][C]495.941970154319[/C][/ROW]
[ROW][C]27[/C][C]433.849707525608[/C][C]369.531386963427[/C][C]498.168028087789[/C][/ROW]
[ROW][C]28[/C][C]433.849707525608[/C][C]367.379837347262[/C][C]500.319577703953[/C][/ROW]
[ROW][C]29[/C][C]433.849707525608[/C][C]365.295780408974[/C][C]502.403634642242[/C][/ROW]
[ROW][C]30[/C][C]433.849707525608[/C][C]363.273236908983[/C][C]504.426178142233[/C][/ROW]
[ROW][C]31[/C][C]433.849707525608[/C][C]361.307061542117[/C][C]506.392353509099[/C][/ROW]
[ROW][C]32[/C][C]433.849707525608[/C][C]359.392788653869[/C][C]508.306626397347[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=234449&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234449&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
21433.849707525608384.367764653288483.331650397928
22433.849707525608381.601645819874486.097769231342
23433.849707525608378.974783984952488.724631066264
24433.849707525608376.468050916727491.231364134489
25433.849707525608374.066333609726493.63308144149
26433.849707525608371.757444896897495.941970154319
27433.849707525608369.531386963427498.168028087789
28433.849707525608367.379837347262500.319577703953
29433.849707525608365.295780408974502.403634642242
30433.849707525608363.273236908983504.426178142233
31433.849707525608361.307061542117506.392353509099
32433.849707525608359.392788653869508.306626397347



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