Home » date » 2010 » Jun » 05 »

Wisselkoersen

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 05 Jun 2010 15:12:22 +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/Jun/05/t1275750768jqlj3hiqgd3j75s.htm/, Retrieved Sat, 05 Jun 2010 17:12:48 +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/Jun/05/t1275750768jqlj3hiqgd3j75s.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,4272 1,4614 1,4914 1,4816 1,4562 1,4268 1,4088 1,4016 1,365 1,319 1,305 1,2785 1,3239 1,3449 1,2732 1,3322 1,4369 1,4975 1,577 1,5553 1,5557 1,575 1,5527 1,4748 1,4718 1,457 1,4684 1,4227 1,3896 1,3622 1,3716 1,3419 1,3511 1,3516 1,3242 1,3074 1,2999 1,3213 1,2881 1,2611 1,2727 1,2811 1,2684 1,265 1,277 1,2271 1,202 1,1938 1,2103 1,1856 1,1786 1,2015 1,2256 1,2292 1,2037 1,2165 1,2694 1,2938 1,3201 1,3014 1,3119 1,3408 1,2991 1,249 1,2218 1,2176 1,2266 1,2138 1,2007 1,1985 1,2262 1,2646
 
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
alpha1
beta0.356147313163450
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.49141.4956-0.00419999999999998
41.48161.52410418128471-0.0425041812847136
51.45621.49916643132195-0.0429664313219507
61.42681.45846405225042-0.0316640522504159
71.40881.41778698511756-0.00898698511756324
81.40161.396586294514500.00501370548549662
91.3651.39117191225216-0.0261719122521558
101.3191.3452508560232-0.0262508560232009
111.3051.289901684182300.0150983158177027
121.27851.28127890879407-0.00277890879406528
131.32391.253789207893530.0701107921064674
141.34491.324158978126010.0207410218739876
151.27321.35254583733870-0.0793458373386973
161.33221.252587030559820.0796129694401837
171.43691.339940975718900.0969590242810985
181.49751.479172671703560.0183273282964356
191.5771.546299900433800.0307000995661955
201.55531.63673365840816-0.0814336584081554
211.55571.58603127976502-0.0303312797650204
221.5751.5756288759719-0.000628875971899756
231.55271.59470490348419-0.0420049034841945
241.47481.55744496996861-0.0826449699686085
251.47181.450111185967810.0216888140321851
261.4571.454835598811080.00216440118892081
271.46841.440806444479120.0275935555208786
281.42271.46203381513851-0.0393338151385083
291.38961.40232518256046-0.0127251825604611
301.36221.36469314298204-0.00249314298203829
311.37161.336405216807650.0351947831923467
321.34191.35833974427898-0.0164397442789774
331.35111.322784773524930.0283152264750743
341.35161.342069165355640.0095308346443621
351.32421.34596354650643-0.0217635465064323
361.30741.31081251789326-0.00341251789325892
371.29991.292797158814450.0071028411855476
381.32131.287826816618510.0334731833814879
391.28811.32114820094286-0.0330482009428561
401.26111.27617817297217-0.0150781729721723
411.27271.243808122180720.0288918778192804
421.28111.265697886838300.0154021131616973
431.26841.27958330805788-0.0111833080578805
441.2651.262900402940790.00209959705921259
451.2771.260248168792150.0167518312078483
461.22711.27821428846739-0.0511142884673943
471.2021.21011007196547-0.00811007196547076
481.19381.182121691625410.0116783083745942
491.21031.178080889775310.0322191102246880
501.18561.20605563931435-0.0204556393143516
511.17861.174070418333500.00452958166649542
521.20151.168683616673780.0328163833262185
531.22561.203271083423160.0223289165768441
541.22921.23532346706785-0.00612346706784983
551.20371.23674261072439-0.0330426107243904
561.21651.199474573694990.0170254263050071
571.26941.218338133528980.0510618664710167
581.29381.289423680077750.00437631992225307
591.32011.31538229465960.00471770534039906
601.30141.34336249274088-0.041962492740881
611.31191.309717663697580.00218233630242470
621.34081.320994896908100.0198051030918969
631.29911.35694843116121-0.0578484311612073
641.2491.29464586783242-0.0456458678324223
651.22181.22828921464689-0.00648921464689156
661.21761.198778098285860.01882190171414
671.22661.201281468009980.0253185319900224
681.21381.21929859515147-0.00549859515146678
691.20071.20454028526210-0.00384028526209823
701.19851.190072577984220.00842742201577895
711.22621.190873981692030.0353260183079651
721.26461.231155248197180.0334447518028205


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
731.281466506691171.213894203833891.34903880954846
741.298333013382341.184475476956151.41219054980854
751.315199520073521.152869970303581.47752906984346
761.332066026764691.117855000527631.54627705300175
771.348932533455861.079250689488181.61861437742354
781.365799040147041.037112262793551.69448581750052
791.382665546838210.9915584247464921.77377266892992
801.399532053529380.9427214119468581.85634269511190
811.416398560220550.8907305501521961.94206657028891
821.433265066911730.8357068857652142.03082324805824
831.450131573602900.7777618489227682.12250129828303
841.466998080294070.7169974319551262.21699872863301
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/1u8291275750738.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/1u8291275750738.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/25hkc1275750738.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/25hkc1275750738.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/35hkc1275750738.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t1275750768jqlj3hiqgd3j75s/35hkc1275750738.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=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