Home » date » 2009 » May » 31 »

Classical decomposition - Prijsevolutie slagroom - Van Hal Elien

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 31 May 2009 05:36:37 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/31/t1243769848misqg5v7r37mi45.htm/, Retrieved Sun, 31 May 2009 13:37:28 +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/2009/May/31/t1243769848misqg5v7r37mi45.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
4,2 4,19 4,19 4,19 4,19 4,18 4,2 4,19 4,17 4,21 4,22 4,23 4,21 4,23 4,23 4,22 4,25 4,28 4,3 4,32 4,33 4,32 4,34 4,33 4,31 4,31 4,3 4,3 4,29 4,33 4,32 4,32 4,35 4,37 4,39 4,4 4,41 4,44 4,47 4,47 4,47 4,48 4,47 4,48 4,46 4,44 4,43 4,41 4,41 4,38 4,35 4,37 4,4 4,39 4,36 4,34 4,33 4,33 4,34 4,34 4,35 4,37 4,39 4,4 4,38 4,37 4,36 4,33 4,33 4,33 4,32 4,33 4,34
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
14.2NANA-0.00778472222222243NA
24.19NANA-0.00228472222222228NA
34.19NANA-0.00278472222222253NA
44.19NANA-0.00111805555555543NA
54.19NANA0.00304861111111118NA
64.18NANA0.0133819444444445NA
74.24.200548611111114.197083333333330.00346527777777765-0.000548611111110375
84.194.201798611111114.199166666666670.00263194444444489-0.0117986111111108
94.174.202215277777784.2025-0.000284722222222141-0.0322152777777784
104.214.195631944444444.20541666666667-0.009784722222221850.0143680555555550
114.224.212215277777784.209166666666670.003048611111110830.0077847222222216
124.234.214298611111114.21583333333333-0.001534722222222430.0157013888888899
134.214.216381944444444.22416666666667-0.00778472222222243-0.00638194444444462
144.234.231465277777784.23375-0.00228472222222228-0.00146527777777727
154.234.243048611111114.24583333333333-0.00278472222222253-0.0130486111111097
164.224.255965277777784.25708333333333-0.00111805555555543-0.0359652777777777
174.254.269715277777784.266666666666670.00304861111111118-0.0197152777777774
184.284.289215277777784.275833333333330.0133819444444445-0.00921527777777698
194.34.287631944444454.284166666666670.003465277777777650.0123680555555543
204.324.294298611111114.291666666666670.002631944444444890.0257013888888897
214.334.297631944444454.29791666666667-0.0002847222222221410.0323680555555548
224.324.294381944444444.30416666666667-0.009784722222221850.0256180555555563
234.344.312215277777784.309166666666670.003048611111110830.0277847222222229
244.334.311381944444444.31291666666667-0.001534722222222430.0186180555555566
254.314.308048611111114.31583333333333-0.007784722222222430.00195138888888913
264.314.314381944444444.31666666666667-0.00228472222222228-0.00438194444444484
274.34.314715277777784.3175-0.00278472222222253-0.0147152777777784
284.34.319298611111114.32041666666667-0.00111805555555543-0.0192986111111111
294.294.327631944444444.324583333333330.00304861111111118-0.0376319444444446
304.334.342965277777784.329583333333330.0133819444444445-0.012965277777778
314.324.340131944444444.336666666666670.00346527777777765-0.0201319444444437
324.324.348881944444444.346250.00263194444444489-0.0288819444444437
334.354.358465277777784.35875-0.000284722222222141-0.00846527777777695
344.374.363131944444444.37291666666667-0.009784722222221850.00686805555555647
354.394.390548611111114.38750.00304861111111083-0.000548611111110375
364.44.399715277777784.40125-0.001534722222222430.000284722222223088
374.414.405965277777784.41375-0.007784722222222430.00403472222222323
384.444.424381944444444.42666666666667-0.002284722222222280.0156180555555556
394.474.435131944444444.43791666666667-0.002784722222222530.0348680555555552
404.474.444298611111114.44541666666667-0.001118055555555430.0257013888888888
414.474.453048611111114.450.003048611111111180.0169513888888888
424.484.465465277777784.452083333333330.01338194444444450.0145347222222227
434.474.455965277777784.45250.003465277777777650.0140347222222212
444.484.452631944444444.450.002631944444444890.0273680555555558
454.464.442215277777784.4425-0.0002847222222221410.0177847222222223
464.444.423548611111114.43333333333333-0.009784722222221850.0164513888888891
474.434.429298611111114.426250.003048611111110830.000701388888888488
484.414.418048611111114.41958333333333-0.00153472222222243-0.00804861111111066
494.414.403465277777784.41125-0.007784722222222430.00653472222222184
504.384.398548611111114.40083333333333-0.00228472222222228-0.0185486111111119
514.354.386798611111114.38958333333333-0.00278472222222253-0.0367986111111112
524.374.378465277777784.37958333333333-0.00111805555555543-0.00846527777777695
534.44.374298611111114.371250.003048611111111180.0257013888888897
544.394.377965277777784.364583333333330.01338194444444450.0120347222222223
554.364.362631944444444.359166666666670.00346527777777765-0.00263194444444359
564.344.358881944444444.356250.00263194444444489-0.0188819444444448
574.334.357215277777784.3575-0.000284722222222141-0.0272152777777777
584.334.350631944444444.36041666666667-0.00978472222222185-0.0206319444444434
594.344.363881944444444.360833333333330.00304861111111083-0.0238819444444447
604.344.357631944444444.35916666666667-0.00153472222222243-0.0176319444444442
614.354.350548611111114.35833333333333-0.00778472222222243-0.000548611111111263
624.374.355631944444454.35791666666667-0.002284722222222280.0143680555555550
634.394.354715277777784.3575-0.002784722222222530.0352847222222223
644.44.356381944444444.3575-0.001118055555555430.0436180555555561
654.384.359715277777784.356666666666670.003048611111111180.0202847222222236
664.374.368798611111114.355416666666670.01338194444444450.0012013888888891
674.364.358048611111114.354583333333330.003465277777777650.00195138888888824
684.33NANA0.00263194444444489NA
694.33NANA-0.000284722222222141NA
704.33NANA-0.00978472222222185NA
714.32NANA0.00304861111111083NA
724.33NANA-0.00153472222222243NA
734.34NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/1lql01243769793.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/1lql01243769793.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/2njms1243769793.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/2njms1243769793.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/3zlw71243769793.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/3zlw71243769793.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/4j1v81243769793.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/31/t1243769848misqg5v7r37mi45/4j1v81243769793.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