Home » date » 2010 » Nov » 30 »

classical decomposition

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 30 Nov 2010 18:43:48 +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/Nov/30/t1291142526aps9qthlfqpoghp.htm/, Retrieved Tue, 30 Nov 2010 19:42:06 +0100
 
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/Nov/30/t1291142526aps9qthlfqpoghp.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 «
0,96 0,95 0,95 0,96 0,96 0,96 0,95 0,96 0,96 0,96 0,95 0,95 0,96 0,96 0,96 0,96 0,96 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,96 0,96 0,96 0,97 0,97 0,97 0,96 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,95 0,94 0,94 0,94 0,93 0,93 0,93 0,93 0,92 0,93
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.96NANA-0.00238425925925918NA
20.95NANA-0.00224537037037038NA
30.95NANA-0.00196759259259259NA
40.96NANA0.00164351851851853NA
50.96NANA0.00192129629629635NA
60.96NANA-0.00113425925925928NA
70.950.9584490740740740.9558333333333330.00261574074074075-0.00844907407407391
80.960.9595601851851850.956250.003310185185185190.000439814814814921
90.960.9612268518518510.9570833333333330.00414351851851851-0.00122685185185145
100.960.9591435185185180.95750.001643518518518560.000856481481481652
110.950.9533101851851850.9575-0.00418981481481491-0.00331018518518478
120.950.9537268518518510.957083333333333-0.00335648148148155-0.00372685185185151
130.960.9542824074074070.956666666666666-0.002384259259259180.00571759259259297
140.960.954004629629630.95625-0.002245370370370380.00599537037037057
150.960.9534490740740740.955416666666666-0.001967592592592590.0065509259259261
160.960.9562268518518520.9545833333333330.001643518518518530.00377314814814833
170.960.9560879629629630.9541666666666660.001921296296296350.00391203703703724
180.950.9530324074074070.954166666666666-0.00113425925925928-0.00303240740740729
190.950.956365740740740.953750.00261574074074075-0.0063657407407407
200.950.9562268518518520.9529166666666670.00331018518518519-0.00622685185185179
210.950.9562268518518520.9520833333333330.00414351851851851-0.00622685185185168
220.950.9533101851851850.9516666666666660.00164351851851856-0.00331018518518489
230.950.9474768518518510.951666666666666-0.004189814814814910.00252314814814847
240.950.9487268518518510.952083333333333-0.003356481481481550.00127314814814861
250.950.9509490740740740.953333333333333-0.00238425925925918-0.000949074074073741
260.950.952754629629630.955-0.00224537037037038-0.00275462962962925
270.950.9546990740740740.956666666666666-0.00196759259259259-0.00469907407407377
280.960.9595601851851850.9579166666666660.001643518518518530.000439814814815143
290.960.960254629629630.9583333333333330.00192129629629635-0.000254629629629410
300.960.9571990740740740.958333333333333-0.001134259259259280.00280092592592618
310.970.9609490740740740.9583333333333330.002615740740740750.00905092592592616
320.970.9616435185185180.9583333333333330.003310185185185190.00835648148148171
330.970.9624768518518520.9583333333333330.004143518518518510.00752314814814836
340.960.9595601851851850.9579166666666670.001643518518518560.000439814814814921
350.950.9528935185185180.957083333333333-0.00418981481481491-0.00289351851851838
360.950.9528935185185180.95625-0.00335648148148155-0.00289351851851838
370.950.952615740740740.955-0.00238425925925918-0.00261574074074067
380.950.9510879629629630.953333333333333-0.00224537037037038-0.00108796296296276
390.950.9496990740740740.951666666666666-0.001967592592592590.000300925925926121
400.950.9520601851851850.9504166666666660.00164351851851853-0.00206018518518503
410.950.951504629629630.9495833333333330.00192129629629635-0.00150462962962938
420.950.947615740740740.94875-0.001134259259259280.00238425925925945
430.950.9505324074074070.9479166666666660.00261574074074075-0.000532407407407121
440.950.9499768518518520.9466666666666660.003310185185185192.31481481484108e-05
450.950.9491435185185180.9450.004143518518518510.000856481481481874
460.950.9449768518518510.9433333333333330.001643518518518560.00502314814814853
470.940.9374768518518510.941666666666666-0.004189814814814910.00252314814814847
480.940.9362268518518520.939583333333333-0.003356481481481550.00377314814814833
490.94NA0.9375NANA
500.93NANANANA
510.93NANANANA
520.93NANANANA
530.93NANANANA
540.92NANANANA
550.93NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/10g9l1291142625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/10g9l1291142625.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/20g9l1291142625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/20g9l1291142625.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/30g9l1291142625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/30g9l1291142625.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/4spqn1291142625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291142526aps9qthlfqpoghp/4spqn1291142625.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])
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