Home » date » 2011 » May » 17 »

Opgave 9 - Geboortes additief- Nathalie Sysmans

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 17 May 2011 18:51:53 +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/17/t1305661155qg71i2leq6dtn11.htm/, Retrieved Tue, 17 May 2011 21:39:18 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
131676 135050 129070 137792 139762 142917 144198 142648 152170 136022 138142 138135 135027 132911 133976 137012 119610 118106 120383 133185 131416 134248 134397 127728 131837 125955 134187 143291 145074 149812 144668 147253 145568 155564 155872 156323 158010 155598 154785 157294 162938 157283 166074 169282 172552 174055 175409 173696 171283 173322 170717 174229 175339 173511 175839 173816 173990 174777 174819 176726 176199 180952 176663 182346 180605 182497 187856 190020 190108 193288 193230 199068 195076 191563 191067 186665 185508 184371 183046 175714 175768 171029 170465 170102 156389 124291 99360 86675 85056 128236 164257 162401 152779 156005 153387 153190 148840 144211 145953 145542 150271 147489 143824 134754 131736 126304 125511 125495 130133 126257 110323 98417 105749 120665 124075 127245 146731 144979 148210 144670 142970 142524 146142 146522 148128 148798 150181 152388 1556 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1131676NANA852.414529914529NA
2135050NANA-2704.67521367521NA
3129070NANA-4799.78739316239NA
4137792NANA-5216.4123931624NA
5139762NANA-5109.29700854701NA
6142917NANA-1019.35149572649NA
7144198141660.561965812139104.7916666672555.77029914532537.43803418803
8142648141926.501068376139155.2916666672771.20940170941721.498931623937
9152170142292.763888889139270.5833333333022.180555555559877.23611111112
10136022143247.696581197139442.53805.19658119658-7225.69658119659
11138142141754.456196581138570.3333333333184.12286324786-3612.45619658116
12138135139355.504273504136696.8752658.62927350428-1220.50427350428
13135027135523.206196581134670.791666667852.414529914529-496.206196581188
14132911130579.533119658133284.208333333-2704.675213675212331.4668803419
15133976127225.379273504132025.166666667-4799.787393162396750.62072649572
16137012125870.087606838131086.5-5216.412393162411141.9123931624
17119610125747.24465812130856.541666667-5109.29700854701-6137.24465811967
18118106129247.523504274130266.875-1019.35149572649-11141.5235042735
19120383132256.103632479129700.3333333332555.7702991453-11873.1036324787
20133185132048.792735043129277.5833333332771.209401709411136.20726495725
21131416132018.722222222128996.5416666673022.18055555555-602.722222222219
22134248133072.15491453129266.9583333333805.196581196581175.84508547009
23134397133773.706196581130589.5833333333184.12286324786623.293803418826
24127728135630.295940171132971.6666666672658.62927350428-7902.29594017094
25131837136157.039529915135304.625852.414529914529-4320.03952991453
26125955134197.991452991136902.666666667-2704.67521367521-8242.99145299144
27134187133278.712606838138078.5-4799.78739316239908.287393162376
28143291134339.920940171139556.333333333-5216.41239316248951.07905982906
29145074136229.99465812141339.291666667-5109.297008547018844.00534188031
30149812142406.19017094143425.541666667-1019.351495726497405.80982905984
31144668148263.311965812145707.5416666672555.7702991453-3595.31196581197
32147253150804.417735043148033.2083333332771.20940170941-3551.41773504272
33145568153148.763888889150126.5833333333022.18055555555-7580.7638888889
34155564155373.488247863151568.2916666673805.19658119658190.511752136721
35155872156080.206196581152896.0833333333184.12286324786-208.206196581188
36156323156610.337606838153951.7083333332658.62927350428-287.337606837595
37158010156007.331196581155154.916666667852.4145299145292002.66880341878
38155598154260.033119658156964.708333333-2704.675213675211337.9668803419
39154785154207.129273504159006.916666667-4799.78739316239577.870726495719
40157294155685.295940171160901.708333333-5216.41239316241608.70405982906
41162938157376.911324786162486.208333333-5109.297008547015561.08867521369
42157283163004.773504274164024.125-1019.35149572649-5721.7735042735
43166074167856.811965812165301.0416666672555.7702991453-1782.81196581197
44169282169363.792735043166592.5833333332771.20940170941-81.792735042749
45172552171017.097222222167994.9166666673022.180555555551534.90277777778
46174055173169.571581197169364.3753805.19658119658885.428418803465
47175409173770.831196581170586.7083333333184.122863247861638.16880341881
48173696174438.212606838171779.5833333332658.62927350428-742.212606837624
49171283173715.039529915172862.625852.414529914529-2432.03952991453
50173322170753.741452991173458.416666667-2704.675213675212568.25854700856
51170717168907.462606838173707.25-4799.787393162391809.53739316241
52174229168580.837606838173797.25-5216.41239316245648.16239316243
53175339168693.452991453173802.75-5109.297008547016645.547008547
54173511172885.06517094173904.416666667-1019.35149572649625.934829059843
55175839176791.270299145174235.52555.7702991453-952.270299145282
56173816177529.459401709174758.252771.20940170941-3713.45940170941
57173990178346.097222222175323.9166666673022.18055555555-4356.09722222228
58174777179715.071581197175909.8753805.19658119658-4938.07158119659
59174819179651.622863248176467.53184.12286324786-4832.62286324785
60176726179719.962606838177061.3333333332658.62927350428-2993.96260683759
61176199178788.872863248177936.458333333852.414529914529-2589.87286324785
62180952176407.658119658179112.333333333-2704.675213675214544.3418803419
63176663175659.295940171180459.083333333-4799.787393162391003.70405982903
64182346176685.545940171181901.958333333-5216.41239316245660.45405982906
65180605178331.077991453183440.375-5109.297008547012273.922008547
66182497184119.06517094185138.416666667-1019.35149572649-1622.06517094016
67187856189411.645299145186855.8752555.7702991453-1555.64529914531
68190020190855.751068376188084.5416666672771.20940170941-835.751068376034
69190108192149.013888889189126.8333333333022.18055555555-2041.01388888888
70193288193712.15491453189906.9583333333805.19658119658-424.154914529907
71193230193475.331196581190291.2083333333184.12286324786-245.331196581188
72199068193232.212606838190573.5833333332658.629273504285835.7873931624
73195076191303.664529915190451.25852.4145299145293772.33547008544
74191563186950.074786325189654.75-2704.675213675214612.92521367522
75191067183661.379273504188461.166666667-4799.787393162397405.62072649572
76186665181719.795940171186936.208333333-5216.41239316244945.20405982909
77185508179950.911324786185060.208333333-5109.297008547015557.08867521366
78184371181885.398504274182904.75-1019.351495726492485.6014957265
79183046182641.645299145180085.8752555.7702991453404.354700854718
80175714178442.126068376175670.9166666672771.20940170941-2728.12606837603
81175768172068.972222222169046.7916666673022.180555555553699.02777777778
82171029164864.613247863161059.4166666673805.196581196586164.38675213675
83170465155891.789529915152707.6666666673184.1228632478614573.2104700855
84170102148841.837606838146183.2083333332658.6292735042821260.1623931624
85156389143913.789529915143061.375852.41452991452912475.2104700855
86124291139019.116452991141723.791666667-2704.67521367521-14728.1164529915
8799360135411.420940171140211.208333333-4799.78739316239-36051.4209401709
8886675133410.920940171138627.333333333-5216.4123931624-46735.9209401709
8985056132180.452991453137289.75-5109.29700854701-47124.452991453
90128236134854.148504274135873.5-1019.35149572649-6618.1485042735
91164257137410.061965812134854.2916666672555.770299145326846.938034188
92162401138140.959401709135369.752771.2094017094124260.0405982906
93152779141163.305555556138141.1253022.1805555555511615.6944444444
94156005146340.488247863142535.2916666673805.196581196589664.51175213672
95153387150889.497863248147705.3753184.122863247862497.50213675215
96153190153883.504273504151224.8752658.62927350428-693.504273504252
97148840152028.122863248151175.708333333852.414529914529-3188.12286324785
98144211146467.699786325149172.375-2704.67521367521-2256.69978632478
99145953142343.837606838147143.625-4799.787393162393609.16239316241
100145542139812.879273504145029.291666667-5216.41239316245729.12072649575
101150271137520.952991453142630.25-5109.2970085470112750.047008547
102147489139295.44017094140314.791666667-1019.351495726498193.55982905984
103143824140937.145299145138381.3752555.77029914532886.85470085472
104134754139625.042735043136853.8333333332771.20940170941-4871.04273504272
105131736137643.347222222134621.1666666673022.18055555555-5907.3472222222
106126304134978.238247863131173.0416666673805.19658119658-8674.2382478632
107125511130538.539529915127354.4166666673184.12286324786-5027.53952991452
108125495127040.295940171124381.6666666672658.62927350428-1545.29594017094
109130133123293.539529915122441.125852.4145299145296839.46047008547
110126257118600.699786325121305.375-2704.675213675217656.30021367523
111110323116817.504273504121617.291666667-4799.78739316239-6494.50427350428
11298417117803.795940171123020.208333333-5216.4123931624-19386.7959401709
113105749119634.827991453124744.125-5109.29700854701-13885.827991453
114120665125469.523504274126488.875-1019.35149572649-4804.52350427351
115124075130378.478632479127822.7083333332555.7702991453-6303.47863247863
116127245131806.584401709129035.3752771.20940170941-4561.58440170939
117146731134227.805555556131205.6253022.1805555555512503.1944444444
118144979138507.65491453134702.4583333333805.196581196586471.3450854701
119148210141656.747863248138472.6253184.122863247866553.25213675218
120144670144069.254273504141410.6252658.62927350428600.745726495719
121142970144522.997863248143670.583333333852.414529914529-1552.99786324782
122142524143101.283119658145805.958333333-2704.67521367521-577.283119658096
123146142142427.254273504147227.041666667-4799.787393162393714.74572649572
124146522143037.545940171148253.958333333-5216.41239316243484.45405982909
125148128144102.702991453149212-5109.297008547014025.297008547
126148798149063.56517094150082.916666667-1019.35149572649-265.565170940128
127150181153678.686965812151122.9166666672555.7702991453-3497.68696581197
128152388155020.792735043152249.5833333332771.20940170941-2632.79273504272
129155694156517.638888889153495.4583333333022.18055555555-823.638888888876
130160662158240.77991453154435.5833333333805.196581196582421.22008547006
131155520158071.456196581154887.3333333333184.12286324786-2551.45619658119
132158262157529.670940171154871.0416666672658.62927350428732.329059829062
133154338155230.206196581154377.791666667852.414529914529-892.206196581188
134158196150819.241452991153523.916666667-2704.675213675217376.75854700856
135160371147635.420940171152435.208333333-4799.7873931623912735.5790598291
136154856145713.254273504150929.666666667-5216.41239316249142.74572649572
137150636144043.661324786149152.958333333-5109.297008547016592.33867521369
138145899146053.606837607147072.958333333-1019.35149572649-154.606837606814
139141242147127.895299145144572.1252555.7702991453-5885.89529914531
140140834144422.251068376141651.0416666672771.20940170941-3588.25106837609
141141119141388.972222222138366.7916666673022.18055555555-269.972222222248
142139104139120.65491453135315.4583333333805.19658119658-16.6549145299359
143134437135916.831196581132732.7083333333184.12286324786-1479.83119658119
144129425133270.754273504130612.1252658.62927350428-3845.75427350428
145123155129852.497863248129000.083333333852.414529914529-6697.49786324786
146119273124943.116452991127647.791666667-2704.67521367521-5670.11645299145
147120472121317.004273504126116.791666667-4799.78739316239-845.004273504281
148121523119131.795940171124348.208333333-5216.41239316242391.20405982906
149121983117557.411324786122666.708333333-5109.297008547014425.58867521367
150123658120239.481837607121258.833333333-1019.351495726493418.51816239317
151124794122938.520299145120382.752555.77029914531855.47970085472
152124827122832.751068376120061.5416666672771.209401709411994.24893162395
153120382122936.513888889119914.3333333333022.18055555555-2554.51388888888
154117395123607.821581197119802.6253805.19658119658-6212.82158119655
155115790123011.664529915119827.5416666673184.12286324786-7221.6645299145
156114283122624.712606838119966.0833333332658.62927350428-8341.7126068376
157117271120866.081196581120013.666666667852.414529914529-3595.08119658119
158117448117075.199786325119779.875-2704.67521367521372.800213675233
159118764114562.587606838119362.375-4799.787393162394201.41239316239
160120550113804.712606838119021.125-5216.41239316246745.28739316242
161123554113755.786324786118865.083333333-5109.297008547019798.21367521372
162125412117887.606837607118906.958333333-1019.351495726497524.39316239319
163124182121403.811965812118848.0416666672555.77029914532778.18803418805
164119828121328.667735043118557.4583333332771.20940170941-1500.66773504273
165115361121252.138888889118229.9583333333022.18055555555-5891.13888888888
166114226121607.696581197117802.53805.19658119658-7381.69658119659
167115214120207.164529915117023.0416666673184.12286324786-4993.16452991453
168115864118615.337606838115956.7083333332658.62927350428-2751.33760683762
169114276NA115047.25NANA
170113469NA114614.333333333NANA
171114883NA114789.125NANA
172114172NA115308.208333333NANA
173111225NANANANA
174112149NANANANA
175115618NANANANA
176118002NANANANA
177121382NANANANA
178120663NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/111v21305658308.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/111v21305658308.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/2zsth1305658308.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/2zsth1305658308.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/37lsv1305658308.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/37lsv1305658308.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/4t0hx1305658308.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305661155qg71i2leq6dtn11/4t0hx1305658308.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