Home » date » 2008 » Jun » 01 »

Correctie exponential smoothing Nathalie Wouters

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 11:02:29 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f.htm/, Retrieved Sun, 01 Jun 2008 17:04:01 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7840 8292 8534 8441 8602 8468 8832 9006 8749 8714 8193 8251 8192 9056 9407 9068 9431 9907 10044 10838 10871 11127 11303 11349 11493 12694 13227 12253 12234 12491 13248 14042 14392 14834 15542 15518 16197 17325 24016 23671 24998 25329 25904 26548 26752 26967 27034 27056 27476 28497 29085 28720 29067 29249 29672 29761 30066 30315 30571 30757 30742 31310 31381 31470 31226 31081 31061 31114 30828 30418 30195 29877 29192 29876 29409 28458 28340 28164 28438 28053
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.959966669295933
beta0.130110948060397
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
385348744-210
484418968.17754302367-527.177543023674
586028822.02959557856-220.029595578560
684688943.25126551266-475.251265512663
788328760.1087230313171.8912769686904
890069111.18416143127-105.184161431267
987499279.13535064118-530.135350641178
1087148972.93250461495-258.932504614952
1181938894.73411878923-701.734118789234
1282518303.81282562604-52.8128256260425
1381928329.23790818928-137.237908189281
1490568256.47641242689799.52358757311
1594079182.8369634874224.163036512600
1690689584.86901316931-516.869013169315
1794319210.97693114353220.023068856473
1899079571.95804623956335.041953760441
191004410085.2009254041-41.2009254040859
201083810232.1170958797605.882904120328
211087111075.8882665190-204.888266518972
221112711115.755147116211.2448528838122
231130311364.5071250363-61.5071250363308
241134911535.7372554282-186.737255428176
251149311563.4267455855-70.426745585486
261269411693.97399488811000.02600511193
271322712977.0256274598249.974372540206
281225313571.2750349484-1318.27503494835
291223412495.4018650369-261.401865036885
301249112401.442050827089.5579491730277
311324812655.5779430222592.422056977832
321404213466.4414204106575.558579589439
331439214333.005039115358.9949608846910
341483414711.0534001296122.946599870389
351554215165.8495005589376.150499441057
361551815910.6949200358-392.694920035789
371619715868.4259139594328.574086040635
381732516559.5907307978765.409269202162
392401617765.70404474816250.29595525188
402367125017.8013116783-1346.80131167833
412499824808.7200079244189.279992075568
422532926097.8670395035-768.867039503471
432590426371.1916921549-467.191692154913
442654826875.7613654420-327.761365442024
452675227473.2413981464-721.241398146401
462696727602.9090962116-635.909096211599
472703427735.066531716-701.066531716024
482705627717.1102673361-661.11026733608
492747627654.9365757111-178.936575711083
502849728033.2839896417463.716010358283
512908529086.4756036924-1.47560369238272
522872029692.9144673101-972.914467310104
532906729245.2852690496-178.285269049597
542924929538.2053979704-289.205397970389
552967229688.5235173937-16.5235173936780
562976130098.5433302561-337.543330256056
573006630158.2349270049-92.2349270049199
583031530441.8940717223-126.894071722301
593057130676.4322473689-105.432247368852
603075730918.4043422091-161.404342209069
613074231086.4853384461-344.485338446073
623131031035.787713021274.212286978986
633138131613.2688970065-232.268897006503
643147031675.5341356798-205.534135679791
653122631737.7921938740-511.79219387404
663108131442.1287666297-361.128766629681
673106131245.991439975-184.991439974987
683111431195.8342432055-81.8342432054524
693082831234.4832421938-406.483242193804
703041830910.7093825127-492.709382512658
713019530442.6208293491-247.620829349089
722987730178.8807384717-301.880738471697
732919229825.3473830002-633.34738300023
742987629074.5106321134801.489367886625
752940929801.1771020037-392.177102003654
762845829332.9797741262-874.97977412615
772834028292.021097652247.9789023477751
782816428143.064656913720.9353430863339
792843827970.7621705184467.237829481634
802805328285.2542159061-232.254215906061


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8127899.248155924726227.856067021729570.6402448277
8227736.198402016625270.149909225830202.2468948074
8327573.148648108524384.122767490430762.1745287266
8427410.098894200423518.288761785431301.9090266155
8527247.049140292322653.852303241231840.2459773435
8627083.999386384221782.031714360132385.9670584084
8726920.949632476120898.196106289132943.7031586632
8826757.899878568119999.740690854533516.0590662816
8926594.850124660019085.157068377634104.5431809424
9026431.800370751918153.573234882334710.0275066215
9126268.750616843817204.505383872435332.9958498152
9226105.700862935716237.715096462435973.686629409
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/1cl521212339743.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/1cl521212339743.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/2auop1212339743.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/2auop1212339743.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/3um1t1212339743.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339837k9ebhm1snjaxw2f/3um1t1212339743.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = additive ;
 
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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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