Home » date » 2009 » Jun » 02 »

Opgave 9 Oefening 2 Anke Winckelmans

*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 13:29:18 -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/t1243971150295x3f287c1xs0s.htm/, Retrieved Tue, 02 Jun 2009 21:32:34 +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/t1243971150295x3f287c1xs0s.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 «
3779.7 3795.5 3813.1 3826.9 3833.3 3844.8 3851.3 3851.8 3854.1 3858.4 3861.6 3856.3 3855.8 3860.4 3855.1 3839.5 3833 3833.6 3826.8 3818.2 3811.4 3806.8 3810.3 3818.2 3858.9 3867.8 3872.3 3873.3 3876.7 3882.6 3883.5 3882.2 3888.1 3893.7 3901.9 3914.3 3930.3 3948.3 3971.5 3990.1 3993 3998 4015.8 4041.2 4060.7 4076.7 4103 4125.3 4139.7 4146.7 4158 4155.1 4144.8 4148.2 4142.5 4142.1 4145.4 4146.3 4143.5 4149.2 4158.9 4166.1 4179.1 4194.4 4211.7 4226.3 4235.8 4243.6 4258.7 4278.2 4298 4315.1 4334.3 4356 4374 4395.5
 
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
13779.7NANA0.999963339519623NA
23795.5NANA1.00009011360544NA
33813.13811.103020552113810.51.000158252342771.00052398988879
43826.93822.553073253263823.36250.9997882945321721.00113717891248
53833.33834.159432720093834.30.9999633395196230.99977584846557
63844.83842.53373336843842.18751.000090113605441.00058978444663
73851.33848.508939189733847.91.000158252342771.00072523173374
83851.83851.384468196833852.20.9997882945321721.00010789154046
93854.13855.046166974313855.18750.9999633395196230.999754564035468
103858.43857.385071555443857.03751.000090113605441.00026311307420
113861.63858.423007866073857.81251.000158252342771.00082339135119
123856.33857.458182086123858.2750.9997882945321720.99969975511556
133855.83857.571074406593857.71250.9999633395196230.999540883532038
143860.43855.147369926253854.81.000090113605441.00136249786836
153855.13850.459247781803849.851.000158252342771.00120524641856
163839.53842.836278278583843.650.9997882945321720.999131818782538
1738333836.621842443663836.76250.9999633395196230.99905598138352
183833.63830.907685797743830.56251.000090113605441.00070278754360
193826.83825.805346861553825.21.000158252342771.00025998529676
203818.23818.341465062543819.150.9997882945321720.999962951175572
213811.43813.597686551223813.73750.9999633395196230.99942372354615
223806.83812.018483777013811.6751.000090113605440.998631044471788
233810.33818.216646121903817.61251.000158252342770.997926611594987
243818.23830.363919304293831.1750.9997882945321720.996824343701916
253858.93846.408983629213846.550.9999633395196231.00324744883447
263867.83861.53544552693861.18751.000090113605441.00162229625015
273872.33870.912484042213870.31.000158252342771.00035844673924
283873.33873.554773628083874.3750.9997882945321720.999934227436303
293876.73877.482844404783877.6250.9999633395196230.999798104998476
303882.63880.487153179733880.13751.000090113605441.00054447978743
313883.53883.289442414953882.6751.000158252342771.00005422145018
323882.23884.664921051073885.48750.9997882945321720.999365473959487
333888.13889.032420976233889.1750.9999633395196230.999760243455107
343893.73895.838536423573895.48751.000090113605440.999451071597661
353901.93905.392939791723904.7751.000158252342770.999105611177781
363914.33916.04577614573916.8750.9997882945321720.999554199249576
373930.33932.255836326973932.40.9999633395196230.999502617223198
383948.33950.931000556813950.5751.000090113605440.999334080864374
393971.53968.515427492703967.88751.000158252342771.00075206272013
403990.13981.09450205873981.93750.9997882945321721.00226206585567
4139933993.541089497783993.68750.9999633395196230.999864508844244
4239984005.973460184374005.61251.000090113605440.99800960733674
434015.84021.098747609634020.46251.000158252342770.998682263743765
444041.24037.907471895494038.76250.9997882945321721.00081540454491
454060.74059.351176779914059.50.9999633395196231.00033227556852
464076.74081.280245738864080.91251.000090113605440.998877742898533
4741034101.949040333384101.31.000158252342771.00025620983008
484125.34119.052789350464119.9250.9997882945321721.00151666195337
494139.74135.398388750384135.550.9999633395196231.00104019270823
504146.74146.523624525194146.151.000090113605441.00004253574579
5141584151.16932832684150.51251.000158252342771.00164548134103
524155.14150.458639152454151.33750.9997882945321721.00111827661738
534144.84149.435374128884149.58750.9999633395196230.998882890390875
544148.24146.398613260994146.0251.000090113605441.00043444610782
554142.54145.130872878284144.4751.000158252342770.999365310056795
564142.14143.435126383364144.31250.9997882945321720.999677773069292
574145.44144.048071637224144.20.9999633395196231.00032623375487
584146.34145.586040043694145.21251.000090113605441.00017222171954
594143.54148.443897089174147.78751.000158252342770.998808252633563
604149.24151.071009482854151.950.9997882945321720.999549270663263
614158.94158.722533644674158.8750.9999633395196231.00004267328582
624166.14169.350681368244168.9751.000090113605440.999220338700997
634179.14181.886688651884181.2251.000158252342770.99933362884761
644194.44194.461821465554195.350.9997882945321720.999985261168612
654211.74209.808160752384209.96250.9999633395196231.00044938846983
664226.34223.580567778494223.21.000090113605441.00064386891119
674235.84235.895234278394235.2251.000158252342770.999977517319688
684243.64246.688262501174247.58750.9997882945321720.999272783328967
694258.74261.693758531714261.850.9999633395196230.99929751908482
704278.24278.948056692974278.56251.000090113605440.999825177430747
7142984297.630002404254296.951.000158252342771.00008609340393
724315.14315.211252737674316.1250.9997882945321720.99997421847248
734334.34335.19106398644335.350.9999633395196230.999794457966616
7443564355.292435740334354.91.000090113605441.00016246079227
754374NANA1.00015825234277NA
764395.5NANA0.999788294532172NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/1wsua1243970956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/1wsua1243970956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/26c6s1243970956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/26c6s1243970956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/37zn91243970956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243971150295x3f287c1xs0s/37zn91243970956.ps (open in new window)


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


 
Parameters (Session):
par1 = multiplicative ; par2 = 4 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 4 ;
 
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