Home » date » 2011 » May » 17 »

Opgave 9 - Geboortes multiplicatief- 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:37 +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/t13056611099zxnk6l7r68vhdx.htm/, Retrieved Tue, 17 May 2011 21:38:31 +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 time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1131676NANA1.00663069007636NA
2135050NANA0.981013713305289NA
3129070NANA0.965819487063348NA
4137792NANA0.961816267649071NA
5139762NANA0.96260146386609NA
6142917NANA0.994333343012675NA
7144198141837.664821308139104.7916666671.019646146778251.0166411029233
8142648142159.916881708139155.2916666671.021591886151471.00343333851763
9152170142356.085337403139270.5833333331.02215472880361.06893920017073
10136022143045.466302881139442.51.025838365655240.950900462039044
11138142141552.700798646138570.3333333331.021522409548790.975905081433254
12138135139025.027565444136696.8751.01703149808980.993598076684248
13135027135563.751948547134670.7916666671.006630690076360.996040593884192
14132911130753.636142039133284.2083333330.9810137133052891.01649945593572
15133976127512.478749453132025.1666666670.9658194870633481.05068932322496
16137012126081.12816918131086.50.9618162676490711.08669712897994
17119610125962.698564787130856.5416666670.962601463866090.949566827027607
18118106129528.697302564130266.8750.9943333430126750.91181338544707
19120383132248.445119188129700.3333333331.019646146778250.910279133274537
20133185132068.930194603129277.5833333331.021591886151471.00845066136109
21131416131854.425063895128996.5416666671.02215472880360.996674930980268
22134248132607.005269891129266.9583333331.025838365655241.01237487210249
23134397133400.18582864130589.5833333331.021522409548791.00747235969102
24127728135236.373353498132971.6666666671.01703149808980.94447963098011
25131837136201.788034274135304.6251.006630690076360.967953518839449
26125955134303.393388063136902.6666666670.9810137133052890.93783929670384
27134187133358.906044476138078.50.9658194870633481.00620951371067
28143291134227.551653456139556.3333333330.9618162676490711.06752301025309
29145074136053.40906013141339.2916666670.962601463866091.06630183691967
30149812142612.79831882143425.5416666670.9943333430126751.05048075464507
31144668148570.133416948145707.5416666671.019646146778250.973735411504293
32147253151229.524514303148033.2083333331.021591886151470.973705369192462
33145568153452.597073295150126.5833333331.02215472880360.948618679490129
34155564155484.56860849151568.2916666671.025838365655241.00051086350382
35155872156186.77545724152896.0833333331.021522409548790.997984621576836
36156323156573.736559734153951.7083333331.01703149808980.998398603972522
37158010156183.700832908155154.9166666671.006630690076361.01169327629806
38155598153984.531379965156964.7083333330.9810137133052891.0104781214423
39154785153571.978694524159006.9166666670.9658194870633481.00789871508974
40157294154757.880567526160901.7083333330.9618162676490711.01638765937588
41162938156409.461999717162486.2083333330.962601463866091.04174004511501
42157283163094.656545979164024.1250.9943333430126750.964366358352516
43166074168548.570193848165301.0416666671.019646146778250.985318355468681
44169282170189.631426345166592.5833333331.021591886151470.994666940525467
45172552171716.798485801167994.9166666671.02215472880361.00486383115434
46174055173740.473650221169364.3751.025838365655241.00181032285207
47175409174258.145333664170586.7083333331.021522409548791.00660430916519
48173696174705.246978742171779.5833333331.01703149808980.99422314443215
49171283174008.823492162172862.6251.006630690076360.984335142106833
50173322170165.085438223173458.4166666670.9810137133052891.01855206991286
51170717167769.847094185173707.250.9658194870633481.0175666423786
52174229167161.022322673173797.250.9618162676490711.04228245065219
53175339167302.781573952173802.750.962601463866091.04803397977275
54173511172918.959988836173904.4166666670.9943333430126751.00342380043925
55175839177658.556206982174235.51.019646146778250.989758127917788
56173816178531.61023803174758.251.021591886151470.973586692957384
57173990179208.170493202175323.9166666671.02215472880360.970882072626257
58174777180455.098672618175909.8751.025838365655240.968534562257402
59174819180265.505807052176467.51.021522409548790.969786200733924
60176726180076.953093778177061.3333333331.01703149808980.981391549355943
61176199179116.299841828177936.4583333331.006630690076360.983712817625175
62180952175711.655222108179112.3333333330.9810137133052891.02982354682885
63176663174290.899300922180459.0833333330.9658194870633481.01361000894822
64182346174956.262642224181901.9583333330.9618162676490711.04223762697131
65180605176579.973507145183440.3750.962601463866091.02279435438183
66182497184089.30076424185138.4166666670.9943333430126750.991350389416279
67187856190526.872946629186855.8751.019646146778250.985981647075176
68190020192145.641677184188084.5416666671.021591886151470.988937341182292
69190108193316.887035318189126.8333333331.02215472880360.983400896401091
70193288194813.843763225189906.9583333331.025838365655240.992167683087866
71193230194386.733652618190291.2083333331.021522409548790.994049317919578
72199068193819.336953842190573.5833333331.01703149808981.02708018265179
73195076191714.073213406190451.251.006630690076361.01753615021705
74191563186053.910543486189654.750.9810137133052891.02961017825651
75191067182019.46732136188461.1666666670.9658194870633481.04970640125359
76186665179798.286187636186936.2083333330.9618162676490711.03819120837002
77185508178139.22744503185060.2083333330.962601463866091.04136524369538
78184371181868.291520398182904.750.9943333430126751.01376110403127
79183046183623.86853294180085.8751.019646146778250.996852977025498
80175714179463.983099457175670.9166666671.021591886151470.979104536549938
81175768172791.977491161169046.7916666671.02215472880361.01722315209334
82171029165220.92876672161059.4166666671.025838365655241.03515336269221
83170465155994.303609908152707.6666666671.021522409548791.09276426161226
84170102148672.927366824146183.2083333331.01703149808981.14413567427985
85156389144009.970639524143061.3751.006630690076361.08595952978466
86124291139032.983126622141723.7916666670.9810137133052890.893967727692386
8799360135418.717313032140211.2083333330.9658194870633480.733724273656504
8886675133334.02434081138627.3333333330.9618162676490710.6500591310321
8985056132155.31432381137289.750.962601463866090.643606353896553
90128236135103.551481833135873.50.9943333430126750.949168238684264
91164257137503.658874427134854.2916666671.019646146778251.19456457627796
92162401138292.638230353135369.751.021591886151471.17432859824028
93152779141201.604161138141.1251.02215472880361.08199195687465
94156005146218.170651526142535.2916666671.025838365655241.0669330583529
95153387150884.350573308147705.3751.021522409548791.01658654073257
96153190153800.461169693151224.8751.01703149808980.996030823542074
97148840152178.107602367151175.7083333331.006630690076360.978064468963638
98144211146340.145521319149172.3750.9810137133052890.985450707912486
99145953142114.180422142147143.6250.9658194870633481.02701222050084
100145542139491.532010622145029.2916666670.9618162676490711.04337516336775
101150271137296.087441586142630.250.962601463866091.0945031486344
102147489139519.675872044140314.7916666670.9943333430126751.05711971503765
103143824141100.035804627138381.3751.019646146778251.01930519847029
104134754139808.765722059136853.8333333331.021591886151470.96384514450183
105131736137603.662105391134621.1666666671.02215472880360.957358241665855
106126304134562.33868136131173.0416666671.025838365655240.938628157311418
107125511130095.390580015127354.4166666671.021522409548790.964761314297335
108125495126500.072784906124381.6666666671.01703149808980.992054765165114
109130133123252.994152476122441.1251.006630690076361.05582019240046
110126257119002.236372641121305.3750.9810137133052891.06096325454458
111110323117460.350255534121617.2916666670.9658194870633480.939236089114273
11298417118322.837624578123020.2083333330.9618162676490710.831766732236964
113105749120078.877333695124744.1250.962601463866090.88066279722226
114120665125772.105932662126488.8750.9943333430126750.959393969793296
115124075130333.932022844127822.7083333331.019646146778250.9519777242526
116127245131821.492126512129035.3751.021591886151470.965282655713533
117146731134112.450039382131205.6251.02215472880361.09408932546465
118144979138182.94970641134702.4583333331.025838365655241.04918154018299
119148210141452.889546547138472.6251.021522409548791.04776933490093
120144670143819.059789565141410.6251.01703149808981.0059167415757
121142970144623.218444507143670.5833333331.006630690076360.988568789560291
122142524143037.64460662145805.9583333330.9810137133052890.996409024994559
123146142142194.745864354147227.0416666670.9658194870633481.02775949358503
124146522142593.068868368148253.9583333330.9618162676490711.02755345096934
125148128143631.6896263871492120.962601463866091.03130444531641
126148798149232.448258259150082.9166666670.9943333430126750.997088781539605
127150181154091.899669058151122.9166666671.019646146778250.974619693329389
128152388155536.939003275152249.5833333331.021591886151470.979754397743364
129155694156896.108585293153495.4583333331.02215472880360.992338187376778
130160662158425.94640568154435.5833333331.025838365655241.01411418801687
131155520158220.881955254154887.3333333331.021522409548790.982929674503913
132158262157508.727516978154871.0416666671.01703149808981.00478241742472
133154338155401.422957882154377.7916666671.006630690076360.993156929083139
134158196150609.067570338153523.9166666670.9810137133052891.05037500432116
135160371147224.894722895152435.2083333330.9658194870633481.08929267908019
136154856145166.608670852150929.6666666670.9618162676490711.06674669483475
137150636143574.856031625149152.9583333330.962601463866091.04918092320302
138145899146239.546326347147072.9583333330.9943333430126750.997671311660204
139141242147412.410187794144572.1251.019646146778250.958141854000397
140140834144709.55483157141651.0416666671.021591886151470.973218390201802
141141119141432.270411467138366.7916666671.02215472880360.997785014618268
142139104138811.788624557135315.4583333331.025838365655241.00210509048503
143134437135589.436042604132732.7083333331.021522409548790.991500546972981
144129425132836.645157442130612.1251.01703149808980.974316987956156
145123155129855.442905742129000.0833333331.006630690076360.948400754286399
146119273125224.234098137127647.7916666670.9810137133052890.952475380336743
147120472121806.055037575126116.7916666670.9658194870633480.989047711649773
148121523119600.129628016124348.2083333330.9618162676490711.01607749404591
149121983118079.153009301122666.7083333330.962601463866091.03306127196213
150123658120571.70111815121258.8333333330.9943333430126751.02559720774633
151124794122747.80717607120382.751.019646146778251.01666989310037
152124827122653.896805503120061.5416666671.021591886151471.01771735958738
153120382122571.002867998119914.3333333331.02215472880360.98214094021605
154117395122898.129031208119802.6251.025838365655240.95522202758831
155115790122406.519093642119827.5416666671.021522409548790.945946350385307
156114283122009.285452466119966.0833333331.01703149808980.936674611085432
157117271120809.440095261120013.6666666671.006630690076360.970710566223374
158117448117505.699952993119779.8750.9810137133052890.999508960390718
159118764115282.507797163119362.3750.9658194870633481.03019965708035
160120550114476.454218894119021.1250.9618162676490711.05305497818349
161123554114419.703219231118865.0833333330.962601463866091.0798315021257
162125412118233.153387052118906.9583333330.9943333430126751.06071771247991
163124182121182.947737558118848.0416666671.019646146778251.02474813757573
164119828121117.337476074118557.4583333331.021591886151470.989354641515888
165115361120849.31099667118229.9583333331.02215472880360.954585500311036
166114226120846.324070102117802.51.025838365655240.945217000839338
167115214119541.659496062117023.0416666671.021522409548790.963797896780871
168115864117931.624789812115956.7083333331.01703149808980.982467596851165
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/t13056611099zxnk6l7r68vhdx/1rgo61305658292.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t13056611099zxnk6l7r68vhdx/1rgo61305658292.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t13056611099zxnk6l7r68vhdx/20w461305658292.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t13056611099zxnk6l7r68vhdx/20w461305658292.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t13056611099zxnk6l7r68vhdx/3qsxh1305658292.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t13056611099zxnk6l7r68vhdx/3qsxh1305658292.ps (open in new window)


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