Home » date » 2008 » May » 24 »

Classical Decomposition koers euro in USD SVEN VAN LAERE 2MAR04B

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 24 May 2008 06:25:04 -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/May/24/t121163245383kzqp4jdac4sna.htm/, Retrieved Sat, 24 May 2008 14:34:13 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,1591 1,1203 1,0886 1,0701 1,0630 1,0377 1,0370 1,0606 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,8706 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,0805 1,0862 1,1556 1,1674 1,1365 1,1155 1,1266 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
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.1591NANA0.0172850694444445NA
21.1203NANA0.00490173611111115NA
31.0886NANA-0.00229618055555559NA
41.0701NANA-0.00917222222222226NA
51.063NANA-0.000611805555555606NA
61.0377NANA0.0139694444444444NA
71.0371.070478819444441.0606250.00985381944444448-0.0334788194444444
81.06061.045506944444441.0488375-0.003330555555555540.0150930555555555
91.04971.026123611111111.03795416666667-0.01183055555555560.0235763888888889
101.07061.015854861111111.02755833333333-0.01170347222222220.0547451388888889
111.03280.9998079861111111.01579583333333-0.01598784722222220.0329920138888886
121.0111.014539236111111.005616666666670.00892256944444452-0.00353923611111129
131.01311.015168402777780.9978833333333330.0172850694444445-0.00206840277777776
140.98340.9921809027777780.9872791666666660.00490173611111115-0.00878090277777754
150.96430.970970486111110.973266666666667-0.00229618055555559-0.00667048611111087
160.94490.9474986111111110.956670833333333-0.00917222222222226-0.00259861111111104
170.90590.9395715277777780.940183333333333-0.000611805555555606-0.0336715277777776
180.95050.9420569444444440.92808750.01396944444444440.00844305555555569
190.93860.9300996527777780.9202458333333330.009853819444444480.00850034722222226
200.90450.9111486111111110.914479166666667-0.00333055555555554-0.00664861111111104
210.86950.8976944444444440.909525-0.0118305555555556-0.0281944444444443
220.85250.8933048611111110.905008333333333-0.0117034722222222-0.040804861111111
230.85520.8855621527777780.90155-0.0159878472222222-0.0303621527777777
240.89830.9051350694444440.89621250.00892256944444452-0.00683506944444434
250.93760.9062225694444440.88893750.01728506944444450.0313774305555556
260.92050.8904975694444440.8855958333333330.004901736111111150.0300024305555556
270.90830.8849163194444440.8872125-0.002296180555555590.0233836805555555
280.89250.8819736111111110.891145833333333-0.009172222222222260.0105263888888888
290.87530.8941006944444440.8947125-0.000611805555555606-0.0188006944444444
300.8530.9097652777777780.8957958333333330.0139694444444444-0.0567652777777777
310.86150.9030871527777780.8932333333333330.00985381944444448-0.0415871527777777
320.90140.8855569444444440.8888875-0.003330555555555540.0158430555555557
330.91140.8736569444444450.8854875-0.01183055555555560.0377430555555555
340.9050.8721923611111110.883895833333333-0.01170347222222220.0328076388888888
350.88830.8693746527777780.8853625-0.01598784722222220.0189253472222223
360.89120.9003184027777780.8913958333333330.00892256944444452-0.00911840277777776
370.88320.9184767361111110.9011916666666670.0172850694444445-0.0352767361111113
380.87060.9147892361111110.90988750.00490173611111115-0.044189236111111
390.87660.9136704861111110.915966666666667-0.00229618055555559-0.0370704861111111
400.8860.9128527777777780.922025-0.00917222222222226-0.0268527777777777
410.9170.9292965277777780.929908333333333-0.000611805555555606-0.0122965277777776
420.95610.9539277777777780.9399583333333330.01396944444444440.00217222222222224
430.99350.9626121527777780.9527583333333330.009853819444444480.0308878472222222
440.97810.9655486111111110.968879166666667-0.003330555555555540.0125513888888887
450.98060.9742069444444440.9860375-0.01183055555555560.00639305555555558
460.98120.9911715277777781.002875-0.0117034722222222-0.00997152777777754
471.00131.005170486111111.02115833333333-0.0159878472222222-0.00387048611111118
481.01941.048826736111111.039904166666670.00892256944444452-0.0294267361111109
491.06221.071951736111111.054666666666670.0172850694444445-0.00975173611111102
501.07851.071251736111111.066350.004901736111111150.00724826388888866
511.08051.075862152777781.07815833333333-0.002296180555555590.00463784722222216
521.08621.082994444444441.09216666666667-0.009172222222222260.00320555555555568
531.15561.106550694444441.1071625-0.0006118055555556060.0490493055555552
541.16741.136969444444441.1230.01396944444444440.0304305555555555
551.13651.150020486111111.140166666666670.00985381944444448-0.0135204861111111
561.11551.152965277777781.15629583333333-0.00333055555555554-0.0374652777777778
571.12661.158261111111111.17009166666667-0.0118305555555556-0.0316611111111111
581.17141.169150694444441.18085416666667-0.01170347222222220.00224930555555547
591.1711.171412152777781.1874-0.0159878472222222-0.000412152777777841
601.22981.200139236111111.191216666666670.008922569444444520.0296607638888886
611.26381.214222569444441.19693750.01728506944444450.0495774305555556
621.2641.209910069444441.205008333333330.004901736111111150.0540899305555556
631.22611.211020486111111.21331666666667-0.002296180555555590.0150795138888891
641.19891.211440277777781.2206125-0.00917222222222226-0.0125402777777774
651.21.228667361111111.22927916666667-0.000611805555555606-0.028667361111111
661.21461.253227777777781.239258333333330.0139694444444444-0.0386277777777777
671.2266NANA0.00985381944444448NA
681.2191NANA-0.00333055555555554NA
691.2224NANA-0.0118305555555556NA
701.2507NANA-0.0117034722222222NA
711.2997NANA-0.0159878472222222NA
721.3406NANA0.00892256944444452NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/13ujh1211631899.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/13ujh1211631899.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/2bbsj1211631899.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/2bbsj1211631899.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/3uyt01211631899.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/3uyt01211631899.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/40v4k1211631899.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t121163245383kzqp4jdac4sna/40v4k1211631899.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