Home » date » 2010 » Dec » 29 »

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 29 Dec 2010 14:11:07 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6.htm/, Retrieved Wed, 29 Dec 2010 15:54:14 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1203.6 1180.59 1156.85 1191.5 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1294.87 1310.61 1270.09 1270.2 1276.66 1303.82 1335.85 1377.94 1400.63 1418.3 1438.24 1406.82 1420.86 1482.37 1530.62 1503.35 1455.27 1473.99 1526.75 1549.38 1481.14 1468.36 1378.55 1330.63 1322.7 1385.59 1400.38 1280 1267.38 1282.83 1166.36 968.75 896.24 903.25 825.88 735.09 797.87 872.81 919.14 919.32 987.48 1020.62 1057.08 1036.19 1095.63 1115.1 1073.87 1104.49 1169.43 1186.69 1089.41 1030.71 1101.6 1049.33 1141.2 1183.26 1180.55 1258.51
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.880784068307055
beta0.325933142551067
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131280.661238.6354861111142.0245138888886
141294.871302.99669224229-8.12669224229035
151310.611318.73919752580-8.12919752579592
161270.091274.04787617265-3.95787617265250
171270.21272.56270743747-2.36270743747036
181276.661277.86217627737-1.20217627736838
191303.821340.40662231881-36.5866223188066
201335.851312.4351778491423.4148221508581
211377.941310.5580667363167.3819332636856
221400.631432.50735429539-31.8773542953923
231418.31417.339813116750.960186883245115
241438.241465.85528568432-27.6152856843210
251406.821454.88172323066-48.0617232306638
261420.861412.053048162308.80695183769808
271482.371425.7068576818356.6631423181725
281530.621440.1779763124690.4420236875412
291503.351550.72600984363-47.3760098436339
301455.271532.29166657928-77.0216665792802
311473.991517.84594697256-43.8559469725567
321526.751482.5468945720144.2031054279855
331549.381502.1111537613447.2688462386632
341481.141586.62766868982-105.487668689824
351468.361481.52408826425-13.1640882642473
361378.551481.12171701672-102.571717016718
371330.631347.10118082660-16.4711808265965
381322.71293.3565114735129.3434885264926
391385.591291.1792644145594.410735585451
401400.381314.1367666146986.2432333853064
4112801374.56301631379-94.5630163137935
421267.381267.49313296416-0.113132964160968
431282.831303.28001419461-20.4500141946085
441166.361284.35278240748-117.992782407479
45968.751100.11851537379-131.368515373786
46896.24896.495992805839-0.255992805838673
47903.25812.70771678177390.5422832182269
48825.88840.38361559463-14.5036155946297
49735.09766.873081373722-31.7830813737218
50797.87673.384547949578124.485452050422
51872.81758.35769732047114.452302679530
52919.14799.341081717129119.798918282871
53919.32878.74800007588440.5719999241163
54987.48951.7372755784535.7427244215505
551020.621076.74878504942-56.1287850494206
561057.081064.59290438213-7.5129043821255
571036.191057.61445030328-21.4244503032776
581095.631079.5634886842516.0665113157465
591115.11138.76610474689-23.6661047468924
601073.871138.32905037208-64.4590503720758
611104.491089.4206552316415.0693447683632
621169.431139.9410096789829.4889903210180
631186.691196.88772374292-10.1977237429192
641089.411149.77567784805-60.3656778480515
651030.711030.387243519400.322756480596581
661101.61025.1311434402976.4688565597071
671049.331144.53380145161-95.2038014516133
681141.21062.0122966491379.1877033508651
691183.261112.8848449662870.3751550337245
701180.551229.65752895741-49.1075289574128
711258.511217.5076740060841.0023259939153


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
721278.519721238171158.647737326801398.39170514955
731323.724922263071139.422036672171508.02780785396
741386.223471156561132.481294768821639.96564754430
751427.531842924441098.913002794571756.15068305431
761401.41487848404992.5729311413581810.25682582671
771377.75408871093883.5499671449321871.95821027693
781416.52237125285832.0425136659652001.00222883974
791461.38476746588781.9312056960322140.83832923573
801524.11669958567745.1895758811882303.04382329016
811522.06763777814639.3467858175122404.78848973876
821560.28395184179569.6117092856322550.95619439795
831613.90056957250511.2664202115662716.53471893344
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/19njy1293631863.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/19njy1293631863.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/29njy1293631863.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/29njy1293631863.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/39njy1293631863.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293634454140pcdauav1h8p6/39njy1293631863.ps (open in new window)


 
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')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by