Home » date » 2009 » Jun » 05 »

Kristof Nollekens - Classical decompose - productie bakstenen 9 oef2

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 05 Jun 2009 10:17:50 -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/Jun/05/t12442187404kwzt126dg30543.htm/, Retrieved Fri, 05 Jun 2009 18:19:05 +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/Jun/05/t12442187404kwzt126dg30543.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 «
155 176 180 181 208 183 185 205 180 196 183 147 128 158 186 165 191 168 171 169 157 175 156 129 89 138 146 151 156 129 146 141 137 155 147 128 92 136 159 131 134 148 146 144 161 140 141 139 94 136 164 141 159 162 154 166 156 147 161 135 98 150 173 144 167 161 156 175 163 159 167 148 119 150 161 136 166 155 140 141
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1155NANA0.662786595715704NA
2176NANA0.958040856351961NA
3180NANA1.10603500391105NA
4181NANA0.981482951604662NA
5208NANA1.08185247772957NA
6183NANA1.03216798546247NA
7185187.769203215367180.4583333333331.040512786231540.98525209050288
8205190.943066492877178.5833333333331.069209891700661.07361845478504
9180186.178768202390178.0833333333331.045458689016700.96681271306042
10196186.62903369605177.6666666666671.050444842566891.05021172814521
11183184.71977130013176.2916666666671.047807731317210.99068983635035
12147161.696524627345174.9583333333330.9242001883915870.909110448346276
13128115.159171005604173.750.6627865957157041.11150504890116
14158164.46368034042171.6666666666670.9580408563519610.960698433070201
15186187.150339620116169.2083333333331.106035003911050.993853392826053
16165164.275709024830167.3750.9814829516046621.00440899618982
17191178.911353504527165.3751.081852477729571.06756779968783
18168168.759465623114163.51.032167985462470.995499715406719
19171167.652622681557161.1251.040512786231541.01996614943985
20169169.647969483172158.6666666666671.069209891700660.996180505518894
21157163.265798601441156.1666666666671.045458689016700.961622099330572
22175161.680968685087153.9166666666671.050444842566891.08237847300912
23156159.135799193801151.8751.047807731317210.980294822348663
24129137.513286364432148.7916666666670.9242001883915870.938091172209571
258996.8496912989573146.1250.6627865957157040.918949754060375
26138137.878046576653143.9166666666670.9580408563519611.00088450211165
27146156.964800971710141.9166666666671.106035003911050.930144842003871
28151137.652983962554140.250.9814829516046621.09696132734091
29156150.422571590982139.0416666666671.081852477729571.03707840086782
30129143.084286984735138.6251.032167985462470.901566501245258
31146144.3277943902138.7083333333331.040512786231541.01158616479151
32141148.352872473467138.751.069209891700660.950436601928405
33137145.536561666866139.2083333333331.045458689016700.94134421227838
34155145.924296046583138.9166666666671.050444842566891.06219460500614
35147143.724293812344137.1666666666671.047807731317211.02279159702766
36128126.653934150830137.0416666666670.9242001883915871.01062790396678
379291.3540857761479137.8333333333330.6627865957157041.00707044702341
38136132.169719807556137.9583333333330.9580408563519611.02898001295623
39159153.831035127295139.0833333333331.106035003911051.03360157375544
40131136.875976625867139.4583333333330.9814829516046620.957070796711624
41134149.926722538689138.5833333333331.081852477729570.893769954621805
42148143.256314982312138.7916666666671.032167985462471.03311326986370
43146144.978114881595139.3333333333331.040512786231541.00704854742552
44144149.065679067934139.4166666666671.069209891700660.966017133523905
45161145.972169453956139.6251.045458689016701.10294997054753
46140147.324889170006140.251.050444842566890.95028070809167
47141148.483087258743141.7083333333331.047807731317210.949603100279675
48139132.468693669461143.3333333333330.9242001883915871.04930452735373
499495.6069664319903144.250.6627865957157040.983191952511814
50136139.394944599210145.50.9580408563519610.975645138286962
51164161.711534530161146.2083333333331.106035003911051.01415152899567
52141143.582776795165146.2916666666670.9814829516046620.98201193170369
53159159.483086091967147.4166666666671.081852477729570.99697092585926
54162152.846875847234148.0833333333331.032167985462471.05988427373494
55154154.082601761121148.0833333333331.040512786231540.999463912471775
56166159.134072214782148.8333333333331.069209891700661.04314555449792
57156156.600999458960149.7916666666671.045458689016700.996162224627966
58147157.873106130782150.2916666666671.050444842566890.931127559359132
59161157.957015496070150.751.047807731317211.01926463661252
60135139.592736788313151.0416666666670.9242001883915870.967099027542691
6198100.136008169381151.0833333333330.6627865957157040.978668930303594
62150145.183108106337151.5416666666670.9580408563519611.03317804637531
63173168.347744553628152.2083333333331.106035003911051.02763479521931
64144150.1668915955131530.9814829516046620.958933080854305
65167166.334818450921153.751.081852477729571.00399905176363
66161159.512960753346154.5416666666671.032167985462471.00932237254973
67156162.276639952694155.9583333333331.040512786231540.961321358671688
68175167.687751348387156.8333333333331.069209891700661.04360633733123
69163163.440041716277156.3333333333331.045458689016700.9973076260159
70159163.344173019151155.51.050444842566890.973404787334278
71167162.541174320582155.1251.047807731317211.02743197653183
72148143.096995835964154.8333333333330.9242001883915871.03426350172757
73119NA153.916666666667NANA
74150NA151.833333333333NANA
75161NANANANA
76136NANANANA
77166NANANANA
78155NANANANA
79140NANANANA
80141NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/1zaot1244218668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/1zaot1244218668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/22rzj1244218668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/22rzj1244218668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/33x3p1244218668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/33x3p1244218668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/4v75v1244218668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t12442187404kwzt126dg30543/4v75v1244218668.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