Home » date » 2010 » Dec » 06 »

opdracht 9 oef 2 eigen reeks

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 06 Dec 2010 14:08:25 +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/Dec/06/t1291644473iobz8k2kegg06yq.htm/, Retrieved Mon, 06 Dec 2010 15:07:54 +0100
 
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/Dec/06/t1291644473iobz8k2kegg06yq.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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7,08 7,08 7,09 7,07 7,06 6,99 6,99 6,99 6,98 6,96 6,95 6,91 6,91 6,87 6,91 6,89 6,88 6,9 6,91 6,85 6,86 6,82 6,8 6,83 6,84 6,89 7,14 7,21 7,25 7,31 7,3 7,48 7,49 7,4 7,44 7,42 7,14 7,24 7,33 7,61 7,66 7,69 7,7 7,68 7,71 7,71 7,72 7,68 7,72 7,74 7,76 7,9 7,97 7,96 7,95 7,97 7,93 7,99 7,96 7,92 7,97 7,98 8 8,04 8,17 8,29 8,26 8,3 8,32 8,28 8,27 8,32 8,31 8,34 8,32 8,36 8,33 8,35 8,34 8,37 8,31 8,33 8,34 8,25
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
17.08NANA-0.0989814814814815NA
27.08NANA-0.0896064814814817NA
37.09NANA-0.0417592592592595NA
47.07NANA0.031157407407407NA
57.06NANA0.0536574074074075NA
66.99NANA0.0746990740740737NA
76.997.05004629629637.005416666666670.0446296296296297-0.0600462962962949
86.997.043587962962966.989583333333330.0540046296296298-0.0535879629629621
96.987.013379629629636.973333333333330.0400462962962964-0.0333796296296285
106.966.959212962962966.958333333333330.0008796296296296680.000787037037038196
116.956.923101851851856.94333333333333-0.02023148148148130.0268981481481489
126.916.883587962962966.93208333333333-0.04849537037036970.0264120370370371
136.916.826018518518526.925-0.09898148148148150.0839814814814828
146.876.826226851851856.91583333333333-0.08960648148148170.0437731481481487
156.916.863240740740746.905-0.04175925925925950.0467592592592583
166.896.925324074074076.894166666666670.031157407407407-0.0353240740740741
176.886.935740740740746.882083333333330.0536574074074075-0.0557407407407418
186.96.947199074074076.87250.0746990740740737-0.047199074074074
196.916.910879629629636.866250.0446296296296297-0.000879629629629619
206.856.91817129629636.864166666666670.0540046296296298-0.0681712962962973
216.866.914629629629636.874583333333330.0400462962962964-0.0546296296296296
226.826.898379629629636.89750.000879629629629668-0.0783796296296284
236.86.906018518518526.92625-0.0202314814814813-0.106018518518519
246.836.910254629629636.95875-0.0484953703703697-0.0802546296296285
256.846.893101851851856.99208333333333-0.0989814814814815-0.0531018518518511
266.896.944976851851857.03458333333333-0.0896064814814817-0.0549768518518512
277.147.045324074074077.08708333333333-0.04175925925925950.0946759259259258
287.217.168657407407417.13750.0311574074074070.041342592592593
297.257.241990740740747.188333333333330.05365740740740750.00800925925925888
307.317.314282407407417.239583333333330.0746990740740737-0.00428240740740726
317.37.32129629629637.276666666666670.0446296296296297-0.0212962962962964
327.487.357754629629637.303750.05400462962962980.12224537037037
337.497.36629629629637.326250.04004629629629640.123703703703703
347.47.351712962962967.350833333333330.0008796296296296680.0482870370370367
357.447.364351851851857.38458333333333-0.02023148148148130.075648148148149
367.427.369004629629637.4175-0.04849537037036970.0509953703703712
377.147.351018518518527.45-0.0989814814814815-0.211018518518518
387.247.385393518518527.475-0.0896064814814817-0.145393518518517
397.337.450740740740747.4925-0.0417592592592595-0.12074074074074
407.617.545740740740747.514583333333330.0311574074074070.0642592592592601
417.667.592824074074077.539166666666670.05365740740740750.0671759259259268
427.697.636365740740747.561666666666670.07469907407407370.0536342592592609
437.77.64129629629637.596666666666670.04462962962962970.0587037037037037
447.687.69567129629637.641666666666670.0540046296296298-0.015671296296297
457.717.720462962962967.680416666666670.0400462962962964-0.0104629629629622
467.717.71129629629637.710416666666670.000879629629629668-0.00129629629629679
477.727.715185185185197.73541666666667-0.02023148148148130.00481481481481438
487.687.711087962962967.75958333333333-0.0484953703703697-0.031087962962963
497.727.682268518518527.78125-0.09898148148148150.0377314814814813
507.747.714143518518527.80375-0.08960648148148170.0258564814814823
517.767.783240740740747.825-0.0417592592592595-0.0232407407407402
527.97.876990740740747.845833333333330.0311574074074070.0230092592592603
537.977.92115740740747.86750.05365740740740750.0488425925925933
547.967.962199074074077.88750.0746990740740737-0.00219907407407405
557.957.95254629629637.907916666666670.0446296296296297-0.00254629629629566
567.977.982337962962967.928333333333330.0540046296296298-0.0123379629629623
577.937.988379629629637.948333333333330.0400462962962964-0.0583796296296288
587.997.96504629629637.964166666666670.0008796296296296680.0249537037037051
597.967.958101851851857.97833333333333-0.02023148148148130.00189814814814859
607.927.95192129629638.00041666666667-0.0484953703703697-0.0319212962962965
617.977.928101851851858.02708333333333-0.09898148148148150.0418981481481477
627.987.964143518518528.05375-0.08960648148148170.0158564814814817
6388.041990740740748.08375-0.0417592592592595-0.04199074074074
648.048.143240740740748.112083333333330.031157407407407-0.103240740740741
658.178.190740740740748.137083333333330.0536574074074075-0.0207407407407398
668.298.241365740740748.166666666666670.07469907407407370.0486342592592592
678.268.242129629629638.19750.04462962962962970.0178703703703711
688.38.28067129629638.226666666666670.05400462962962980.0193287037037049
698.328.29504629629638.2550.04004629629629640.0249537037037051
708.288.28254629629638.281666666666670.000879629629629668-0.00254629629629655
718.278.281435185185188.30166666666667-0.0202314814814813-0.011435185185185
728.328.262337962962968.31083333333333-0.04849537037036970.0576620370370389
738.318.217685185185198.31666666666667-0.09898148148148150.0923148148148147
748.348.233310185185188.32291666666667-0.08960648148148170.106689814814816
758.328.28365740740748.32541666666667-0.04175925925925950.0363425925925949
768.368.358240740740748.327083333333330.0311574074074070.00175925925925924
778.338.385740740740748.332083333333330.0536574074074075-0.0557407407407382
788.358.40678240740748.332083333333330.0746990740740737-0.0567824074074075
798.34NANA0.0446296296296297NA
808.37NANA0.0540046296296298NA
818.31NANA0.0400462962962964NA
828.33NANA0.000879629629629668NA
838.34NANA-0.0202314814814813NA
848.25NANA-0.0484953703703697NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/1m2ly1291644501.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/1m2ly1291644501.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/2m2ly1291644501.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/2m2ly1291644501.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/3ft211291644501.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/3ft211291644501.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/4ft211291644501.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291644473iobz8k2kegg06yq/4ft211291644501.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