Home » date » 2009 » Dec » 01 »

*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, 01 Dec 2009 14:12:47 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0.htm/, Retrieved Tue, 01 Dec 2009 22:15:49 +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/2009/Dec/01/t1259702143a4813n49d6q4jd0.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 «
111.4 87.4 96.8 114.1 110.3 103.9 101.6 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
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1111.4NANA1.08581264005774NA
287.4NANA0.834380110345525NA
396.8NANA0.94236680559873NA
4114.1NANA1.07817693771933NA
5110.3NANA1.08557752225472NA
6103.9NANA1.02554157155640NA
7101.696.1501946622139101.9041666666670.9435354589251061.05668012796991
894.699.8945907805817101.73750.9818856447286570.946998223435228
995.998.4307566054336101.4208333333330.9705181210839350.974288965230875
10104.7104.701194659951101.33751.033192990353540.999988589815471
11102.8101.761359100205101.1166666666671.006375728698251.01020663352945
1298.1102.415520850928101.13751.012636468678070.95786262848568
13113.9110.069732166520101.3708333333331.085812640057741.03479855686107
1480.984.7591128759329101.5833333333330.8343801103455250.954469640549664
1595.796.090001944217101.9666666666670.942366805598730.995941284875366
16113.2110.638923425631102.6166666666671.078176937719331.02314806123444
17105.9111.791868593856102.9791666666671.085577522254720.947296089885915
18108.8106.023906139406103.3833333333331.025541571556401.02618365953188
19102.398.037265580064103.9041666666670.9435354589251061.04348075596269
2099102.234751567185104.1208333333330.9818856447286570.96835956934801
21100.7101.427231304280104.5083333333330.9705181210839350.99283001916814
22115.5108.252795564292104.7751.033192990353541.06694704185634
23100.7105.954591303115105.2833333333331.006375728698250.950407139148107
24109.9107.233982714388105.8958333333331.012636468678071.02486168300503
25114.6115.154954697457106.0541666666671.085812640057740.995180800522954
2685.488.7224184000741106.3333333333330.8343801103455250.96255266188651
27100.5100.660480951371106.8166666666670.942366805598730.998405720399364
28114.8115.522166472719107.1458333333331.078176937719330.9937486761652
29116.5116.708630121735107.5083333333331.085577522254720.998212384795218
30112.9110.459373436387107.7083333333331.025541571556401.02209524178605
31102101.705259676635107.7916666666670.9435354589251061.00289798506293
32106106.235935569454108.1958333333330.9818856447286570.997779135956307
33105.3105.442750030265108.6458333333330.9705181210839350.998646184491356
34118.8112.312383022222108.7041666666671.033192990353541.05776403993221
35106.1109.548191301008108.8541666666671.006375728698250.968523521383085
36109.3110.495516007255109.1166666666671.012636468678070.9891804115637
37117.2118.407868398297109.051.085812640057740.989799086710742
3892.591.0830187955933109.16250.8343801103455251.01555702943472
39104.2103.350152875684109.6708333333330.942366805598731.00822298855560
40112.5118.177177181852109.6083333333331.078176937719330.951960460410081
41122.4119.087854191343109.71.085577522254721.02781262481508
42113.3112.971950286700110.1583333333331.025541571556401.00290381561500
43100103.879322629909110.0958333333330.9435354589251060.962655487813204
44110.7108.191524478539110.18750.9818856447286571.02318550860200
45112.8106.902571037395110.150.9705181210839351.05516639034380
46109.8113.801902916649110.1458333333331.033192990353540.964834481550103
47117.3110.74745571104110.0458333333331.006375728698251.059166544702
48109.1110.567244423787109.18751.012636468678070.986729845430869
49115.9117.670420646924108.3708333333331.085812640057740.984954412186248
509689.5394155914541107.31250.8343801103455251.07215352441012
5199.899.5846121816457105.6750.942366805598731.00216286245069
52116.8112.754845665906104.5791666666671.078176937719331.03587565847130
53115.7112.176343966321103.3333333333331.085577522254721.03141175678480
5499.4104.242027658826101.6458333333331.025541571556400.953550139348078
5594.394.7073716896076100.3750.9435354589251060.995698627442195
5691NANA0.981885644728657NA
5793.2NANA0.970518121083935NA
58103.1NANA1.03319299035354NA
5994.1NANA1.00637572869825NA
6091.8NANA1.01263646867807NA
61102.7NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/1yq041259701965.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/1yq041259701965.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/2oc8x1259701965.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/2oc8x1259701965.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/35tqq1259701965.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/35tqq1259701965.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/46eum1259701965.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259702143a4813n49d6q4jd0/46eum1259701965.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; 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