Home » date » 2010 » Dec » 15 »

*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: Wed, 15 Dec 2010 12:49:58 +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/15/t129241736315zgyc7hrhbwomj.htm/, Retrieved Wed, 15 Dec 2010 13:49:27 +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/15/t129241736315zgyc7hrhbwomj.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 «
94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1 104.5 105.1 95.1 88.7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
194.6NANA-3.68072916666667NA
295.9NANA-2.30468750000000NA
3104.7NANA6.6546875NA
4102.8NANA-0.496354166666658NA
598.1NANA0.129687500000000NA
6113.9NANA7.9890625NA
780.984.2723958333333101.583333333333-17.3109375-3.3723958333333
895.796.0713541666667101.966666666667-5.8953125-0.371354166666663
9113.2111.041145833333102.6166666666678.424479166666662.15885416666667
10105.9112.3109375102.9791666666679.33177083333333-6.4109375
11108.8106.346354166667103.3833333333332.963020833333332.45364583333331
12102.398.0994791666667103.904166666667-5.804687500000014.20052083333333
1399100.440104166667104.120833333333-3.68072916666667-1.44010416666666
14100.7102.203645833333104.508333333333-2.30468750000000-1.50364583333332
15115.5111.4296875104.7756.65468754.0703125
16100.7104.786979166667105.283333333333-0.496354166666658-4.08697916666664
17109.9106.025520833333105.8958333333330.1296875000000003.87447916666669
18114.6114.043229166667106.0541666666677.98906250.556770833333331
1985.489.0223958333333106.333333333333-17.3109375-3.62239583333331
20100.5100.921354166667106.816666666667-5.8953125-0.421354166666646
21114.8115.5703125107.1458333333338.42447916666666-0.770312499999974
22116.5116.840104166667107.5083333333339.33177083333333-0.340104166666663
23112.9110.671354166667107.7083333333332.963020833333332.22864583333336
24102101.986979166667107.791666666667-5.804687500000010.0130208333333428
25106104.515104166667108.195833333333-3.680729166666671.48489583333334
26105.3106.341145833333108.645833333333-2.30468750000000-1.04114583333332
27118.8115.358854166667108.7041666666676.65468753.44114583333334
28106.1108.3578125108.854166666667-0.496354166666658-2.2578125
29109.3109.246354166667109.1166666666670.1296875000000000.0536458333333201
30117.2117.0390625109.057.98906250.160937500000017
3192.591.8515625109.1625-17.31093750.6484375
32104.2103.775520833333109.670833333333-5.89531250.424479166666657
33112.5118.0328125109.6083333333338.42447916666666-5.53281249999999
34122.4119.031770833333109.79.331770833333333.36822916666668
35113.3113.121354166667110.1583333333332.963020833333330.178645833333348
36100104.291145833333110.095833333333-5.80468750000001-4.29114583333333
37110.7106.506770833333110.1875-3.680729166666674.19322916666667
38112.8107.8453125110.15-2.304687500000004.95468750000001
39109.8116.800520833333110.1458333333336.6546875-7.00052083333333
40117.3109.549479166667110.045833333333-0.4963541666666587.75052083333335
41109.1109.3171875109.18750.129687500000000-0.217187499999994
42115.9116.359895833333108.3708333333337.9890625-0.459895833333334
439690.0015625107.3125-17.31093755.9984375
4499.899.7796875105.675-5.89531250.0203124999999886
45116.8113.003645833333104.5791666666678.424479166666663.79635416666667
46115.7112.665104166667103.3333333333339.331770833333333.03489583333334
4799.4104.608854166667101.6458333333332.96302083333333-5.20885416666665
4894.394.5703125100.375-5.80468750000001-0.270312500000003
499195.585937599.2666666666667-3.68072916666667-4.5859375
5093.295.957812598.2625-2.30468750000000-2.75781249999999
51103.1103.95885416666797.30416666666666.6546875-0.85885416666666
5294.195.853645833333396.35-0.496354166666658-1.75364583333334
5391.895.858854166666795.72916666666670.129687500000000-4.05885416666666
54102.7103.30572916666795.31666666666667.9890625-0.605729166666634
5582.6NANA-17.3109375NA
5689.1NANA-5.8953125NA
57104.5NANA8.42447916666666NA
58105.1NANA9.33177083333333NA
5995.1NANA2.96302083333333NA
6088.7NANA-5.80468750000001NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/1ypu71292417395.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/1ypu71292417395.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/2ypu71292417395.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/2ypu71292417395.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/3ryta1292417395.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t129241736315zgyc7hrhbwomj/3ryta1292417395.ps (open in new window)


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