Home » date » 2009 » Jun » 02 »

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

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 02 Jun 2009 11:47:33 -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/t1243964918ko1ljtl2i9wpvqc.htm/, Retrieved Tue, 02 Jun 2009 19:48:43 +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/t1243964918ko1ljtl2i9wpvqc.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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.1608NANA0.0128629629629630NA
21.1208NANA0.00185370370370362NA
31.0883NANA0.00482824074074078NA
41.0704NANA0.00183749999999997NA
51.0628NANA0.00548472222222228NA
61.0378NANA0.00364166666666666NA
71.03531.068094444444441.06071250.00738194444444443-0.0327944444444443
81.06041.034989814814811.04885833333333-0.01386851851851850.0254101851851853
91.05011.024260648148151.03796666666667-0.01370601851851850.0258393518518518
101.07061.013919907407411.02765833333333-0.01373842592592590.0566800925925925
111.03381.011397222222221.01598333333333-0.004586111111111120.022402777777778
121.0111.013766666666671.005758333333330.00800833333333332-0.00276666666666681
131.01371.010946296296300.9980833333333330.01286296296296300.00275370370370376
140.98340.9894412037037040.98758750.00185370370370362-0.00604120370370353
150.96430.9784865740740740.9736583333333330.00482824074074078-0.0141865740740739
160.9470.9591041666666660.9572666666666660.00183749999999997-0.0121041666666665
170.9060.9463847222222220.94090.00548472222222228-0.0403847222222221
180.94920.93241250.9287708333333330.003641666666666660.0167875000000003
190.93970.9282736111111110.9208916666666670.007381944444444430.0114263888888890
200.90410.9013106481481480.915179166666666-0.01386851851851850.00278935185185203
210.87210.8966189814814810.910325-0.0137060185185185-0.0245189814814814
220.85520.8920115740740740.90575-0.0137384259259259-0.0368115740740741
230.85640.8975472222222220.902133333333333-0.00458611111111112-0.0411472222222221
240.89730.9048166666666670.8968083333333330.00800833333333332-0.00751666666666662
250.93830.902379629629630.8895166666666670.01286296296296300.0359203703703704
260.92170.8879287037037040.8860750.001853703703703620.0337712962962964
270.90950.8923782407407410.887550.004828240740740780.0171217592592592
280.8920.8931250.89128750.00183749999999997-0.00112500000000004
290.87420.9002138888888890.8947291666666670.00548472222222228-0.026013888888889
300.85320.8994958333333330.8958541666666670.00364166666666666-0.0462958333333334
310.86070.9007402777777780.8933583333333330.00738194444444443-0.0400402777777777
320.90050.8750439814814820.8889125-0.01386851851851850.0254560185185184
330.91110.8716481481481480.885354166666667-0.01370601851851850.0394518518518518
340.90590.8699532407407410.883691666666667-0.01373842592592590.0359467592592592
350.88830.8806305555555560.885216666666667-0.004586111111111120.0076694444444444
360.89240.8992666666666670.8912583333333330.00800833333333332-0.00686666666666669
370.88330.9138587962962960.9009958333333330.0128629629629630-0.0305587962962963
380.870.9115495370370370.9096958333333330.00185370370370362-0.041549537037037
390.87580.9206490740740740.9158208333333330.00482824074074078-0.044849074074074
400.88580.9236958333333330.9218583333333330.00183749999999997-0.0378958333333331
410.9170.9351888888888890.9297041666666670.00548472222222228-0.0181888888888889
420.95540.9433041666666660.93966250.003641666666666660.0120958333333335
430.99220.9597444444444440.95236250.007381944444444430.0324555555555557
440.97780.9545856481481480.968454166666667-0.01386851851851850.0232143518518519
450.98080.9719231481481480.985629166666667-0.01370601851851850.00887685185185183
460.98110.9887199074074081.00245833333333-0.0137384259259259-0.00761990740740759
471.00141.016213888888891.0208-0.00458611111111112-0.0148138888888887
481.01831.047645833333331.03963750.00800833333333332-0.0293458333333334
491.06221.067329629629631.054466666666670.0128629629629630-0.00512962962962971
501.07731.068032870370371.066179166666670.001853703703703620.00926712962962939
511.08071.082569907407411.077741666666670.00482824074074078-0.00186990740740733
521.08481.093308333333331.091470833333330.00183749999999997-0.00850833333333334
531.15821.111826388888891.106341666666670.005484722222222280.0463736111111108
541.16631.125779166666671.12213750.003641666666666660.0405208333333331
551.13721.146577777777781.139195833333330.00738194444444443-0.0093777777777777
561.11391.141427314814811.15529583333333-0.0138685185185185-0.0275273148148150
571.12221.155456481481481.1691625-0.0137060185185185-0.0332564814814815
581.16921.166224074074071.1799625-0.01373842592592590.00297592592592610
591.17021.181884722222221.18647083333333-0.00458611111111112-0.0116847222222223
601.22861.198229166666671.190220833333330.008008333333333320.030370833333333
611.26131.208787962962961.1959250.01286296296296300.0525120370370371
621.26461.205824537037041.203970833333330.001853703703703620.0587754629629631
631.22621.217269907407411.212441666666670.004828240740740780.00893009259259281
641.19851.221754166666671.219916666666670.00183749999999997-0.0232541666666668
651.20071.234097222222221.22861250.00548472222222228-0.0333972222222221
661.21381.24231.238658333333330.00364166666666666-0.0285000000000002
671.22661.252823611111111.245441666666670.00738194444444443-0.0262236111111112
681.21761.235214814814811.24908333333333-0.0138685185185185-0.0176148148148145
691.22181.240823148148151.25452916666667-0.0137060185185185-0.0190231481481482
701.2491.248674074074071.2624125-0.01373842592592590.000325925925925841
711.29911.264659722222221.26924583333333-0.004586111111111120.0344402777777779
721.34081.280229166666671.272220833333330.008008333333333320.0605708333333335
731.31191.284242129629631.271379166666670.01286296296296300.0276578703703705
741.30141.272762037037041.270908333333330.001853703703703620.0286379629629629
751.32011.276378240740741.271550.004828240740740780.0437217592592594
761.29381.271566666666671.269729166666670.001837499999999970.0222333333333333
771.26941.268213888888891.262729166666670.005484722222222280.00118611111111133
781.21651.254883333333331.251241666666670.00364166666666666-0.0383833333333334
791.20371.247923611111111.240541666666670.00738194444444443-0.0442236111111112
801.22921.217956481481481.231825-0.01386851851851850.0112435185185187
811.22561.208714814814821.22242083333333-0.01370601851851850.016885185185185
821.20151.200982407407411.21472083333333-0.01373842592592590.000517592592592653
831.17861.207672222222221.21225833333333-0.00458611111111112-0.0290722222222219
841.18561.222604166666671.214595833333330.00800833333333332-0.0370041666666665
851.21031.232175462962961.21931250.0128629629629630-0.0218754629629634
861.19381.226024537037041.224170833333330.00185370370370362-0.0322245370370371
871.2021.233124074074071.228295833333330.00482824074074078-0.0311240740740739
881.22711.234579166666671.232741666666670.00183749999999997-0.00747916666666626
891.2771.245272222222221.23978750.005484722222222280.0317277777777776
901.2651.253645833333331.250004166666670.003641666666666660.0113541666666663
911.26841.266773611111111.259391666666670.007381944444444430.00162638888888877
921.28111.253989814814811.26785833333333-0.01386851851851850.0271101851851852
931.27271.263977314814811.27768333333333-0.01370601851851850.00872268518518537
941.26111.274224074074071.2879625-0.0137384259259259-0.0131240740740739
951.28811.291651388888891.2962375-0.00458611111111112-0.00355138888888873
961.32131.31053751.302529166666670.008008333333333320.0107625
971.29991.322896296296301.310033333333330.0128629629629630-0.0229962962962964
981.30741.319566203703701.31771250.00185370370370362-0.0121662037037038
991.32421.330790740740741.32596250.00482824074074078-0.00659074074074062
1001.35161.339404166666671.337566666666670.001837499999999970.0121958333333334
1011.35111.357297222222221.35181250.00548472222222228-0.00619722222222197
1021.34191.368620833333331.364979166666670.00364166666666666-0.0267208333333333
1031.37161.385177777777781.377795833333330.00738194444444443-0.0135777777777779
1041.36221.378064814814811.39193333333333-0.0138685185185185-0.0158648148148146
1051.38961.394723148148151.40842916666667-0.0137060185185185-0.0051231481481484
1061.42271.413519907407411.42725833333333-0.01373842592592590.00918009259259267
1071.46841.440505555555561.44509166666667-0.004586111111111120.0278944444444442
1081.4571.470516666666671.462508333333330.00800833333333332-0.0135166666666668
1091.47181.492821296296301.479958333333330.0128629629629630-0.0210212962962963
1101.47481.496007870370371.494154166666670.00185370370370362-0.0212078703703702
1111.55271.506590740740741.50176250.004828240740740780.0461092592592591
1121.5751.50181.49996250.001837499999999970.0732
1131.55571.493543055555561.488058333333330.005484722222222280.0621569444444445
1141.55531.478895833333331.475254166666670.003641666666666660.0764041666666668
1151.5771.471802777777781.464420833333330.007381944444444430.105197222222222
1161.4975NANA-0.0138685185185185NA
1171.4369NANA-0.0137060185185185NA
1181.3322NANA-0.0137384259259259NA
1191.2732NANA-0.00458611111111112NA
1201.3449NANA0.00800833333333332NA
1211.3239NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/1d8z71243964850.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/1d8z71243964850.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/2yhc41243964850.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/2yhc41243964850.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/3d2ub1243964850.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/3d2ub1243964850.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/4awxd1243964850.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243964918ko1ljtl2i9wpvqc/4awxd1243964850.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.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