| cd middengeschoold | *The author of this computation has been verified* | R Software Module: /rwasp_decompose.wasp (opens new window with default values) | Title produced by software: Classical Decomposition | Date of computation: Tue, 21 Dec 2010 19:12:54 +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/21/t1292958662kksv6dy9yxcdfx0.htm/, Retrieved Tue, 21 Dec 2010 20:11:02 +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/21/t1292958662kksv6dy9yxcdfx0.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: | | | Dataseries X: | » Textbox « » Textfile « » CSV « | 56190
54300
51362
49802
48088
46696
56586
64148
56449
52538
49359
49583
51050
49610
48321
47692
46243
46248
56381
62329
60673
58393
55742
57135
57961
56571
55615
53494
52623
52820
66825
70695
65660
63238
61741
63642
65521
64006
62728
62438
61109
63422
78094
82030
75892
72431
69194
71171
72545
71503
69624
67407
66103
67466
81088
86781
79964
80407
76589
78083
78000
76431
75461
73739
71988
72929
85785
89261
84012
80924
76588
77546
73054
73430
71093
72202
70872
70452
80506
80400
77613
69056
65321
64018
64767
61099
58329
56396
54656
55259
66912
66631
59907
56274
54045
55792
55499
53216
52259
51257
48150
51125
61046
61022
56742
54485
53862
58228
61951
62874
64013
62937
61897
65267
75228
76161
71480
69070
68293
74685
72664
71965
69238
67738
65187
66170
77309
77134
70957
67749
65081 | | Output produced by software: |
Classical Decomposition by Moving Averages | t | Observations | Fit | Trend | Seasonal | Random | 1 | 56190 | NA | NA | 1.00001658705932 | NA | 2 | 54300 | NA | NA | 0.976674749992057 | NA | 3 | 51362 | NA | NA | 0.955370640867374 | NA | 4 | 49802 | NA | NA | 0.935631302717949 | NA | 5 | 48088 | NA | NA | 0.908535021609219 | NA | 6 | 46696 | NA | NA | 0.925260375408362 | NA | 7 | 56586 | 58236.4362937759 | 52710.9166666667 | 1.10482685516648 | 0.971659730594603 | 8 | 64148 | 59665.8142943571 | 52301.3333333333 | 1.1408086657005 | 1.07512150397429 | 9 | 56449 | 55305.8960007045 | 51979.2083333333 | 1.06400035271868 | 1.02066875472519 | 10 | 52538 | 52466.5839974659 | 51764.5833333333 | 1.01356140857180 | 1.00136117118922 | 11 | 49359 | 50204.5514337949 | 51599.7916666667 | 0.972960351431552 | 0.983157872948832 | 12 | 49583 | 51625.4749741473 | 51504.25 | 1.0023536887567 | 0.960436684114381 | 13 | 51050 | 51477.8955194103 | 51477.0416666667 | 1.00001658705932 | 0.991687781423602 | 14 | 49610 | 50193.960562873 | 51392.7083333333 | 0.976674749992057 | 0.988365919797432 | 15 | 48321 | 49194.8207959636 | 51492.9166666667 | 0.955370640867374 | 0.982237544891407 | 16 | 47692 | 48571.310864084 | 51912.875 | 0.935631302717949 | 0.98189649716178 | 17 | 46243 | 47627.9421596906 | 52422.7916666667 | 0.908535021609219 | 0.970921646057118 | 18 | 46248 | 49041.9612029258 | 53003.4166666667 | 0.925260375408362 | 0.943029170645012 | 19 | 56381 | 59225.3944325067 | 53606.0416666667 | 1.10482685516648 | 0.951973398239699 | 20 | 62329 | 61813.6242760103 | 54184.0416666667 | 1.1408086657005 | 1.00833757492828 | 21 | 60673 | 58283.8113212239 | 54778 | 1.06400035271868 | 1.04099232058810 | 22 | 58393 | 56073.9335140236 | 55323.6666666667 | 1.01356140857180 | 1.04135729991898 | 23 | 55742 | 54321.5926208629 | 55831.25 | 0.972960351431552 | 1.02614811736193 | 24 | 57135 | 56503.5962594299 | 56370.9166666667 | 1.0023536887567 | 1.01117457617514 | 25 | 57961 | 57080.8634546303 | 57079.9166666667 | 1.00001658705932 | 1.01541911758341 | 26 | 56571 | 56513.9821752904 | 57863.6666666667 | 0.976674749992057 | 1.00100891536068 | 27 | 55615 | 55812.792646582 | 58420.0416666667 | 0.955370640867374 | 0.996456141375429 | 28 | 53494 | 55042.9166464336 | 58829.7083333333 | 0.935631302717949 | 0.971859836999862 | 29 | 52623 | 53859.3567391528 | 59281.5416666667 | 0.908535021609219 | 0.977044717686833 | 30 | 52820 | 55332.9992579055 | 59802.625 | 0.925260375408362 | 0.954584076561755 | 31 | 66825 | 66719.1127499349 | 60388.75 | 1.10482685516648 | 1.00158706022459 | 32 | 70695 | 69604.7770584119 | 61013.5416666667 | 1.1408086657005 | 1.01566304767664 | 33 | 65660 | 65563.3914010889 | 61619.7083333333 | 1.06400035271868 | 1.00147351436292 | 34 | 63238 | 63133.473188177 | 62288.75 | 1.01356140857180 | 1.00165564805078 | 35 | 61741 | 61311.0965454593 | 63015 | 0.972960351431552 | 1.00701183764055 | 36 | 63642 | 63960.5229974613 | 63810.3333333333 | 1.0023536887567 | 0.995020006364332 | 37 | 65521 | 64722.698541433 | 64721.625 | 1.00001658705932 | 1.01233418069019 | 38 | 64006 | 64131.8417513222 | 65663.4583333333 | 0.976674749992057 | 0.998037764893605 | 39 | 62728 | 63591.4602116342 | 66562.0833333333 | 0.955370640867374 | 0.986421758381384 | 40 | 62438 | 63034.8453264247 | 67371.4583333333 | 0.935631302717949 | 0.990531501690312 | 41 | 61109 | 61839.4741014574 | 68065.0416666667 | 0.908535021609219 | 0.98818757578276 | 42 | 63422 | 63555.4797940345 | 68689.2916666667 | 0.925260375408362 | 0.997899790946948 | 43 | 78094 | 76559.7134799982 | 69295.6666666667 | 1.10482685516648 | 1.02004039004669 | 44 | 82030 | 79743.3338052699 | 69900.7083333333 | 1.1408086657005 | 1.0286753272733 | 45 | 75892 | 75012.4682001473 | 70500.4166666667 | 1.06400035271868 | 1.01172514144590 | 46 | 72431 | 71957.5810429284 | 70994.7916666667 | 1.01356140857180 | 1.00657913940699 | 47 | 69194 | 69479.0176156979 | 71409.9166666667 | 0.972960351431552 | 0.995897788634918 | 48 | 71171 | 71955.4630779329 | 71786.5 | 1.0023536887567 | 0.98909793580116 | 49 | 72545 | 72080.9455910889 | 72079.75 | 1.00001658705932 | 1.00643796228123 | 50 | 71503 | 70713.6528915186 | 72402.4583333333 | 0.976674749992057 | 1.01116258425643 | 51 | 69624 | 69522.4011501388 | 72770.0833333333 | 0.955370640867374 | 1.00146138292378 | 52 | 67407 | 68555.6547820248 | 73272.0833333333 | 0.935631302717949 | 0.983244930185891 | 53 | 66103 | 67152.1326403173 | 73912.5416666667 | 0.908535021609219 | 0.984376778531567 | 54 | 67466 | 68939.9168911765 | 74508.6666666667 | 0.925260375408362 | 0.978620268813159 | 55 | 81088 | 82888.4839475578 | 75023.9583333333 | 1.10482685516648 | 0.978278237677782 | 56 | 86781 | 86081.5241508186 | 75456.5833333333 | 1.1408086657005 | 1.00812573727152 | 57 | 79964 | 80763.0797731556 | 75905.125 | 1.06400035271868 | 0.990105877891235 | 58 | 80407 | 77448.4232786901 | 76412.1666666667 | 1.01356140857180 | 1.03820060623654 | 59 | 76589 | 74841.2858925397 | 76921.2083333333 | 0.972960351431552 | 1.02335227256744 | 60 | 78083 | 77576.2031523731 | 77394.0416666667 | 1.0023536887567 | 1.00653289059058 | 61 | 78000 | 77818.6657614151 | 77817.375 | 1.00001658705932 | 1.00233021521007 | 62 | 76431 | 76294.331718192 | 78116.4166666667 | 0.976674749992057 | 1.00179132943077 | 63 | 75461 | 74889.991867412 | 78388.4166666666 | 0.955370640867374 | 1.0076246253785 | 64 | 73739 | 73520.6212745352 | 78578.625 | 0.935631302717949 | 1.00297030576836 | 65 | 71988 | 71410.9662653623 | 78600.125 | 0.908535021609219 | 1.00808046389533 | 66 | 72929 | 72704.8399112288 | 78577.7083333333 | 0.925260375408362 | 1.00308315222267 | 67 | 85785 | 86562.3554821525 | 78349.25 | 1.10482685516648 | 0.991019705068992 | 68 | 89261 | 89003.7530817049 | 78018.125 | 1.1408086657005 | 1.00289029293022 | 69 | 84012 | 82684.6200768175 | 77711.0833333333 | 1.06400035271868 | 1.01605352872093 | 70 | 80924 | 78515.5767467401 | 77465.0416666667 | 1.01356140857180 | 1.03067446426622 | 71 | 76588 | 75262.861504812 | 77354.5 | 0.972960351431552 | 1.01760680458719 | 72 | 77546 | 77386.5077167759 | 77204.7916666667 | 1.0023536887567 | 1.00206098308258 | 73 | 73054 | 76882.9002400744 | 76881.625 | 1.00001658705932 | 0.950198285599031 | 74 | 73430 | 74512.9176689877 | 76292.4583333333 | 0.976674749992057 | 0.98546671231157 | 75 | 71093 | 72280.1183121126 | 75656.625 | 0.955370640867374 | 0.983576143207369 | 76 | 72202 | 70074.5742327121 | 74895.5 | 0.935631302717949 | 1.03035945334784 | 77 | 70872 | 67169.3948057279 | 73931.5416666667 | 0.908535021609219 | 1.05512339667465 | 78 | 70452 | 67450.0163716752 | 72898.4166666667 | 0.925260375408362 | 1.04450678872756 | 79 | 80506 | 79535.8868555552 | 71989.4583333333 | 1.10482685516648 | 1.01219717517209 | 80 | 80400 | 81146.1481945263 | 71130.375 | 1.1408086657005 | 0.990804884629427 | 81 | 77613 | 74570.1987202005 | 70084.75 | 1.06400035271868 | 1.04080452153838 | 82 | 69056 | 69828.6375359487 | 68894.3333333333 | 1.01356140857180 | 0.98893523397831 | 83 | 65321 | 65733.282422745 | 67560.0833333333 | 0.972960351431552 | 0.99372795017152 | 84 | 64018 | 66407.3101164535 | 66251.375 | 1.0023536887567 | 0.964020374981858 | 85 | 64767 | 65052.9956866672 | 65051.9166666667 | 1.00001658705932 | 0.995603650782745 | 86 | 61099 | 62421.0331475861 | 63911.7916666667 | 0.976674749992057 | 0.978820710249055 | 87 | 58329 | 59806.5205751779 | 62600.3333333333 | 0.955370640867374 | 0.975294991901082 | 88 | 56396 | 57382.2677956918 | 61330 | 0.935631302717949 | 0.982812324545914 | 89 | 54656 | 54809.722227382 | 60327.5833333333 | 0.908535021609219 | 0.99719534744686 | 90 | 55259 | 55066.8712424287 | 59515 | 0.925260375408362 | 1.00348900805941 | 91 | 66912 | 64948.4435767214 | 58786.0833333333 | 1.10482685516648 | 1.03023254007556 | 92 | 66631 | 66248.4228965322 | 58071.4583333333 | 1.1408086657005 | 1.00577488620469 | 93 | 59907 | 61169.468944493 | 57490.0833333333 | 1.06400035271868 | 0.979361126289349 | 94 | 56274 | 57796.3544327153 | 57023.0416666667 | 1.01356140857180 | 0.973660026697919 | 95 | 54045 | 55009.0701891785 | 56537.8333333333 | 0.972960351431552 | 0.982474341306569 | 96 | 55792 | 56226.5289939628 | 56094.5 | 1.0023536887567 | 0.99227181542703 | 97 | 55499 | 55678.7568648575 | 55677.8333333333 | 1.00001658705932 | 0.996771535950527 | 98 | 53216 | 53912.1613360928 | 55199.7083333333 | 0.976674749992057 | 0.98708711877172 | 99 | 52259 | 52386.9131426517 | 54834.125 | 0.955370640867374 | 0.997558299678713 | 100 | 51257 | 51111.3939124128 | 54627.7083333333 | 0.935631302717949 | 1.00284879899454 | 101 | 48150 | 49556.5348768115 | 54545.5416666667 | 0.908535021609219 | 0.971617570108404 | 102 | 51125 | 50555.6871770939 | 54639.4166666666 | 0.925260375408362 | 1.01126110344246 | 103 | 61046 | 60776.2490959944 | 55009.75 | 1.10482685516648 | 1.00443842632637 | 104 | 61022 | 63521.3673148696 | 55681 | 1.1408086657005 | 0.9606531247591 | 105 | 56742 | 60193.869287746 | 56573.1666666667 | 1.06400035271868 | 0.942654138559444 | 106 | 54485 | 58330.0367460538 | 57549.5833333333 | 1.01356140857180 | 0.934081359098169 | 107 | 53862 | 57024.2737770665 | 58609.0416666667 | 0.972960351431552 | 0.94454512845829 | 108 | 58228 | 59911.7658601508 | 59771.0833333333 | 1.0023536887567 | 0.971895906655779 | 109 | 61951 | 60952.2610019993 | 60951.25 | 1.00001658705932 | 1.01638559393175 | 110 | 62874 | 60722.7585364749 | 62172.9583333333 | 0.976674749992057 | 1.03542726838131 | 111 | 64013 | 60587.536074087 | 63417.8333333333 | 0.955370640867374 | 1.05653743571490 | 112 | 62937 | 60478.8565459497 | 64639.625 | 0.935631302717949 | 1.04064467475807 | 113 | 61897 | 59825.7819373124 | 65848.625 | 0.908535021609219 | 1.03462082726905 | 114 | 65267 | 62117.933590775 | 67135.625 | 0.925260375408362 | 1.05069496403359 | 115 | 75228 | 75423.9975073393 | 68267.7083333333 | 1.10482685516648 | 0.9974013906208 | 116 | 76161 | 78821.7505381615 | 69092.875 | 1.1408086657005 | 0.966243447779388 | 117 | 71480 | 74149.5195807444 | 69689.375 | 1.06400035271868 | 0.963998154056313 | 118 | 69070 | 71057.8763659195 | 70107.125 | 1.01356140857180 | 0.972024545798656 | 119 | 68293 | 68539.4622363321 | 70444.25 | 0.972960351431552 | 0.996404082724164 | 120 | 74685 | 70785.1733815724 | 70618.9583333333 | 1.0023536887567 | 1.05509383437412 | 121 | 72664 | NA | 70743.2916666667 | NA | NA | 122 | 71965 | NA | 70870.5416666667 | NA | NA | 123 | 69238 | NA | 70889.2916666667 | NA | NA | 124 | 67738 | NA | 70812.4583333333 | NA | NA | 125 | 65187 | NA | 70623.5833333333 | NA | NA | 126 | 66170 | NA | NA | NA | NA | 127 | 77309 | NA | NA | NA | NA | 128 | 77134 | NA | NA | NA | NA | 129 | 70957 | NA | NA | NA | NA | 130 | 67749 | NA | NA | NA | NA | 131 | 65081 | NA | NA | NA | NA |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/1ysr11292958770.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/1ysr11292958770.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/2ysr11292958770.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/2ysr11292958770.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/39jqm1292958770.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/39jqm1292958770.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/49jqm1292958770.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292958662kksv6dy9yxcdfx0/49jqm1292958770.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
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
|