Home » date » 2011 » May » 16 »

Decompositie Wisselkoers

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 16 May 2011 15:07:47 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp.htm/, Retrieved Mon, 16 May 2011 17:04:24 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,2638 1,2640 1,2261 1,1989 1,2000 1,2146 1,2266 1,2191 1,2224 1,2507 1,2997 1,3406 1,3123 1,3013 1,3185 1,2943 1,2697 1,2155 1,2041 1,2295 1,2234 1,2022 1,1789 1,1861 1,2126 1,1940 1,2028 1,2273 1,2767 1,2661 1,2681 1,2810 1,2722 1,2617 1,2888 1,3205 1,2993 1,3080 1,3246 1,3513 1,3518 1,3421 1,3726 1,3626 1,3910 1,4233 1,4683 1,4559 1,4728 1,4759 1,5520 1,5754 1,5554 1,5562 1,5759 1,4955 1,4342 1,3266 1,2744 1,3511 1,3244 1,2797 1,3050 1,3199 1,3646 1,4014 1,4092 1,4266 1,4575 1,4821 1,4908 1,4579 1,4266 1,3680 1,3570 1,3417 1,2563 1,2223 1,2811 1,2903 1,3103 1,3901 1,3654 1,3221
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 216.218.223.82


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.2638NANA0.00271255787037034NA
21.264NANA-0.0183436921296296NA
31.2261NANA0.00271811342592593NA
41.1989NANA0.00947297453703705NA
51.2NANA0.00214866898148145NA
61.2146NANA-0.00999577546296295NA
71.22661.257668807870371.245895833333330.0117729745370371-0.0310688078703703
81.21911.252357696759261.249470833333330.00288686342592598-0.033257696759259
91.22241.253863946759261.254875-0.00101105324074086-0.0314639467592592
101.25071.250771585648151.2627-0.0119284143518519-7.15856481483534e-05
111.29971.265318113425931.26957916666667-0.004261053240740680.0343818865740741
121.34061.286348668981481.272520833333330.01382783564814810.0542513310185186
131.31231.27433339120371.271620833333330.002712557870370340.0379666087962964
141.30131.252772974537041.27111666666667-0.01834369212962960.0485270254629631
151.31851.274309780092591.271591666666670.002718113425925930.0441902199074076
161.29431.279085474537041.26961250.009472974537037050.0152145254629632
171.26971.264707002314811.262558333333330.002148668981481450.00499299768518546
181.21551.241091724537041.2510875-0.00999577546296295-0.0255917245370367
191.20411.252268807870371.240495833333330.0117729745370371-0.0481688078703704
201.22951.234757696759261.231870833333330.00288686342592598-0.00525769675925924
211.22341.221568113425931.22257916666667-0.001011053240740860.00183188657407407
221.20221.203038252314811.21496666666667-0.0119284143518519-0.000838252314814492
231.17891.208205613425931.21246666666667-0.00426105324074068-0.0293056134259255
241.18611.228694502314811.214866666666670.0138278356481481-0.0425945023148144
251.21261.222354224537041.219641666666670.00271255787037034-0.009754224537037
261.1941.206110474537041.22445416666667-0.0183436921296296-0.0121104745370371
271.20281.231351446759261.228633333333330.00271811342592593-0.0285514467592589
281.22731.242618807870371.233145833333330.00947297453703705-0.0153188078703701
291.27671.242352835648151.240204166666670.002148668981481450.0343471643518518
301.26611.240387557870371.25038333333333-0.009995775462962950.0257124421296298
311.26811.271368807870371.259595833333330.0117729745370371-0.00326880787037021
321.2811.270845196759261.267958333333330.002886863425925980.0101548032407408
331.27221.276772280092591.27778333333333-0.00101105324074086-0.00457228009259225
341.26171.276096585648151.288025-0.0119284143518519-0.0143965856481481
351.28881.292059780092591.29632083333333-0.00426105324074068-0.00325978009259242
361.32051.316444502314811.302616666666670.01382783564814810.00405549768518543
371.29931.312850057870371.31013750.00271255787037034-0.0135500578703704
381.3081.299547974537041.31789166666667-0.01834369212962960.0084520254629632
391.32461.328959780092591.326241666666670.00271811342592593-0.00435978009259252
401.35131.347397974537041.3379250.009472974537037050.00390202546296337
411.35181.354286168981481.35213750.00214866898148145-0.00248616898148124
421.34211.355262557870371.36525833333333-0.00999577546296295-0.01316255787037
431.37261.38990214120371.378129166666670.0117729745370371-0.0173021412037035
441.36261.395241030092591.392354166666670.00288686342592598-0.0326410300925926
451.3911.407813946759261.408825-0.00101105324074086-0.0168139467592592
461.42331.415709085648151.4276375-0.01192841435185190.00759091435185222
471.46831.441197280092591.44545833333333-0.004261053240740680.0271027199074076
481.45591.476690335648151.46286250.0138278356481481-0.0207903356481483
491.47281.482966724537041.480254166666670.00271255787037034-0.0101667245370372
501.47591.475918807870371.4942625-0.0183436921296296-1.8807870370452e-05
511.5521.504318113425931.50160.002718113425925930.0476818865740742
521.57541.508843807870371.499370833333330.009472974537037050.0665561921296296
531.55541.489411168981481.48726250.002148668981481450.0659888310185188
541.55621.46482089120371.47481666666667-0.009995775462962950.0913791087962963
551.57591.47603964120371.464266666666670.01177297453703710.0998603587962963
561.49551.452795196759261.449908333333330.002886863425925980.0427048032407407
571.43421.430430613425931.43144166666667-0.001011053240740860.003769386574074
581.32661.398575752314811.41050416666667-0.0119284143518519-0.0719757523148148
591.27441.387647280092591.39190833333333-0.00426105324074068-0.113247280092593
601.35111.391336168981481.377508333333330.0138278356481481-0.0402361689814814
611.32441.366825057870371.36411250.00271255787037034-0.0424250578703702
621.27971.33595214120371.35429583333333-0.0183436921296296-0.0562521412037036
631.3051.355113946759261.352395833333330.00271811342592593-0.0501139467592595
641.31991.369318807870371.359845833333330.00947297453703705-0.0494188078703703
651.36461.377490335648151.375341666666670.00214866898148145-0.012890335648148
661.40141.378812557870371.38880833333333-0.009995775462962950.0225874421296295
671.40921.40928964120371.397516666666670.0117729745370371-8.96412037036942e-05
681.42661.408341030092591.405454166666670.002886863425925980.0182589699074076
691.45751.410288946759261.4113-0.001011053240740860.0472110532407408
701.48211.402446585648151.414375-0.01192841435185190.0796534143518521
711.49081.406509780092591.41077083333333-0.004261053240740680.0842902199074078
721.45791.412623668981481.398795833333330.01382783564814810.0452763310185189
731.42661.38870839120371.385995833333330.002712557870370340.0378916087962966
741.3681.356635474537041.37497916666667-0.01834369212962960.0113645254629633
751.3571.365884780092591.363166666666670.00271811342592593-0.00888478009259264
761.34171.362672974537041.35320.00947297453703705-0.0209729745370368
771.25631.346290335648151.344141666666670.00214866898148145-0.0899903356481477
781.22231.323262557870371.33325833333333-0.00999577546296295-0.10096255787037
791.2811NANA0.0117729745370371NA
801.2903NANA0.00288686342592598NA
811.3103NANA-0.00101105324074086NA
821.3901NANA-0.0119284143518519NA
831.3654NANA-0.00426105324074068NA
841.3221NANA0.0138278356481481NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/1pspq1305558463.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/1pspq1305558463.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/2smto1305558463.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/2smto1305558463.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/3dofd1305558463.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/3dofd1305558463.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/42i1e1305558463.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305558258f3j9k4im3uvrtmp/42i1e1305558463.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