Home » date » 2009 » Jan » 15 »

evolutie graan -opgave 9 - Marie-Laure Van Thielen

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 15 Jan 2009 10:41:26 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo.htm/, Retrieved Thu, 15 Jan 2009 18:42:12 +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/2009/Jan/15/t12320413277qx1bbmbna2bvvo.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 «
93,4 98,5 100,8 102,3 104,7 101,1 101,4 99,5 98,4 96,3 100,7 101,2 100,3 97,8 97,4 98,6 99,7 99 98,1 97 98,5 103,8 114,4 124,5 134,2 131,8 125,6 119,9 114,9 115,5 112,5 111,4 115,3 110,8 103,7 111,1 113 111,2 117,6 121,7 127,3 129,8 137,1 141,4 137,4 130,7 117,2 110,8 111,4 108,2 108,8 110,2 109,5 109,5 116 111,2 112,1 114 119,1 114,1 115,1 115,4 110,8 116 119,2 126,5 127,8 131,3 140,3 137,3 143 134,5 139,9 159,3 170,4 175 175,8 180,9 180,3 169,6 172,3 184,8 177,7 184,6 211,4 215,3 215,9 244,7 259,3 289 310,9 321 315,1 333,2 314,1 284,7
 
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
193.4NANA1.00357061143707NA
298.5NANA0.997727608310619NA
3100.8NANA0.98930348254145NA
4102.3NANA1.00414513577228NA
5104.7NANA1.00408462887898NA
6101.1NANA1.02283841042777NA
7101.4102.165749305293100.1458333333331.020169745507400.992504833464251
899.5100.307867293962100.4041666666670.9990408827053540.991946122315664
998.4100.599379624776100.2333333333331.003651941717090.978137244653205
1096.399.24320526355799.93750.9930527105796820.97034350859849
11100.798.012354594447299.5750.9843068500572151.02742149616417
12101.297.10574636223099.27916666666670.9781079920651011.04216283578623
13100.399.407850607055899.05416666666671.003570611437071.00897463718908
1497.898.58795929619398.81250.9977276083106190.992007550396436
1597.497.656620020372898.71250.989303482541450.99737222094806
1698.699.439656007915799.02916666666671.004145135772280.991556125175566
1799.7100.32060548287199.91251.004084628878980.993813778536483
1899103.771218564608101.4541666666671.022838410427770.954021754484486
1998.1105.931875949124103.83751.020169745507400.926066862509962
2097106.564360821904106.6666666666670.9990408827053540.910248034632433
2198.5109.657338398773109.2583333333331.003651941717090.898252697341618
22103.8110.547455285656111.3208333333330.9930527105796820.93896326904839
23114.4111.070825471873112.8416666666670.9843068500572151.02997343824522
24124.5111.663253644132114.16250.9781079920651011.11495945117969
25134.2115.862227090409115.451.003570611437071.15827222875046
26131.8116.384925509434116.650.9977276083106191.13244906437060
27125.6116.688345765764117.950.989303482541451.07637141632057
28119.9119.434696023981118.9416666666671.004145135772281.00389588613283
29114.9119.272702852962118.78751.004084628878980.963338611867021
30115.5120.473317441551117.7833333333331.022838410427770.958718515044097
31112.5118.688248475240116.3416666666671.020169745507400.947861321110231
32111.4114.490085158034114.60.9990408827053540.973010019568347
33115.3113.822493956898113.4083333333331.003651941717091.01298079133340
34110.8112.363914202091113.150.9930527105796820.986081704137876
35103.7111.956701636924113.7416666666670.9843068500572150.926250938834364
36111.1112.339778338644114.8541666666670.9781079920651010.988964030755815
37113116.890886967132116.4751.003570611437070.966713513190926
38111.2118.480153486886118.750.9977276083106190.93855381451973
39117.6119.627401528481120.9208333333330.989303482541450.983052365072076
40121.7123.179320592799122.6708333333331.004145135772280.98799051183527
41127.3124.569249270299124.06251.004084628878981.02192154761868
42129.8127.458451419431124.61251.022838410427771.01837107351057
43137.1127.045138973854124.5333333333331.020169745507401.07914400430712
44141.4124.222408423722124.3416666666670.9990408827053541.13828094137159
45137.4124.302292981661123.851.003651941717091.10536979410566
46130.7122.149621120928123.0041666666670.9930527105796821.06999922554493
47117.2119.872169222801121.7833333333330.9843068500572150.977708176634107
48110.8117.564505196258120.1958333333330.9781079920651010.942461330611941
49111.4118.893846645792118.4708333333331.003570611437070.93697027342283
50108.2116.068978433469116.3333333333330.9977276083106190.932204293174
51108.8112.801207498945114.0208333333330.989303482541450.964528682026899
52110.2112.736211180767112.2708333333331.004145135772280.977503136266481
53109.5112.110232500292111.6541666666671.004084628878980.976717267977435
54109.5114.425785339897111.8708333333331.022838410427770.956952138669924
55116114.424789080473112.16251.020169745507401.01376634322148
56111.2112.508654074001112.6166666666670.9990408827053540.988368414103145
57112.1113.4126694140311131.003651941717090.98842572509039
58114112.537698426442113.3250.9930527105796821.01299388199691
59119.1112.182271956729113.9708333333330.9843068500572151.06166507347916
60114.1112.563928086825115.0833333333330.9781079920651011.01364621810275
61115.1116.698535933274116.2833333333331.003570611437070.98630200524377
62115.4117.345238332433117.61250.9977276083106190.983422946170837
63110.8118.345429099021119.6250.989303482541450.936242327595876
64116122.275589970604121.7708333333331.004145135772280.948676673961563
65119.2124.242921765913123.73751.004084628878980.959410792226746
66126.5128.451457042888125.5833333333331.022838410427770.984807824778226
67127.8130.037636894009127.4666666666671.020169745507400.982792390361313
68131.3130.20416570892130.3291666666670.9990408827053541.00841627673826
69140.3135.133370186025134.6416666666671.003651941717091.03823355997755
70137.3138.613607518414139.5833333333330.9930527105796820.99052324268929
71143142.133909148262144.40.9843068500572151.00609348505876
72134.5145.762543517502149.0250.9781079920651010.922733623839725
73139.9154.027181134518153.4791666666671.003570611437070.908281246008259
74159.3156.905138001949157.26250.9977276083106191.01526312030662
75170.4158.478173707452160.1916666666670.989303482541451.07522692881706
76175164.181913636833163.5041666666671.004145135772281.06589085316118
77175.8167.611010361578166.9291666666671.004084628878981.04885711040556
78180.9174.355592537544170.46251.022838410427771.03753482963873
79180.3179.069545287459175.5291666666671.020169745507401.00687137899728
80169.6180.668218296574180.8416666666670.9990408827053540.93873732524220
81172.3185.746701230199185.0708333333331.003651941717090.92760732146982
82184.8188.551745701690189.8708333333330.9930527105796820.980102301955744
83177.7193.174320602270196.2541666666670.9843068500572150.919894525555854
84184.6199.766331029396204.23750.9781079920651010.924079643695491
85211.4214.948098792963214.1833333333331.003570611437070.98349323016632
86215.3225.419924304313225.9333333333330.9977276083106190.95510634503341
87215.9235.643845345685238.1916666666670.989303482541450.9162131931911
88244.7251.362631112196250.3251.004145135772280.973493947438743
89259.3263.262622320161262.1916666666671.004084628878980.984948025339722
90289278.258927730165272.0458333333331.022838410427771.03860099784561
91310.9NANA1.02016974550740NA
92321NANA0.999040882705354NA
93315.1NANA1.00365194171709NA
94333.2NANA0.993052710579682NA
95314.1NANA0.984306850057215NA
96284.7NANA0.978107992065101NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/1vsuq1232041284.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/1vsuq1232041284.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/2bw8z1232041284.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/2bw8z1232041284.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/327hs1232041284.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/327hs1232041284.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/4gjwd1232041284.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/15/t12320413277qx1bbmbna2bvvo/4gjwd1232041284.ps (open in new window)


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