Home » date » 2010 » Aug » 06 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 06 Aug 2010 12:28:25 +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/Aug/06/t1281097662vq6ufq92kkz09od.htm/, Retrieved Fri, 06 Aug 2010 14:27:47 +0200
 
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/Aug/06/t1281097662vq6ufq92kkz09od.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 «
94 93 92 90 88 87 88 90 91 91 92 94 88 90 82 83 88 83 85 81 79 71 70 85 88 84 81 93 99 96 90 95 93 86 77 89 90 84 76 96 104 101 95 101 95 90 88 99 81 79 70 95 100 105 107 106 99 86 81 95 82 78 68 96 98 107 102 98 93 69 65 90 87 80 67 85 85 92 87 85 79 58 47 67
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.889089461093732
beta0
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
392920
49091-1
58889.1109105389063-1.11091053890627
68787.1232116865467-0.123211686546739
78886.01366547455441.98633452544556
89086.77969456733473.2203054326653
99188.64283418902032.35716581097969
109189.73856546961281.26143453038719
119289.86009361643982.13990638356022
129490.76266182979043.23733817020963
138892.6409450789202-4.64094507892023
149087.51472971973742.48527028026257
158288.7243573338883-6.72435733388835
168381.74580209569991.25419790430013
178881.8608962345396.13910376546104
188386.3191086929712-3.31910869297121
198582.3681241338262.63187586617408
208183.7080972293482-2.70809722934823
217980.3003565231176-1.30035652311759
227178.1442232427492-7.14422324274925
237070.79236964992-0.792369649920005
248569.087882144885615.9121178551144
258882.23517843354925.76482156645078
268486.3606205333665-2.36062053336647
278183.2618176955089-2.26181769550888
289380.250859419516612.7491405804834
299990.58598594762688.41401405237318
309697.0667971670864-1.06679716708638
319095.1183190487052-5.11831904870523
329589.56767552398615.43232447601389
339393.3974979648516-0.397497964851595
348692.0440867134958-6.04408671349583
357785.67035291459-8.67035291459004
368976.961633514264712.0383664857353
379086.6648182855163.33518171448405
388488.6300931986962-4.63009319869624
397683.5135261318536-7.51352613185364
409675.833329232370220.1666707676298
4110492.763303677216911.2366963227831
42101101.753731955314-0.753731955314052
4395100.083596817355-5.08359681735476
4410194.5638244625956.43617553740499
459599.286160302651-4.28616030265107
469094.4753803490057-4.47538034900568
478889.4963668463187-1.49636684631874
489987.165962853326711.8340371466733
498196.6874805626257-15.6874805626257
507981.7399069232824-2.73990692328240
517078.3038845534143-8.30388455341426
529569.920988310834625.0790116891654
5310091.21847329831818.78152670168193
5410598.02603614109676.97396385890332
55107103.2265139100963.7734860899038
56106105.5814806242130.418519375786531
5799104.953581790489-5.9535817904888
588698.6603149648057-12.6603149648057
598186.4041623554697-5.40416235546968
609580.599378559182114.4006214408179
618292.4028193154137-10.4028193154137
627882.153782296417-4.15378229641706
636877.460698232995-9.46069823299493
649668.04929113945127.9507088605490
659891.89997181746436.10002818253568
6610796.323442586931510.6765574130685
67102104.815857263653-2.81585726365287
6898101.312308246595-3.31230824659487
699397.3673698926535-4.36736989265351
706992.4843873483972-23.4843873483972
716570.6046660566943-5.60466605669427
729064.621616532737625.3783834672624
738786.1852698130760.814730186923981
748085.909637835905-5.90963783590506
756779.6554411171211-12.6554411171211
768567.403621794396417.5963782056036
778582.0483762104182.95162378958199
789283.67263381484898.3273661851511
798790.076407328735-3.07640732873506
808586.3412059947252-1.3412059947252
817984.1487538796593-5.1487538796593
825878.5710510674888-20.5710510674888
834759.2815463597635-12.2815463597635
846747.362152925363719.6378470746363


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8563.821955797993245.067190089018482.576721506968
8662.821955797993237.726424836795987.9174867591906
8761.821955797993231.691736554677291.9521750413092
8860.821955797993226.385426514742795.2584850812437
8959.821955797993221.560761534065198.0831500619213
9058.821955797993217.085120461232100.558791134754
9157.821955797993212.8774582331767102.766453362810
9256.82195579799328.88395105457829104.759960541408
9355.82195579799325.06669266001364106.577218935973
9454.82195579799321.39779297225093108.246118623735
9553.8219557979932-2.14397679548101109.787888391467
9652.8219557979932-5.57521920630965111.219130802296
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/184zo1281097703.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/184zo1281097703.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/21vgr1281097703.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/21vgr1281097703.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/31vgr1281097703.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097662vq6ufq92kkz09od/31vgr1281097703.ps (open in new window)


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





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