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 computationThu, 17 Apr 2014 13:07:42 -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/17/t13977544855zepdaypnchzbta.htm/, Retrieved Fri, 17 May 2024 02:01:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=234468, Retrieved Fri, 17 May 2024 02:01:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact150
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Exponential Smoothing] [Double exponentia...] [2014-04-17 17:07:42] [0886edc6b443bd4bec60935c27dcdd54] [Current]
Feedback Forum

Post a new message
Dataseries X:
41580
148715
801892
2076075
1835234
1120698
288586




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234468&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'Gwilym Jenkins' @ jenkins.wessa.net







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta-1.20617491689012e-18
gammaFALSE

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

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







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3801892255850546042
420760759090271167048
518352342183210-347976
611206981942369-821671
72885861227833-939247

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
3 & 801892 & 255850 & 546042 \tabularnewline
4 & 2076075 & 909027 & 1167048 \tabularnewline
5 & 1835234 & 2183210 & -347976 \tabularnewline
6 & 1120698 & 1942369 & -821671 \tabularnewline
7 & 288586 & 1227833 & -939247 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=234468&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]3[/C][C]801892[/C][C]255850[/C][C]546042[/C][/ROW]
[ROW][C]4[/C][C]2076075[/C][C]909027[/C][C]1167048[/C][/ROW]
[ROW][C]5[/C][C]1835234[/C][C]2183210[/C][C]-347976[/C][/ROW]
[ROW][C]6[/C][C]1120698[/C][C]1942369[/C][C]-821671[/C][/ROW]
[ROW][C]7[/C][C]288586[/C][C]1227833[/C][C]-939247[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=234468&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234468&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
3801892255850546042
420760759090271167048
518352342183210-347976
611206981942369-821671
72885861227833-939247







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8395721-1386458.148296742177900.14829674
9502856-2017525.922099783023237.92209978
10609991-2476833.833039783696815.83303978
11717126-2847232.296593474281484.29659347
12824261-3160812.723674184809334.72367418

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
8 & 395721 & -1386458.14829674 & 2177900.14829674 \tabularnewline
9 & 502856 & -2017525.92209978 & 3023237.92209978 \tabularnewline
10 & 609991 & -2476833.83303978 & 3696815.83303978 \tabularnewline
11 & 717126 & -2847232.29659347 & 4281484.29659347 \tabularnewline
12 & 824261 & -3160812.72367418 & 4809334.72367418 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=234468&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]8[/C][C]395721[/C][C]-1386458.14829674[/C][C]2177900.14829674[/C][/ROW]
[ROW][C]9[/C][C]502856[/C][C]-2017525.92209978[/C][C]3023237.92209978[/C][/ROW]
[ROW][C]10[/C][C]609991[/C][C]-2476833.83303978[/C][C]3696815.83303978[/C][/ROW]
[ROW][C]11[/C][C]717126[/C][C]-2847232.29659347[/C][C]4281484.29659347[/C][/ROW]
[ROW][C]12[/C][C]824261[/C][C]-3160812.72367418[/C][C]4809334.72367418[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=234468&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=234468&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
8395721-1386458.148296742177900.14829674
9502856-2017525.922099783023237.92209978
10609991-2476833.833039783696815.83303978
11717126-2847232.296593474281484.29659347
12824261-3160812.723674184809334.72367418



Parameters (Session):
par1 = 5 ; par2 = Double ; par3 = additive ;
Parameters (R input):
par1 = 5 ; par2 = Double ; 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')