Home » date » 2009 » Jun » 07 »

classical deomposition -- eigen reeks -- additief

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 07 Jun 2009 14:36:21 -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/07/t1244407024ghtdj2lxsxnpr5x.htm/, Retrieved Sun, 07 Jun 2009 22:37:08 +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/07/t1244407024ghtdj2lxsxnpr5x.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 «
517 540 454 292 445 483 545 355 370 372 422 445 471 413 307 308 389 377 521 420 413 384 466 434 263 334 334 416 309 334 350 337 277 439 433 455 372 409 471 382 417 405 410 357 360 329 359 393 448 593 535 449 742 631 513 526 677 631 547 533 433 427 470 418 485 464 439 452 423 537 384 380
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1517NANA-33.0097222222222NA
2540NANA4.86527777777777NA
3454NANA-8.18472222222222NA
4292NANA-38.8013888888889NA
5445NANA33.9402777777778NA
6483NANA8.59861111111114NA
7545471.390277777778434.7536.640277777777873.6097222222222
8355397.023611111111427.541666666667-30.5180555555556-42.0236111111111
9370406.815277777778416.125-9.30972222222224-36.8152777777777
10372411.773611111111410.6666666666671.10694444444443-39.7736111111111
11422423.12361111111140914.1236111111111-1.12361111111113
12445422.798611111111402.2520.548611111111122.2013888888889
13471363.823611111111396.833333333333-33.0097222222222107.176388888889
14413403.406944444444398.5416666666674.865277777777779.59305555555557
15307394.856944444444403.041666666667-8.18472222222222-87.8569444444445
16308366.531944444444405.333333333333-38.8013888888889-58.5319444444444
17389441.606944444444407.66666666666733.9402777777778-52.6069444444444
18377417.640277777778409.0416666666678.59861111111114-40.6402777777778
19521436.556944444444399.91666666666736.640277777777884.4430555555555
20420357.440277777778387.958333333333-30.518055555555662.5597222222223
21413376.481944444444385.791666666667-9.3097222222222436.5180555555555
22384392.523611111111391.4166666666671.10694444444443-8.52361111111105
23466406.706944444445392.58333333333314.123611111111159.2930555555555
24434408.006944444444387.45833333333320.548611111111125.9930555555555
25263345.531944444444378.541666666667-33.0097222222222-82.5319444444444
26334372.823611111111367.9583333333334.86527777777777-38.8236111111111
27334350.648611111111358.833333333333-8.18472222222222-16.6486111111111
28416316.656944444444355.458333333333-38.801388888888999.3430555555556
29309390.315277777778356.37533.9402777777778-81.3152777777778
30334364.473611111111355.8758.59861111111114-30.4736111111111
31350397.931944444444361.29166666666736.6402777777778-47.9319444444444
32337338.440277777778368.958333333333-30.5180555555556-1.44027777777779
33277368.481944444444377.791666666667-9.30972222222224-91.4819444444444
34439383.190277777778382.0833333333331.1069444444444355.8097222222223
35433399.290277777778385.16666666666714.123611111111133.7097222222223
36455413.173611111111392.62520.548611111111141.8263888888889
37372365.073611111111398.083333333333-33.00972222222226.92638888888894
38409406.281944444444401.4166666666674.865277777777772.71805555555562
39471397.523611111111405.708333333333-8.1847222222222273.4763888888889
40382365.781944444444404.583333333333-38.801388888888916.2180555555556
41417430.856944444444396.91666666666733.9402777777778-13.8569444444444
42405399.848611111111391.258.598611111111145.1513888888889
43410428.473611111111391.83333333333336.6402777777778-18.4736111111110
44357372.148611111111402.666666666667-30.5180555555556-15.1486111111111
45360403.690277777778413-9.30972222222224-43.6902777777777
46329419.565277777778418.4583333333331.10694444444443-90.5652777777777
47359448.915277777778434.79166666666714.1236111111111-89.9152777777778
48393478.298611111111457.7520.5486111111111-85.2986111111112
49448438.448611111111471.458333333333-33.00972222222229.55138888888888
50593487.656944444444482.7916666666674.86527777777777105.343055555556
51535494.856944444444503.041666666667-8.1847222222222240.1430555555556
52449490.031944444444528.833333333333-38.8013888888889-41.0319444444444
53742583.190277777778549.2533.9402777777778158.809722222222
54631571.515277777778562.9166666666678.5986111111111459.4847222222222
55513604.765277777778568.12536.6402777777778-91.7652777777777
56526530.065277777778560.583333333333-30.5180555555556-4.06527777777785
57677541.648611111111550.958333333333-9.30972222222224135.351388888889
58631548.065277777778546.9583333333331.1069444444444382.9347222222221
59547549.081944444444534.95833333333314.1236111111111-2.08194444444439
60533537.840277777778517.29166666666720.5486111111111-4.84027777777771
61433474.240277777778507.25-33.0097222222222-41.2402777777777
62427505.948611111111501.0833333333334.86527777777777-78.948611111111
63470479.231944444444487.416666666667-8.18472222222222-9.23194444444437
64418434.115277777778472.916666666667-38.8013888888889-16.1152777777777
65485496.148611111111462.20833333333333.9402777777778-11.1486111111111
66464457.640277777778449.0416666666678.598611111111146.35972222222227
67439NANA36.6402777777778NA
68452NANA-30.5180555555556NA
69423NANA-9.30972222222224NA
70537NANA1.10694444444443NA
71384NANA14.1236111111111NA
72380NANA20.5486111111111NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/1vkuc1244406979.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/1vkuc1244406979.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/2fumk1244406979.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/2fumk1244406979.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/32cpu1244406979.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244407024ghtdj2lxsxnpr5x/32cpu1244406979.ps (open in new window)


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