Home » date » 2010 » Dec » 13 »

opgave 9 visproducten MULTIPLICATIEF

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 13 Dec 2010 11:04:02 +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/13/t1292238160vkie4a5ym9mgkfv.htm/, Retrieved Mon, 13 Dec 2010 12:02:46 +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/13/t1292238160vkie4a5ym9mgkfv.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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
96,1 96,5 96,9 97,8 98,9 100,2 101,2 101 101,6 102,4 103,7 103,7 104,6 104,5 104,5 105,6 106,1 107,6 107,7 108,3 108,1 108,1 108 108,2 108,9 109,8 109,9 109,8 110,9 111,1 112,2 112,7 114,6 114,2 114,7 114,7 116 116,3 116,4 116,6 118,1 117,2 108,3 109,5 110,5 110,6 111,2 111,1 111 112,4 112,5 112,4 111,8 111,6 112,9 112,8 113,7 113,8 114 113,8 113,9 114,4 114,4 114,5 113,8 114,3 115 115,4 115,3 114,9 114,3 114,5 115,5 115,8 115,8 116 114,9 114,1 114,1 113,5 115 114,7 115,4 116,1 116,6 117,2 118,2 118 117,7 118,5 117,5 118 117,7 116,3 115 115,7 113,6 114,8 114,9 117,3 117,3 117,7 120 119,6 119,2 117,3 117,5 119 112,5 118,9 118,4 119,4 120,6 118,6 122 122,6 120,6 117,4 116,4 122,2 121 122,4 124,9 126,1 124,5 123,2 126,4 123,9 116 126,6 125,9 126,6 116,7 126,4 129 128,7 128,4 129,2 133,3 128,9 132,7 127,7 131,8 133,9
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
196.1NANA0.986879411358426NA
296.5NANA1.00194101635727NA
396.9NANA1.00444245173066NA
497.8NANA1.00693116507260NA
598.9NANA1.00508662549837NA
6100.2NANA1.00255627399729NA
7101.2100.666308590829100.3541666666671.003110403230181.00530158914777
8101101.191905025087101.0416666666671.001486895093640.998103553589202
9101.6101.290522575395101.6916666666670.996055290424271.00305534433762
10102.4101.998320765395102.3333333333330.9967262615510921.00393809654503
11103.7102.420239476673102.9583333333330.9947736735896971.01249519167175
12103.7103.567757440794103.5666666666671.00001053209651.00127686996874
13104.6102.779378695433104.1458333333330.9868794113584261.01771387731349
14104.5104.924098183781104.7208333333331.001941016357270.995958047854386
15104.5105.763604990357105.2958333333331.004442451730660.988052553707186
16105.6106.537512811202105.8041666666671.006931165072600.991200162398537
17106.1106.761138932624106.2208333333331.005086625498370.993807307235251
18107.6106.859966854686106.58751.002556273997291.00692526085396
19107.7107.286837252148106.9541666666671.003110403230181.00385101060329
20108.3107.513791050365107.3541666666671.001486895093641.00731263349524
21108.1107.374760307736107.80.996055290424271.00675428462131
22108.1107.845781499828108.20.9967262615510921.00235724102173
23108108.007551610001108.5750.9947736735896970.999930082573961
24108.2108.921980498061108.9208333333331.00001053209650.993371581247794
25108.9107.820687688455109.2541666666670.9868794113584261.01001025252838
26109.8109.837783918166109.6251.001941016357270.999656002544679
27109.9110.568188051135110.0791666666671.004442451730660.99395677850101
28109.8111.370782403551110.6041666666671.006931165072600.98589592018974
29110.9111.702814841325111.13751.005086625498370.992812939920403
30111.1111.973003852072111.68751.002556273997290.992203443490493
31112.2112.603322389268112.2541666666671.003110403230180.996418201695027
32112.7112.988586076877112.8208333333331.001486895093640.997445882925902
33114.6112.915317860721113.36250.996055290424271.01491987244243
34114.2113.543733295029113.9166666666670.9967262615510921.00577985843804
35114.7113.901585626020114.50.9947736735896971.00700968620930
36114.7115.055378428253115.0541666666671.00001053209650.996911240194875
37116113.635052220375115.1458333333330.9868794113584261.02081178063823
38116.3115.072925728633114.851.001941016357271.01066344897027
39116.4115.054697668865114.5458333333331.004442451730661.01169271970977
40116.6115.016712330418114.2251.006931165072601.01376571836825
41118.1114.508681670841113.9291666666671.005086625498371.03136284757415
42117.2113.923811268558113.6333333333331.002556273997291.02875771706512
43108.3113.627330925899113.2751.003110403230180.953115761124644
44109.5113.072043318135112.9041666666671.001486895093640.968409137985728
45110.5112.135074549889112.5791666666670.996055290424270.985418705463458
46110.6111.874216806931112.2416666666670.9967262615510920.98861027282873
47111.2111.219841597635111.8041666666670.9947736735896970.999821600198762
48111.1111.309505643441111.3083333333331.00001053209650.998117809954953
49111109.806782503814111.2666666666670.9868794113584261.01086651907084
50112.4111.812442671237111.5958333333331.001941016357271.00525484744565
51112.5112.363628933604111.8666666666671.004442451730661.00121365843815
52112.4112.910547976808112.1333333333331.006931165072600.995478296882302
53111.8112.954985262258112.3833333333331.005086625498370.989774818175785
54111.6112.900368405519112.61251.002556273997290.988482159767196
55112.9113.196829377846112.8458333333331.003110403230180.997377758904754
56112.8113.218093490336113.051.001486895093640.996307184854938
57113.7112.765909567158113.21250.996055290424271.00828344697815
58113.8113.007992929445113.3791666666670.9967262615510921.00700841639626
59114112.95655063611113.550.9947736735896971.00923761710157
60113.8113.747031315426113.7458333333331.00001053209651.00046567091871
61113.9112.450796926745113.9458333333330.9868794113584261.01288744155543
62114.4114.363217508713114.1416666666671.001941016357271.00032162868524
63114.4114.824512940344114.3166666666671.004442451730660.996302941510718
64114.5115.222294109954114.4291666666671.006931165072600.993731299003088
65113.8115.069855036744114.48751.005086625498370.988964485647968
66114.3114.821934597348114.5291666666671.002556273997290.995454399900351
67115114.981529970260114.6251.003110403230181.00016063475364
68115.4114.920621211995114.751.001486895093641.00417139050371
69115.3114.413551026734114.8666666666670.996055290424271.00774776209033
70114.9114.611061000106114.98750.9967262615510921.00252103939509
71114.3114.494304939867115.0958333333330.9947736735896970.998302929215828
72114.5115.134545928710115.1333333333331.00001053209650.9944886573913
73115.5113.577484254713115.08750.9868794113584261.01692690904278
74115.8115.193993601443114.9708333333331.001941016357271.00526074649911
75115.8115.389511819442114.8791666666671.004442451730661.00355741326993
76116115.654435401631114.8583333333331.006931165072601.00298790614618
77114.9115.480265408823114.8958333333331.005086625498370.994975198517526
78114.1115.302326145305115.0083333333331.002556273997290.989572403389421
79114.1115.478905545195115.1208333333331.003110403230180.98805924303937
80113.5115.396327487165115.2251.001486895093640.983566829825016
81115114.928179593454115.3833333333330.996055290424271.00062491554987
82114.7115.188331626588115.5666666666670.9967262615510920.99576058078373
83115.4115.161632279234115.7666666666670.9947736735896971.00206985361399
84116.1116.067889092000116.0666666666671.00001053209651.00027665625912
85116.6114.864539487026116.3916666666670.9868794113584261.01510875785272
86117.2116.947390380068116.7208333333331.001941016357271.00216002784766
87118.2117.540692736899117.0208333333331.004442451730661.0056091830646
88118118.012332546509117.21.006931165072600.99989549781584
89117.7117.846406839683117.251.005086625498370.998757646977878
90118.5117.516304583715117.2166666666671.002556273997291.00837071434274
91117.5117.439150458174117.0751.003110403230181.00051813676775
92118117.023743691692116.851.001486895093641.00834237802954
93117.7116.152497554600116.61250.996055290424271.01332302342162
94116.3116.064620131535116.4458333333330.9967262615510921.00202800705502
95115115.791655605841116.40.9947736735896970.99316310314678
96115.7116.351225409428116.351.00001053209650.994402934673562
97113.6114.893323469857116.4208333333330.9868794113584260.988743266964536
98114.8116.817972998788116.5916666666671.001941016357270.982725492088368
99114.9117.239360001380116.7208333333331.004442451730660.980046291609303
100117.3117.634733359607116.8251.006931165072600.99715446832711
101117.3117.565820156732116.9708333333331.005086625498370.997738967359923
102117.7117.512127265907117.21251.002556273997291.00159875187748
103120117.669029925581117.3041666666671.003110403230181.01980954611331
104119.6117.603771518434117.4291666666671.001486895093641.01697418761144
105119.2117.281360217081117.7458333333330.996055290424271.01635928999602
106117.3117.59293373258117.9791666666670.9967262615510920.997508917217372
107117.5117.586393108609118.2041666666670.9947736735896970.999265279712007
108119118.380413447474118.3791666666671.00001053209651.00523386035310
109112.5116.945210245974118.50.9868794113584260.961988949896932
110118.9118.938748150078118.7083333333331.001941016357270.999674217606284
111118.4119.419837157012118.8916666666671.004442451730660.991460069103338
112119.4119.778657631907118.9541666666671.006931165072600.996838688632905
113120.6119.517363354574118.91251.005086625498371.00905840469567
114118.6119.3041966056771191.002556273997290.994097469948986
115122119.859154305967119.48751.003110403230181.01786134489626
116122.6120.165908825048119.98751.001486895093641.02025608759382
117120.6119.929207197459120.4041666666670.996055290424271.00559323969712
118117.4120.558194360694120.9541666666670.9967262615510920.973803569492377
119116.4120.761379083483121.3958333333330.9947736735896970.963884321986191
120122.2121.751282282749121.751.00001053209651.00368552764980
121121120.522648112148122.1250.9868794113584261.00396068204051
122122.4122.600007614017122.36251.001941016357270.998368616626465
123124.9122.767978662780122.2251.004442451730661.01736626570252
124126.1123.265156790971122.4166666666671.006931165072601.02299792806686
125124.5123.822484400459123.1958333333331.005086625498371.00547166859736
126123.2124.091402814014123.7751.002556273997290.992816562680413
127126.4124.164169786496123.7791666666671.003110403230181.01800704838883
128123.9123.950694716090123.7666666666671.001486895093640.999591009020113
129116123.614611772029124.1041666666670.996055290424270.93840039083671
130126.6123.976134832597124.3833333333330.9967262615510921.02116427626128
131125.9124.002683303262124.6541666666670.9947736735896971.01530061000452
132126.6125.067983880869125.0666666666671.00001053209651.01224946682270
133116.7123.956166064166125.6041666666670.9868794113584260.941461838530812
134126.4126.344762162652126.11.001941016357271.00043719926653
135129127.568376546677127.0041666666671.004442451730661.01122240081812
136128.7128.631260791504127.7458333333331.006931165072601.00053438960384
137128.4128.688778812247128.03751.005086625498370.99775599073274
138129.2128.916204882626128.58751.002556273997291.00220139211849
139133.3NANA1.00311040323018NA
140128.9NANA1.00148689509364NA
141132.7NANA0.99605529042427NA
142127.7NANA0.996726261551092NA
143131.8NANA0.994773673589697NA
144133.9NANA1.0000105320965NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/1k0ne1292238238.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/1k0ne1292238238.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/2k0ne1292238238.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/2k0ne1292238238.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/3u9mh1292238238.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/3u9mh1292238238.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/4504k1292238238.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292238160vkie4a5ym9mgkfv/4504k1292238238.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