Home » date » 2010 » Dec » 19 »

*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: Sun, 19 Dec 2010 19:25:17 +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/19/t1292786574b3ps5t1j3c84h9m.htm/, Retrieved Sun, 19 Dec 2010 20:22:59 +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/19/t1292786574b3ps5t1j3c84h9m.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 «
8,7000 8,9000 8,9000 8,1000 8,0000 8,3000 8,5000 8,7000 8,6000 8,3000 7,9000 7,9000 8,1000 8,3000 8,1000 7,4000 7,3000 7,7000 8,0000 8,0000 7,7000 6,9000 6,6000 6,9000 7,5000 7,9000 7,7000 6,5000 6,1000 6,4000 6,8000 7,1000 7,3000 7,2000 7,0000 7,0000 7,0000 7,3000 7,5000 7,2000 7,7000 8,0000 7,9000 8,0000 8,0000 7,9000 7,9000 8,0000 8,1000 8,1000 8,2000 8,0000 8,3000 8,5000 8,6000 8,7000 8,7000 8,5000 8,4000 8,5000 8,7000 8,7000 8,6000 7,9000 8,1000 8,2000 8,5000 8,6000 8,5000 8,3000 8,2000 8,7000 9,3000 9,3000 8,8000 7,4000 7,2000 7,5000 8,3000 8,8000 8,9000 8,6000 8,4000 8,4000 8,4000 8,4000 8,3000 7,6000 7,6000 7,9000 8,0000 8,2000 8,3000 8,2000 8,1000 8,0000 7,8000 7,6000 7,5000 6,8000 6,9000 7,1000 7,3000 7,4000 7,6000 7,6000 7,5000 7,5000 6,8000 6,4000 6,2000 6,0000 6,3000 6,3000 6,1000 6,1000 6,3000
 
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
18.7NANA0.177300347222222NA
28.9NANA0.277821180555555NA
38.9NANA0.177300347222222NA
48.1NANA-0.551345486111111NA
58NANA-0.495616319444444NA
68.3NANA-0.228949652777777NA
78.58.417404513888898.3750.04240451388888890.0825954861111118
88.78.559071180555568.3250.2340711805555560.140928819444444
98.68.545529513888898.266666666666670.2788628472222220.0544704861111107
108.38.275217013888898.204166666666670.0710503472222220.0247829861111128
117.98.091883680555558.14583333333333-0.0539496527777776-0.191883680555554
127.98.162717013888898.091666666666670.0710503472222219-0.262717013888887
138.18.223133680555558.045833333333330.177300347222222-0.123133680555555
148.38.273654513888897.995833333333330.2778211805555550.0263454861111123
158.18.106467013888897.929166666666670.177300347222222-0.00646701388888804
167.47.281987847222227.83333333333333-0.5513454861111110.118012152777779
177.37.225217013888897.72083333333333-0.4956163194444440.0747829861111118
187.77.396050347222227.625-0.2289496527777770.303949652777779
1987.600737847222227.558333333333330.04240451388888890.399262152777778
2087.750737847222227.516666666666670.2340711805555560.249262152777778
217.77.762196180555567.483333333333330.278862847222222-0.0621961805555564
226.97.500217013888897.429166666666670.071050347222222-0.600217013888889
236.67.287717013888897.34166666666667-0.0539496527777776-0.687717013888889
246.97.308550347222227.23750.0710503472222219-0.408550347222222
257.57.310633680555567.133333333333330.1773003472222220.189366319444445
267.97.323654513888897.045833333333330.2778211805555550.576345486111111
277.77.168967013888896.991666666666670.1773003472222220.531032986111112
286.56.436154513888896.9875-0.5513454861111110.063845486111112
296.16.521050347222227.01666666666667-0.495616319444444-0.421050347222223
306.46.808550347222227.0375-0.228949652777777-0.408550347222222
316.87.063237847222227.020833333333330.0424045138888889-0.263237847222221
327.17.209071180555556.9750.234071180555556-0.109071180555555
337.37.220529513888896.941666666666670.2788628472222220.079470486111111
347.27.033550347222226.96250.0710503472222220.166449652777780
3577.004383680555557.05833333333333-0.0539496527777776-0.00438368055555394
3677.262717013888897.191666666666670.0710503472222219-0.262717013888888
3777.481467013888897.304166666666670.177300347222222-0.481467013888888
387.37.665321180555557.38750.277821180555555-0.365321180555554
397.57.631467013888897.454166666666660.177300347222222-0.131467013888886
407.26.961154513888897.5125-0.5513454861111110.238845486111113
417.77.083550347222227.57916666666667-0.4956163194444440.61644965277778
4287.429383680555557.65833333333333-0.2289496527777770.570616319444444
437.97.788237847222227.745833333333330.04240451388888890.111762152777778
4488.059071180555567.8250.234071180555556-0.0590711805555548
4588.166362847222227.88750.278862847222222-0.166362847222222
467.98.021050347222227.950.071050347222222-0.121050347222222
477.97.954383680555568.00833333333333-0.0539496527777776-0.0543836805555546
4888.125217013888898.054166666666670.0710503472222219-0.125217013888889
498.18.281467013888898.104166666666670.177300347222222-0.181467013888891
508.18.440321180555568.16250.277821180555555-0.340321180555556
518.28.398133680555558.220833333333330.177300347222222-0.198133680555555
5287.723654513888898.275-0.5513454861111110.276345486111110
538.37.825217013888898.32083333333333-0.4956163194444440.474782986111112
548.58.133550347222228.3625-0.2289496527777770.366449652777776
558.68.450737847222228.408333333333330.04240451388888890.149262152777778
568.78.692404513888898.458333333333330.2340711805555560.00759548611111072
578.78.778862847222228.50.278862847222222-0.0788628472222221
588.58.583550347222228.51250.071050347222222-0.0835503472222214
598.48.446050347222228.5-0.0539496527777776-0.04605034722222
608.58.550217013888898.479166666666660.0710503472222219-0.0502170138888864
618.78.639800347222228.46250.1773003472222220.060199652777781
628.78.731987847222228.454166666666670.277821180555555-0.0319878472222221
638.68.618967013888898.441666666666670.177300347222222-0.0189670138888882
647.97.873654513888898.425-0.5513454861111110.0263454861111132
658.17.912717013888898.40833333333333-0.4956163194444440.187282986111112
668.28.179383680555558.40833333333333-0.2289496527777770.0206163194444446
678.58.484071180555558.441666666666670.04240451388888890.0159288194444454
688.68.725737847222228.491666666666670.234071180555556-0.125737847222224
698.58.803862847222228.5250.278862847222222-0.303862847222222
708.38.583550347222228.51250.071050347222222-0.283550347222222
718.28.400217013888898.45416666666667-0.0539496527777776-0.200217013888889
728.78.458550347222228.38750.07105034722222190.241449652777778
739.38.527300347222228.350.1773003472222220.77269965277778
749.38.627821180555568.350.2778211805555550.672178819444445
758.88.552300347222228.3750.1773003472222220.247699652777779
767.47.852821180555568.40416666666667-0.551345486111111-0.452821180555556
777.27.929383680555568.425-0.495616319444444-0.729383680555556
787.58.191883680555568.42083333333333-0.228949652777777-0.691883680555555
798.38.413237847222228.370833333333330.0424045138888889-0.113237847222221
808.88.529904513888898.295833333333330.2340711805555560.270095486111112
818.98.516362847222228.23750.2788628472222220.383637152777778
828.68.296050347222228.2250.0710503472222220.303949652777778
838.48.196050347222228.25-0.05394965277777760.203949652777778
848.48.354383680555568.283333333333330.07105034722222190.0456163194444432
858.48.464800347222228.28750.177300347222222-0.0648003472222225
868.48.527821180555568.250.277821180555555-0.127821180555557
878.38.377300347222228.20.177300347222222-0.0773003472222218
887.67.606987847222228.15833333333333-0.551345486111111-0.00698784722222356
897.67.633550347222228.12916666666667-0.495616319444444-0.0335503472222225
907.97.871050347222228.1-0.2289496527777770.0289496527777793
9188.100737847222228.058333333333330.0424045138888889-0.100737847222221
928.28.2340711805555580.234071180555556-0.0340711805555545
938.38.212196180555567.933333333333330.2788628472222220.0878038194444457
948.27.937717013888897.866666666666670.0710503472222220.262282986111112
958.17.750217013888897.80416666666667-0.05394965277777760.349782986111111
9687.812717013888897.741666666666670.07105034722222190.187282986111111
977.87.856467013888897.679166666666670.177300347222222-0.0564670138888888
987.67.894487847222227.616666666666670.277821180555555-0.294487847222222
997.57.731467013888897.554166666666670.177300347222222-0.231467013888889
1006.86.948654513888897.5-0.551345486111111-0.148654513888889
1016.96.954383680555567.45-0.495616319444444-0.0543836805555555
1027.17.175217013888897.40416666666667-0.228949652777777-0.0752170138888886
1037.37.384071180555567.341666666666670.0424045138888889-0.0840711805555552
1047.47.484071180555557.250.234071180555556-0.0840711805555543
1057.67.424696180555567.145833333333330.2788628472222220.175303819444443
1067.67.129383680555567.058333333333330.0710503472222220.470616319444444
1077.56.946050347222227-0.05394965277777760.553949652777779
1087.57.012717013888896.941666666666670.07105034722222190.487282986111111
1096.8NA6.85833333333333NANA
1106.4NA6.75416666666667NANA
1116.2NA6.64583333333333NANA
1126NANANANA
1136.3NANANANA
1146.3NANANANA
1156.1NANANANA
1166.1NANANANA
1176.3NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/1ils41292786713.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/1ils41292786713.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/2sc971292786713.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/2sc971292786713.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/3sc971292786713.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/3sc971292786713.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/43lqa1292786713.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292786574b3ps5t1j3c84h9m/43lqa1292786713.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