Home » date » 2010 » Jul » 30 »

Decompositie omzet product x

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 30 Jul 2010 13:21:57 +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/Jul/30/t1280496181blpkby4hf9fb6c8.htm/, Retrieved Fri, 30 Jul 2010 15:23:07 +0200
 
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/Jul/30/t1280496181blpkby4hf9fb6c8.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 «
56 55 54 52 72 71 56 46 47 47 48 50 44 38 33 33 52 54 39 22 31 31 38 42 41 31 36 34 51 47 31 19 30 33 36 40 32 25 28 29 55 55 40 38 44 41 49 59 61 47 43 39 66 68 63 68 67 59 68 78 82 70 62 68 94 102 100 104 103 93 110 114 120 102 95 103 122 139 135 135 137 130 148 148 145 128 131 133 146 163 151 157 152 149 172 167 160 150 160 165 171 179 171 176 170 169 194 196 188 174 186 191 197 206 197 204 201 190 213 213
 
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
156NANA3.88271604938272NA
255NANA-9.50154320987654NA
354NANA-9.945987654321NA
452NANA-8.98765432098766NA
572NANA7.25308641975309NA
671NANA12.2901234567901NA
75655.4984567901235541.498456790123450.501543209876544
84650.794753086419752.7916666666667-1.99691358024692-4.79475308641975
94749.827160493827251.2083333333333-1.38117283950618-2.82716049382716
104743.683641975308649.5416666666667-5.858024691358023.31635802469135
114853.169753086419847.91666666666675.25308641975309-5.16975308641975
125053.868827160493846.3757.49382716049383-3.86882716049383
134448.841049382716144.95833333333333.88271604938272-4.84104938271606
143833.748456790123543.25-9.501543209876544.25154320987654
153331.637345679012341.5833333333333-9.9459876543211.36265432098766
163331.262345679012340.25-8.987654320987661.73765432098766
175246.419753086419739.16666666666677.253086419753095.58024691358025
185450.706790123456838.416666666666712.29012345679013.29320987654321
193939.456790123456837.95833333333331.49845679012345-0.456790123456784
202235.544753086419737.5416666666667-1.99691358024692-13.5447530864197
213135.993827160493837.375-1.38117283950618-4.99382716049382
223131.683641975308637.5416666666667-5.85802469135802-0.683641975308646
233842.794753086419837.54166666666675.25308641975309-4.79475308641975
244244.702160493827237.20833333333337.49382716049383-2.70216049382716
254140.466049382716136.58333333333333.882716049382720.533950617283942
263126.623456790123536.125-9.501543209876544.37654320987654
273626.012345679012335.9583333333333-9.9459876543219.98765432098767
283427.012345679012336-8.987654320987666.98765432098767
295143.2530864197531367.253086419753097.7469135802469
304748.123456790123535.833333333333312.2901234567901-1.12345679012346
313136.873456790123535.3751.49845679012345-5.87345679012346
321932.753086419753134.75-1.99691358024692-13.7530864197531
333032.785493827160534.1666666666667-1.38117283950618-2.78549382716049
343327.76697530864233.625-5.858024691358025.23302469135803
353638.836419753086433.58333333333335.25308641975309-2.83641975308642
364041.577160493827234.08333333333337.49382716049383-1.57716049382717
373238.674382716049434.79166666666673.88271604938272-6.67438271604938
382526.456790123456835.9583333333333-9.50154320987654-1.45679012345679
392827.387345679012337.3333333333333-9.9459876543210.612654320987666
402929.262345679012338.25-8.98765432098766-0.262345679012341
415546.378086419753139.1257.253086419753098.62191358024691
425552.748456790123540.458333333333312.29012345679012.25154320987654
434043.956790123456842.45833333333331.49845679012345-3.95679012345679
443842.586419753086444.5833333333333-1.99691358024692-4.58641975308642
454444.743827160493846.125-1.38117283950618-0.743827160493822
464141.308641975308747.1666666666667-5.85802469135802-0.30864197530866
474953.294753086419848.04166666666675.25308641975309-4.29475308641975
485956.535493827160549.04166666666677.493827160493832.46450617283951
496154.424382716049450.54166666666673.882716049382726.57561728395062
504743.248456790123552.75-9.501543209876543.75154320987654
514345.012345679012354.9583333333333-9.945987654321-2.01234567901234
523947.67901234567956.6666666666667-8.98765432098766-8.67901234567901
536665.461419753086458.20833333333337.253086419753090.538580246913583
546872.081790123456859.791666666666712.2901234567901-4.08179012345679
556362.956790123456861.45833333333331.498456790123450.0432098765432158
566861.294753086419763.2916666666667-1.996913580246926.70524691358025
576763.660493827160565.0416666666667-1.381172839506183.33950617283952
585961.183641975308667.0416666666667-5.85802469135802-2.18364197530863
596874.669753086419769.41666666666675.25308641975309-6.66975308641975
607879.4938271604938727.49382716049383-1.49382716049381
618278.84104938271674.95833333333333.882716049382723.15895061728395
627068.498456790123578-9.501543209876541.50154320987654
636271.05401234567981-9.945987654321-9.05401234567901
646874.92901234567983.9166666666667-8.98765432098766-6.929012345679
659494.336419753086487.08333333333337.25308641975309-0.336419753086403
66102102.62345679012390.333333333333312.2901234567901-0.623456790123456
6710094.915123456790193.41666666666671.498456790123455.08487654320987
6810494.336419753086496.3333333333333-1.996913580246929.66358024691357
6910397.660493827160599.0416666666667-1.381172839506185.33950617283952
709396.016975308642101.875-5.85802469135802-3.01697530864196
71110109.753086419753104.55.253086419753090.246913580246911
72114114.702160493827107.2083333333337.49382716049383-0.702160493827151
73120114.091049382716110.2083333333333.882716049382725.90895061728394
74102103.456790123457112.958333333333-9.50154320987654-1.45679012345678
7595105.720679012346115.666666666667-9.945987654321-10.7206790123457
76103109.637345679012118.625-8.98765432098766-6.63734567901234
77122129.003086419753121.757.25308641975309-7.00308641975309
78139137.04012345679124.7512.29012345679011.95987654320987
79135128.706790123457127.2083333333331.498456790123456.29320987654323
80135127.336419753086129.333333333333-1.996913580246927.6635802469136
81137130.535493827160131.916666666667-1.381172839506186.46450617283952
82130128.808641975309134.666666666667-5.858024691358021.19135802469140
83148142.169753086420136.9166666666675.253086419753095.83024691358025
84148146.410493827160138.9166666666677.493827160493831.58950617283952
85145144.466049382716140.5833333333333.882716049382720.533950617283978
86128132.665123456790142.166666666667-9.50154320987654-4.66512345679013
87131133.762345679012143.708333333333-9.945987654321-2.76234567901236
88133136.137345679012145.125-8.98765432098766-3.13734567901236
89146154.169753086420146.9166666666677.25308641975309-8.16975308641975
90163160.998456790123148.70833333333312.29012345679012.00154320987656
91151151.623456790123150.1251.49845679012345-0.623456790123413
92157149.669753086420151.666666666667-1.996913580246927.33024691358025
93152152.410493827161153.791666666667-1.38117283950618-0.410493827160508
94149150.475308641975156.333333333333-5.85802469135802-1.47530864197529
95172163.961419753086158.7083333333335.253086419753098.03858024691357
96167167.910493827160160.4166666666677.49382716049383-0.91049382716048
97160165.799382716049161.9166666666673.88271604938272-5.79938271604937
98150154.04012345679163.541666666667-9.50154320987654-4.0401234567901
99160155.137345679012165.083333333333-9.9459876543214.86265432098767
100165157.679012345679166.666666666667-8.987654320987667.32098765432096
101171175.669753086420168.4166666666677.25308641975309-4.66975308641975
102179182.831790123457170.54166666666712.2901234567901-3.83179012345681
103171174.41512345679172.9166666666671.49845679012345-3.41512345679013
104176173.086419753086175.083333333333-1.996913580246922.91358024691357
105170175.785493827160177.166666666667-1.38117283950618-5.78549382716048
106169173.475308641975179.333333333333-5.85802469135802-4.47530864197529
107194186.753086419753181.55.253086419753097.24691358024694
108196191.202160493827183.7083333333337.493827160493834.79783950617286
109188189.799382716049185.9166666666673.88271604938272-1.79938271604934
110174178.66512345679188.166666666667-9.50154320987654-4.66512345679013
111186180.679012345679190.625-9.9459876543215.32098765432096
112191183.804012345679192.791666666667-8.987654320987667.19598765432102
113197201.711419753086194.4583333333337.25308641975309-4.71141975308643
114206208.248456790123195.95833333333312.2901234567901-2.24845679012341
115197NANA1.49845679012345NA
116204NANA-1.99691358024692NA
117201NANA-1.38117283950618NA
118190NANA-5.85802469135802NA
119213NANA5.25308641975309NA
120213NANA7.49382716049383NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/188zc1280496115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/188zc1280496115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/288zc1280496115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/288zc1280496115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/31zzf1280496115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/31zzf1280496115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/4t8yi1280496115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280496181blpkby4hf9fb6c8/4t8yi1280496115.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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