Home » date » 2009 » Jun » 02 »

Van der Linden Kevin, Classical decomposition, productie van bakstenen

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 02 Jun 2009 02:52:40 -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/02/t124393295414noqcgbcriq0r7.htm/, Retrieved Tue, 02 Jun 2009 10:55:58 +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/02/t124393295414noqcgbcriq0r7.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
1155NANA-50.3965277777778NA
2176NANA-6.50486111111111NA
3180NANA15.8868055555556NA
4181NANA-2.86319444444444NA
5208NANA12.5784722222222NA
6183NANA4.90347222222223NA
7185186.428472222222180.4583333333335.97013888888889-1.42847222222224
8205189.095138888889178.58333333333310.511805555555615.9048611111111
9180184.670138888889178.0833333333336.58680555555556-4.67013888888889
10196185.103472222222177.6666666666677.4368055555555710.8965277777778
11183183.378472222222176.2916666666677.08680555555555-0.378472222222172
12147163.761805555556174.958333333333-11.1965277777778-16.7618055555556
13128123.353472222222173.75-50.39652777777784.64652777777778
14158165.161805555556171.666666666667-6.50486111111111-7.16180555555556
15186185.095138888889169.20833333333315.88680555555560.904861111111103
16165164.511805555556167.375-2.863194444444440.488194444444446
17191177.953472222222165.37512.578472222222213.0465277777778
18168168.403472222222163.54.90347222222223-0.403472222222206
19171167.095138888889161.1255.970138888888893.9048611111111
20169169.178472222222158.66666666666710.5118055555556-0.178472222222211
21157162.753472222222156.1666666666676.58680555555556-5.7534722222222
22175161.353472222222153.9166666666677.4368055555555713.6465277777778
23156158.961805555556151.8757.08680555555555-2.96180555555551
24129137.595138888889148.791666666667-11.1965277777778-8.59513888888887
258995.7284722222222146.125-50.3965277777778-6.7284722222222
26138137.411805555556143.916666666667-6.504861111111110.588194444444468
27146157.803472222222141.91666666666715.8868055555556-11.8034722222222
28151137.386805555556140.25-2.8631944444444413.6131944444445
29156151.620138888889139.04166666666712.57847222222224.3798611111111
30129143.528472222222138.6254.90347222222223-14.5284722222222
31146144.678472222222138.7083333333335.970138888888891.32152777777776
32141149.261805555556138.7510.5118055555556-8.26180555555555
33137145.795138888889139.2083333333336.58680555555556-8.79513888888889
34155146.353472222222138.9166666666677.436805555555578.64652777777778
35147144.253472222222137.1666666666677.086805555555552.74652777777777
36128125.845138888889137.041666666667-11.19652777777782.15486111111110
379287.4368055555556137.833333333333-50.39652777777784.56319444444446
38136131.453472222222137.958333333333-6.504861111111114.54652777777778
39159154.970138888889139.08333333333315.88680555555564.0298611111111
40131136.595138888889139.458333333333-2.86319444444444-5.5951388888889
41134151.161805555556138.58333333333312.5784722222222-17.1618055555555
42148143.695138888889138.7916666666674.903472222222234.30486111111111
43146145.303472222222139.3333333333335.970138888888890.69652777777776
44144149.928472222222139.41666666666710.5118055555556-5.92847222222221
45161146.211805555556139.6256.5868055555555614.7881944444445
46140147.686805555556140.257.43680555555557-7.68680555555557
47141148.795138888889141.7083333333337.08680555555555-7.79513888888891
48139132.136805555556143.333333333333-11.19652777777786.86319444444445
499493.8534722222222144.25-50.39652777777780.146527777777806
50136138.995138888889145.5-6.50486111111111-2.99513888888887
51164162.095138888889146.20833333333315.88680555555561.90486111111113
52141143.428472222222146.291666666667-2.86319444444444-2.42847222222221
53159159.995138888889147.41666666666712.5784722222222-0.995138888888903
54162152.986805555556148.0833333333334.903472222222239.01319444444442
55154154.053472222222148.0833333333335.97013888888889-0.0534722222222115
56166159.345138888889148.83333333333310.51180555555566.65486111111113
57156156.378472222222149.7916666666676.58680555555556-0.3784722222222
58147157.728472222222150.2916666666677.43680555555557-10.7284722222222
59161157.836805555556150.757.086805555555553.16319444444446
60135139.845138888889151.041666666667-11.1965277777778-4.84513888888893
6198100.686805555556151.083333333333-50.3965277777778-2.68680555555554
62150145.036805555556151.541666666667-6.504861111111114.96319444444447
63173168.095138888889152.20833333333315.88680555555564.9048611111111
64144150.136805555556153-2.86319444444444-6.13680555555555
65167166.328472222222153.7512.57847222222220.671527777777754
66161159.445138888889154.5416666666674.903472222222231.55486111111111
67156161.928472222222155.9583333333335.97013888888889-5.92847222222224
68175167.345138888889156.83333333333310.51180555555567.6548611111111
69163162.920138888889156.3333333333336.586805555555560.0798611111111143
70159162.936805555556155.57.43680555555557-3.93680555555554
71167162.211805555556155.1257.086805555555554.78819444444446
72148143.636805555556154.833333333333-11.19652777777784.36319444444442
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/02/t124393295414noqcgbcriq0r7/1k22z1243932758.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/1k22z1243932758.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/2ndpq1243932758.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/2ndpq1243932758.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/3tm1o1243932758.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/3tm1o1243932758.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/49crh1243932758.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124393295414noqcgbcriq0r7/49crh1243932758.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