Home » date » 2010 » Dec » 07 »

Workshop 8

*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, 07 Dec 2010 13:33:40 +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/Dec/07/t12917287659hplrbujagv481p.htm/, Retrieved Tue, 07 Dec 2010 14:32:47 +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/Dec/07/t12917287659hplrbujagv481p.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 «
103,48 103,93 103,89 104,4 104,79 104,77 105,13 105,26 104,96 104,75 105,01 105,15 105,2 105,77 105,78 106,26 106,13 106,12 106,57 106,44 106,54 107,1 108,1 108,4 108,84 109,62 110,42 110,67 111,66 112,28 112,87 112,18 112,36 112,16 111,49 111,25 111,36 111,74 111,1 111,33 111,25 111,04 110,97 111,31 111,02 111,07 111,36 111,54 112,05 112,52 112,94 113,33 113,78 113,77 113,82 113,89 114,25 114,41
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1103.48NANA-0.25884259259259NA
2103.93NANA0.152685185185183NA
3103.89NANA0.0411574074074023NA
4104.4NANA0.189212962962956NA
5104.79NANA0.273240740740743NA
6104.77NANA0.229629629629633NA
7105.13105.067407407407104.6983333333330.3690740740740790.0625925925925799
8105.26104.866851851852104.8466666666670.0201851851851850.393148148148157
9104.96104.825740740741105.002083333333-0.1763425925925890.134259259259252
10104.75104.921018518519105.158333333333-0.237314814814813-0.171018518518508
11105.01105.056574074074105.291666666667-0.235092592592602-0.0465740740740586
12105.15105.036157407407105.40375-0.3675925925925860.11384259259259
13105.2105.261157407407105.52-0.25884259259259-0.061157407407407
14105.77105.781851851852105.6291666666670.152685185185183-0.0118518518518584
15105.78105.785324074074105.7441666666670.0411574074074023-0.00532407407406765
16106.26106.09712962963105.9079166666670.1892129629629560.162870370370385
17106.13106.407824074074106.1345833333330.273240740740743-0.277824074074076
18106.12106.62837962963106.398750.229629629629633-0.508379629629616
19106.57107.054907407407106.6858333333330.369074074074079-0.48490740740742
20106.44107.018101851852106.9979166666670.020185185185185-0.578101851851855
21106.54107.175324074074107.351666666667-0.176342592592589-0.635324074074063
22107.1107.491435185185107.72875-0.237314814814813-0.391435185185188
23108.1107.907824074074108.142916666667-0.2350925925926020.192175925925937
24108.4108.262407407407108.63-0.3675925925925860.137592592592597
25108.84108.890324074074109.149166666667-0.25884259259259-0.0503240740740694
26109.62109.803518518519109.6508333333330.152685185185183-0.183518518518497
27110.42110.173657407407110.13250.04115740740740230.246342592592597
28110.67110.775046296296110.5858333333330.189212962962956-0.105046296296294
29111.66111.211157407407110.9379166666670.2732407407407430.448842592592584
30112.28111.427546296296111.1979166666670.2296296296296330.852453703703702
31112.87111.790740740741111.4216666666670.3690740740740791.07925925925927
32112.18111.635185185185111.6150.0201851851851850.544814814814828
33112.36111.555324074074111.731666666667-0.1763425925925890.804675925925935
34112.16111.550185185185111.7875-0.2373148148148130.609814814814825
35111.49111.562824074074111.797916666667-0.235092592592602-0.0728240740740631
36111.25111.361574074074111.729166666667-0.367592592592586-0.11157407407407
37111.36111.339490740741111.598333333333-0.258842592592590.0205092592592564
38111.74111.635601851852111.4829166666670.1526851851851830.104398148148164
39111.1111.431990740741111.3908333333330.0411574074074023-0.331990740740721
40111.33111.478796296296111.2895833333330.189212962962956-0.148796296296297
41111.25111.511990740741111.238750.273240740740743-0.261990740740728
42111.04111.475046296296111.2454166666670.229629629629633-0.435046296296278
43110.97111.655324074074111.286250.369074074074079-0.68532407407406
44111.31111.367685185185111.34750.020185185185185-0.0576851851851785
45111.02111.280324074074111.456666666667-0.176342592592589-0.260324074074077
46111.07111.379351851852111.616666666667-0.237314814814813-0.309351851851858
47111.36111.570324074074111.805416666667-0.235092592592602-0.210324074074066
48111.54111.656990740741112.024583333333-0.367592592592586-0.116990740740732
49112.05NA112.257083333333NANA
50112.52NA112.483333333333NANA
51112.94NA112.725416666667NANA
52113.33NA112.999166666667NANA
53113.78NANANANA
54113.77NANANANA
55113.82NANANANA
56113.89NANANANA
57114.25NANANANA
58114.41NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/1uf5c1291728816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/1uf5c1291728816.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/2uf5c1291728816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/2uf5c1291728816.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/3uf5c1291728816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/3uf5c1291728816.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/4n64x1291728816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917287659hplrbujagv481p/4n64x1291728816.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