Home » date » 2009 » Jun » 02 »

Opgave 10 Oefening 2 - Wisselkoers Euro in Dollar - Anthony Van Trier

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 12:55:35 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql.htm/, Retrieved Tue, 02 Jun 2009 20:56:16 +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/2009/Jun/02/t1243968976omuucx36j8ovaql.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1.1608 1.1208 1.0883 1.0704 1.0628 1.0378 1.0353 1.0604 1.0501 1.0706 1.0338 1.0110 1.0137 0.9834 0.9643 0.9470 0.9060 0.9492 0.9397 0.9041 0.8721 0.8552 0.8564 0.8973 0.9383 0.9217 0.9095 0.8920 0.8742 0.8532 0.8607 0.9005 0.9111 0.9059 0.8883 0.8924 0.8833 0.8700 0.8758 0.8858 0.9170 0.9554 0.9922 0.9778 0.9808 0.9811 1.0014 1.0183 1.0622 1.0773 1.0807 1.0848 1.1582 1.1663 1.1372 1.1139 1.1222 1.1692 1.1702 1.2286 1.2613 1.2646 1.2262 1.1985 1.2007 1.2138 1.2266 1.2176 1.2218 1.2490 1.2991 1.3408 1.3119 1.3014 1.3201 1.2938 1.2694 1.2165 1.2037 1.2292 1.2256 1.2015 1.1786 1.1856 1.2103 1.1938 1.2020 1.2271 1.2770 1.2650 1.2684 1.2811 1.2727 1.2611 1.2881 1.3213 1.2999 1.3074 1.3242 1.3516 1.3511 1.3419 1.3716 1.3622 1.3896 1.4227 1.4684 1.4570 1.4718 1.4748 1.5527 1.5750 1.5557 1.5553 1.5770 1.4975 1.4369 1.3322 1.2732 1.3449 1.3239
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.859998440553193
beta0.0713194296639774
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.01371.07518811431624-0.0614881143162398
140.98340.987017021911577-0.00361702191157653
150.96430.9630264634754070.0012735365245935
160.9470.947582389518923-0.00058238951892331
170.9060.90678150143204-0.000781501432040699
180.94920.9457239443339830.00347605566601727
190.93970.8873702488454040.0523297511545964
200.90410.957036112891393-0.0529361128913926
210.87210.896564182795004-0.0244641827950045
220.85520.889294234023439-0.0340942340234387
230.85640.8157179667317320.0406820332682678
240.89730.82149438886950.0758056111305005
250.93830.87646810801070.0618318919893
260.92170.9097481931471410.0119518068528588
270.90950.9080805180811880.00141948191881203
280.8920.900760105001888-0.0087601050018884
290.87420.8606549220859920.0135450779140076
300.85320.921149384218215-0.0679493842182153
310.86070.8124637834044260.0482362165955741
320.90050.8678750217304930.0326249782695065
330.91110.8942226591143980.0168773408856017
340.90590.932944847692385-0.0270448476923846
350.88830.8881189206051850.000181079394815264
360.89240.8737169164311450.0186830835688550
370.88330.883840396382622-0.000540396382622488
380.870.8589029297339690.0110970702660314
390.87580.8573790243486280.0184209756513719
400.88580.8666508748391710.0191491251608291
410.9170.8587783116690860.0582216883309142
420.95540.95413342419410.00126657580590062
430.99220.9333331263549610.058866873645039
440.97781.00844666252811-0.0306466625281139
450.98080.9870409001049-0.00624090010490086
460.98111.00717912096454-0.02607912096454
471.00140.9745014804448450.0268985195551548
481.01830.9948115368791220.0234884631208777
491.06221.015815848902460.0463841510975367
501.07731.045180311981030.0321196880189711
511.08071.076368225661470.00433177433852650
521.08481.08636821396511-0.00156821396510587
531.15821.077621188460670.0805788115393287
541.16631.19707304991013-0.0307730499101331
551.13721.16766118027058-0.0304611802705801
561.11391.15882011924888-0.0449201192488764
571.12221.1330800188951-0.0108800188951006
581.16921.150690652277060.0185093477229406
591.17021.17075022270366-0.000550222703664005
601.22861.172267677921380.0563323220786183
611.26131.232028241886780.0292717581132225
621.26461.250934597294830.0136654027051726
631.22621.26748518764415-0.041285187644154
641.19851.23975443868747-0.0412544386874714
651.20071.20826968130461-0.00756968130460822
661.21381.23080963754201-0.0170096375420106
671.22661.208607212101410.0179927878985868
681.21761.23771338760201-0.0201133876020145
691.22181.23789538929663-0.0160953892966329
701.2491.25463817115914-0.00563817115914067
711.29911.249284266786520.0498157332134752
721.34081.303190909563260.037609090436737
731.31191.34302351950686-0.0311235195068611
741.30141.30406331330588-0.00266331330588421
751.32011.294134746826300.0259652531736971
761.29381.32362503759217-0.0298250375921731
771.26941.30676794420661-0.0373679442066110
781.21651.30061464605355-0.0841146460535516
791.20371.21974136717618-0.0160413671761772
801.22921.206294782252930.0229052177470728
811.22561.23872525622995-0.0131252562299464
821.20151.25435855940209-0.0528585594020885
831.17861.20813476898104-0.0295347689810443
841.18561.179200164525890.00639983547410972
851.21031.167764994114580.0425350058854206
861.19381.185848097021190.00795190297881443
871.2021.179420342857510.022579657142487
881.22711.188344343347500.0387556566525016
891.2771.223772935448240.0532270645517645
901.2651.28890561493379-0.0239056149337915
911.26841.27295429340549-0.00455429340548652
921.28111.279155630970580.00194436902942252
931.27271.29154633429204-0.0188463342920409
941.26111.29937674392037-0.0382767439203742
951.28811.272532977974090.0155670220259145
961.32131.293757363215460.0275426367845437
971.29991.31320135349621-0.0133013534962094
981.30741.282636289725950.0247637102740519
991.32421.297958421115130.0262415788848662
1001.35161.317764785351010.0338352146489931
1011.35111.35615448294248-0.00505448294247746
1021.34191.36195841002156-0.0200584100215606
1031.37161.353852843641310.0177471563586877
1041.36221.38333901629522-0.0211390162952225
1051.38961.374747303376040.0148526966239597
1061.42271.412685445943940.0100145540560628
1071.46841.441719166063340.0266808339366584
1081.4571.48166851206183-0.0246685120618342
1091.47181.454780918684750.0170190813152504
1101.47481.461768386809600.0130316131904047
1111.55271.472636090402930.0800639095970745
1121.5751.548522120490790.0264778795092062
1131.55571.58341806835461-0.0277180683546092
1141.55531.57451887755431-0.0192188775543141
1151.5771.57936774184362-0.00236774184362409
1161.49751.59181686520620-0.0943168652061963
1171.43691.52654873491655-0.0896487349165489
1181.33221.46874643113537-0.13654643113537
1191.27321.35988994788131-0.0866899478813117
1201.34491.274016768598470.0708832314015333
1211.32391.319865640278610.00403435972139055


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1221.299057390247321.224156937852201.37395784264244
1231.291232638010431.189388551718371.39307672430249
1241.268981100351711.143324786533171.39463741417026
1251.250113983236851.102113438943291.39811452753041
1261.244537651875731.074954683651811.41412062009966
1271.247748152216301.056975028646441.43852127578615
1281.228979979753741.017191464298161.44076849520932
1291.230882109561390.9981149203115621.46364929881121
1301.234514754126270.980713332761931.4883161754906
1311.249345921343100.9743906958289241.52430114685728
1321.264681493232950.96840726634671.56095572011921
1331.240459395996810.9226678048590971.55825098713451
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/1d72c1243968930.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/1d72c1243968930.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/25r1d1243968930.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/25r1d1243968930.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/3u9211243968930.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243968976omuucx36j8ovaql/3u9211243968930.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=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