Home » date » 2010 » May » 26 »

Wisselkoers

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 26 May 2010 15:35:52 +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/t1274888209rhm56xqbhlhymfd.htm/, Retrieved Wed, 26 May 2010 17:36:50 +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/t1274888209rhm56xqbhlhymfd.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:
KDGP2W51
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,8833 0,87 0,8758 0,8858 0,917 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,249 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,202 1,2271 1,277 1,265 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,457 1,4718 1,4748 1,5527 1,575 1,5557 1,5553 1,577 1,4975 1,4369 1,3322 1,2732 1,3449 1,3239 1,2785 1,305 1,319 1,365 1,4016 1,4088 1,4268 1,4562 1,4816 1,4914 1,4614 1,4272
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.8833NANA0.00647375992063494NA
20.87NANA-0.00489290674603187NA
30.8758NANA0.00576185515873018NA
40.8858NANA0.00551006944444442NA
50.917NANA0.0177999503968255NA
60.9554NANA0.0098600694444444NA
70.99220.9621124503968250.95236250.009749950396825370.0300875496031747
80.97780.9676785218253970.968454166666667-0.0007756448412697650.0101214781746033
90.98080.9732934027777780.985629166666667-0.01233576388888890.00750659722222224
100.98110.9806398313492071.00245833333333-0.02181850198412690.000460168650793458
111.00140.9999809027777781.0208-0.02081909722222230.00141909722222233
121.01831.045123759920631.03963750.00548625992063496-0.0268237599206349
131.06221.06094042658731.054466666666670.006473759920634940.00125957341269833
141.07731.061286259920631.06617916666667-0.004892906746031870.016013740079365
151.08071.08350352182541.077741666666670.00576185515873018-0.00280352182539678
161.08481.096980902777781.091470833333330.00551006944444442-0.0121809027777777
171.15821.124141617063491.106341666666670.01779995039682550.0340583829365078
181.16631.131997569444441.12213750.00986006944444440.0343024305555555
191.13721.148945783730161.139195833333330.00974995039682537-0.0117457837301587
201.11391.154520188492061.15529583333333-0.000775644841269765-0.0406201884920638
211.12221.156826736111111.1691625-0.0123357638888889-0.0346267361111112
221.16921.158143998015871.1799625-0.02181850198412690.011056001984127
231.17021.165651736111111.18647083333333-0.02081909722222230.00454826388888874
241.22861.195707093253971.190220833333330.005486259920634960.0328929067460315
251.26131.202398759920631.1959250.006473759920634940.0589012400793651
261.26461.19907792658731.20397083333333-0.004892906746031870.0655220734126987
271.22621.21820352182541.212441666666670.005761855158730180.00799647817460336
281.19851.225426736111111.219916666666670.00551006944444442-0.0269267361111112
291.20071.246412450396831.22861250.0177999503968255-0.0457124503968251
301.21381.248518402777781.238658333333330.0098600694444444-0.0347184027777778
311.22661.255191617063491.245441666666670.00974995039682537-0.0285916170634921
321.21761.248307688492061.24908333333333-0.000775644841269765-0.0307076884920634
331.22181.242193402777781.25452916666667-0.0123357638888889-0.0203934027777779
341.2491.240593998015871.2624125-0.02181850198412690.00840600198412678
351.29911.248426736111111.26924583333333-0.02081909722222230.0506732638888889
361.34081.277707093253971.272220833333330.005486259920634960.063092906746032
371.31191.27785292658731.271379166666670.006473759920634940.0340470734126985
381.30141.26601542658731.27090833333333-0.004892906746031870.0353845734126985
391.32011.277311855158731.271550.005761855158730180.0427881448412699
401.29381.275239236111111.269729166666670.005510069444444420.0185607638888889
411.26941.280529117063491.262729166666670.0177999503968255-0.0111291170634917
421.21651.261101736111111.251241666666670.0098600694444444-0.0446017361111111
431.20371.250291617063491.240541666666670.00974995039682537-0.0465916170634921
441.22921.231049355158731.231825-0.000775644841269765-0.00184935515873019
451.22561.210085069444441.22242083333333-0.01233576388888890.0155149305555553
461.20151.192902331349211.21472083333333-0.02181850198412690.00859766865079359
471.17861.191439236111111.21225833333333-0.0208190972222223-0.0128392361111109
481.18561.220082093253971.214595833333330.00548625992063496-0.034482093253968
491.21031.225786259920641.21931250.00647375992063494-0.0154862599206353
501.19381.21927792658731.22417083333333-0.00489290674603187-0.0254779265873015
511.2021.234057688492061.228295833333330.00576185515873018-0.0320576884920634
521.22711.238251736111111.232741666666670.00551006944444442-0.0111517361111106
531.2771.257587450396831.23978750.01779995039682550.0194125496031745
541.2651.259864236111111.250004166666670.00986006944444440.0051357638888887
551.26841.269141617063491.259391666666670.00974995039682537-0.000741617063492184
561.28111.267082688492061.26785833333333-0.0007756448412697650.0140173115079363
571.27271.265347569444441.27768333333333-0.01233576388888890.00735243055555568
581.26111.266143998015871.2879625-0.0218185019841269-0.00504399801587296
591.28811.275418402777781.2962375-0.02081909722222230.0126815972222223
601.32131.30801542658731.302529166666670.005486259920634960.0132845734126985
611.29991.316507093253971.310033333333330.00647375992063494-0.0166070932539684
621.30741.312819593253971.3177125-0.00489290674603187-0.00541959325396824
631.32421.331724355158731.32596250.00576185515873018-0.00752435515873007
641.35161.343076736111111.337566666666670.005510069444444420.00852326388888902
651.35111.369612450396821.35181250.0177999503968255-0.018512450396825
661.34191.374839236111111.364979166666670.0098600694444444-0.0329392361111109
671.37161.387545783730161.377795833333330.00974995039682537-0.0159457837301589
681.36221.391157688492061.39193333333333-0.000775644841269765-0.0289576884920635
691.38961.396093402777781.40842916666667-0.0123357638888889-0.0064934027777781
701.42271.405439831349211.42725833333333-0.02181850198412690.0172601686507936
711.46841.424272569444441.44509166666667-0.02081909722222230.0441274305555552
721.4571.467994593253971.462508333333330.00548625992063496-0.0109945932539683
731.47181.486432093253971.479958333333330.00647375992063494-0.0146320932539683
741.47481.489261259920631.49415416666667-0.00489290674603187-0.0144612599206346
751.55271.507524355158731.50176250.005761855158730180.0451756448412697
761.5751.505472569444441.49996250.005510069444444420.0695274305555555
771.55571.505858283730161.488058333333330.01779995039682550.0498417162698415
781.55531.485114236111111.475254166666670.00986006944444440.0701857638888892
791.5771.474170783730161.464420833333330.009749950396825370.102829216269841
801.49751.44930352182541.45007916666667-0.0007756448412697650.0481964781746034
811.43691.419243402777781.43157916666667-0.01233576388888890.0176565972222225
821.33221.388773164682541.41059166666667-0.0218185019841269-0.0565731646825398
831.27321.371160069444441.39197916666667-0.0208190972222223-0.0979600694444445
841.34491.38311542658731.377629166666670.00548625992063496-0.0382154265873014
851.32391.37069042658731.364216666666670.00647375992063494-0.0467904265873016
861.27851.349369593253971.3542625-0.00489290674603187-0.0708695932539682
871.3051.357882688492061.352120833333330.00576185515873018-0.0528826884920637
881.3191.364660069444441.359150.00551006944444442-0.0456600694444442
891.3651.392266617063491.374466666666670.0177999503968255-0.0272666170634921
901.40161.398272569444441.38841250.00986006944444440.00332743055555551
911.40881.407320783730161.397570833333330.009749950396825370.00147921626984115
921.4268NANA-0.000775644841269765NA
931.4562NANA-0.0123357638888889NA
941.4816NANA-0.0218185019841269NA
951.4914NANA-0.0208190972222223NA
961.4614NANA0.00548625992063496NA
971.4272NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/26/t1274888209rhm56xqbhlhymfd/179371274888148.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274888209rhm56xqbhlhymfd/179371274888148.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/May/26/t1274888209rhm56xqbhlhymfd/4iik91274888148.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274888209rhm56xqbhlhymfd/4iik91274888148.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