Home » date » 2010 » May » 26 »

Exponential smooting wisselkoersen

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 26 May 2010 16:43:38 +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/May/26/t12748923288ikkzvfiau5wq66.htm/, Retrieved Wed, 26 May 2010 18:45:32 +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/May/26/t12748923288ikkzvfiau5wq66.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.1591 1.1203 1.0886 1.0701 1.0630 1.0377 1.0370 1.0605 1.0497 1.0706 1.0328 1.0110 1.0131 0.9834 0.9643 0.9449 0.9059 0.9505 0.9386 0.9045 0.8695 0.8525 0.8552 0.8983 0.9376 0.9205 0.9083 0.8925 0.8753 0.8530 0.8615 0.9014 0.9114 0.9050 0.8883 0.8912 0.8832 0.8707 0.8766 0.8860 0.9170 0.9561 0.9935 0.9781 0.9806 0.9812 1.0013 1.0194 1.0622 1.0785 1.0797 1.0862 1.1556 1.1674 1.1365 1.1155 1.1267 1.1714 1.1710 1.2298 1.2638 1.2640 1.2261 1.1989 1.2000 1.2146 1.2266 1.2191 1.2224 1.2507 1.2997 1.3406 1.3123 1.3013 1.3185 1.2943 1.2697 1.2155 1.2041 1.2295 1.2234 1.2022 1.1789 1.1861 1.2126 1.1940 1.2028 1.2273 1.2767 1.2661 1.2681 1.2810 1.2722 1.2617 1.2888 1.3205 1.2993 1.3080 1.3246 1.3513 1.3518 1.3421 1.3726 1.3626 1.3910 1.4233 1.4683 1.4559 1.4728 1.4759 1.5520 1.5754 1.5554 1.5562 1.5759 1.4955 1.4342 1.3266 1.2744 1.3511 1.3244 1.2797 1.3050 1.3199 1.3646 1.4014 1.4092 1.4266 etc...
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.140884622689867
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.08861.08150.00709999999999988
41.07011.050800280821100.0192997191789019
51.0631.035019314475640.0279806855243618
61.03771.031861362798340.00583863720165856
71.0371.007383936997520.0296160630024795
81.06051.010856384859180.0496436151408162
91.04971.041350406847260.0083495931527413
101.07061.031726736128200.0388732638718032
111.03281.0581033812415-0.0253033812414993
121.0111.01673852392251-0.00573852392251273
131.01310.9941300541448930.0189699458551071
140.98340.998902627809137-0.0155026278091366
150.96430.967018545939545-0.00271854593954513
160.94490.947535544620587-0.00263554462058735
170.90590.927764236911133-0.0218642369111334
180.95050.8856839021435070.0648160978564933
190.93860.939415493634248-0.000815493634248154
200.90450.927400603121281-0.0229006031212812
210.86950.890074260291169-0.0205742602911689
220.85250.8521756633929250.000324336607075426
230.85520.8352213574334370.019978642566563
240.89830.8407360409532830.0575639590467172
250.93760.8919459176041150.0456540823958854
260.92050.937677875776711-0.0171778757767109
270.90830.918157777229296-0.0098577772292956
280.89250.904568968003786-0.0120689680037857
290.87530.887068636000316-0.0117686360003162
300.8530.868210616157837-0.0152106161578373
310.86150.843767674239560.0177323257604401
320.90140.8547658862637330.0466341137362666
330.91140.9012359157819440.0101640842180564
340.9050.912667878951993-0.0076678789519925
350.88830.90518759271901-0.0168875927190095
360.89120.8861083905906520.00509160940934827
370.88320.889725720061172-0.00652572006117191
380.87070.880806346452574-0.0101063464525739
390.87660.866882517645830.00971748235417003
400.8860.8741515614807930.0118484385192072
410.9170.8852208242710350.0317791757289647
420.95610.9206980214530050.0354019785469945
430.99350.9647856158430740.0287143841569265
440.97811.00623103102079-0.0281310310207941
450.98060.986867801329553-0.00626780132955251
460.98120.988484764504143-0.0072847645041435
471.00130.9880584532055930.0132415467944075
481.01941.010023983529550.00937601647044706
491.06221.029444920072330.0327550799276741
501.07851.076859607149110.00164039285088724
511.07971.09339071327697-0.0136907132769730
521.08621.09266190230259-0.00646190230259158
531.15561.098251519634830.0573484803651678
541.16741.17573103865292-0.00833103865291607
551.13651.18635732341569-0.0498573234156852
561.11551.14843319321794-0.03293319321794
571.12671.122793412717460.00390658728254212
581.17141.134543790792760.0368562092072362
591.1711.18443626392070-0.0134362639207042
601.22981.182143300947870.0476566990521257
611.26381.247657397012480.0161426029875225
621.2641.28393164154361-0.0199316415436070
631.22611.28132357974515-0.0552235797451464
641.19891.23564342654917-0.0367434265491673
651.21.20326684276346-0.00326684276345524
661.21461.203906594853340.0106934051466612
671.22661.220013131202700.00658686879730408
681.21911.23294111972791-0.0138411197279116
691.22241.22349111879744-0.00109111879743984
701.25071.226637396937350.0240626030626474
711.29971.258327447690770.0413725523092305
721.34061.313156204112570.0274437958874276
731.31231.35792261294135-0.0456226129413504
741.30131.32319508833098-0.0218950883309825
751.31851.309110407072710.00938959292728958
761.29431.32763325632948-0.0333332563294833
771.26971.29873711308848-0.0290371130884792
781.21551.27004623036701-0.0545462303670059
791.20411.20816150528260-0.00406150528259586
801.22951.196189301643300.0333106983566958
811.22341.22628226681282-0.00288226681282344
821.20221.21977619974041-0.0175761997404074
831.17891.19609998347166-0.0171999834716581
841.18611.170376770289980.0157232297100180
851.21261.179791931575140.0328080684248562
861.1941.21091408391636-0.0169140839163628
871.20281.189931149585660.0128688504143388
881.22731.200544172720740.0267558272792621
891.27671.228813657351730.0478863426482679
901.26611.28496010666773-0.0188601066677307
911.26811.27170300765596-0.003603007655957
921.2811.27319539928180.0078046007182011
931.27221.28719494750923-0.0149949475092275
941.26171.27628238998714-0.0145823899871356
951.28881.263727955475880.0250720445241184
961.32051.294360221008730.0261397789912745
971.29931.32974291390911-0.0304429139091078
981.3081.304253975469440.00374602453055717
991.32461.313481732722020.0111182672779824
1001.35131.331648125612440.0196518743875587
1011.35181.36111677252068-0.00931677252068108
1021.34211.36030418253942-0.0182041825394175
1031.37261.348039493150970.0245605068490258
1041.36261.38199969089147-0.0193996908914711
1051.3911.369266572759930.0217334272400738
1061.42331.400728478456400.0225715215435984
1071.46831.436208458752610.0320915412473921
1081.45591.48572966343278-0.0298296634327828
1091.47281.469127122555090.00367287744491063
1101.47591.48654457450810-0.0106445745081021
1111.5521.488144917644830.0638550823551662
1121.57541.573241116829270.00215888317072821
1131.55541.59694527027021-0.0415452702702113
1141.55621.57109218054364-0.0148921805436439
1151.57591.569794101306720.00610589869327671
1161.49551.59035432854031-0.0948543285403083
1171.43421.49659081225341-0.0623908122534063
1181.32661.42650090620977-0.0999009062097707
1191.27441.30482640473203-0.0304264047320315
1201.35111.248339792181550.10276020781845
1211.32441.33951712528758-0.0151171252875846
1221.27971.31068735479529-0.0309873547952877
1231.3051.261621713006800.0433782869932031
1241.31991.293033046602770.0268669533972332
1251.36461.311718187194960.0528818128050377
1261.40141.363868421439160.0375315785608437
1271.40921.405956043723660.00324395627634422
1281.42661.414213067279670.0123869327203292
1291.45751.433358195622260.0241418043777406
1301.48211.467659404623070.01444059537693
1311.49081.49429386245417-0.00349386245416583
1321.45791.50250163096058-0.0446016309605801


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1331.463317947011351.403376100245201.52325979377749
1341.468735894022691.377797618240641.55967416980475
1351.474153841034041.355103989405881.5932036926622
1361.479571788045381.333130848918341.62601272717243
1371.484989735056731.311125861326051.65885360878741
1381.490407682068081.288748084903391.69206727923276
1391.495825629079421.265822541231411.72582871692743
1401.501243576090771.242253690942951.76023346123859
1411.506661523102121.217988272100821.79533477410342
1421.512079470113461.192997179361981.83116176086494
1431.517497417124811.167265807987671.86772902626195
1441.522915364136151.140788561499061.90504216677325
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/1pxh71274892216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/1pxh71274892216.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/2pxh71274892216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/2pxh71274892216.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/3pxh71274892216.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t12748923288ikkzvfiau5wq66/3pxh71274892216.ps (open in new window)


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