Home » date » 2010 » Dec » 26 »

CD Yuan

*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, 26 Dec 2010 12:41:34 +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/26/t1293367169shs69rc5i1wukqg.htm/, Retrieved Sun, 26 Dec 2010 13:39:29 +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/26/t1293367169shs69rc5i1wukqg.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 «
7,4271 7,7662 7,6289 7,5281 7,3831 7,2355 7,0617 7,1237 7,4533 7,5411 7,4978 7,3525 7,3862 7,311 7,2013 7,249 7,3321 7,59 7,9082 8,2123 8,0929 8,118 8,1206 8,2883 8,4281 8,7917 8,9168 8,9446 8,9786 9,5862 9,6533 9,4125 9,2195 9,2882 9,6774 9,6857 10,1688 10,4399 10,4675 10,149 9,9163 9,9268 10,0529 10,1622 10,083 10,1134 10,3423 10,7536 11,0967 10,8588 10,7719 10,9262 10,708 10,5062 10,0683 9,8954 9,9589 9,9177 9,7189 9,5273 9,5746 9,763 9,6117 9,6581 9,8361 10,2353 10,1285 10,1347 10,2141 10,0971 9,9651 10,1286 10,3356 10,1238 10,1326 10,2467 10,44 10,3689 10,2415 10,3899 10,3162 10,4533 10,6741 10,8957 10,7404 10,6568 10,5682 10,9833 11,0237 10,8462 10,7287 10,7809 10,2609 9,8252 9,1071 8,695 9,2205 9,0496 8,7406 8,921 9,011 9,3157 9,5786 9,6246 9,7485 9,9431 10,1152 10,1827 9,9777 9,7436 9,3462 9,2623 9,1505 8,5794 8,3245 8,6538 8,752 8,8104 9,2665 9,0895
 
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
17.4271NANA0.0968546296296301NA
27.7662NANA0.0627689814814819NA
37.6289NANA-0.0593717592592592NA
47.5281NANA-0.00643842592592586NA
57.3831NANA-0.0142699074074085NA
67.2355NANA0.0315444444444437NA
77.06177.441031018518527.414879166666670.0261518518518516-0.379331018518517
87.12377.434341666666677.394208333333330.0401333333333336-0.310641666666665
97.45337.337242129629637.357425-0.02018287037037040.116057870370372
107.54117.286239351851857.32797916666667-0.04173981481481430.254860648148149
117.49787.247540740740747.314225-0.06668425925925940.25025925925926
127.35257.278104629629637.32687083333333-0.04876620370370330.0743953703703708
137.38627.473767129629637.37691250.0968546296296301-0.0875671296296296
147.3117.520310648148157.457541666666670.0627689814814819-0.209310648148148
157.20137.470178240740747.52955-0.0593717592592592-0.26887824074074
167.2497.573799074074077.5802375-0.00643842592592586-0.324799074074074
177.33217.615955092592597.630225-0.0142699074074085-0.283855092592590
187.597.726711111111117.695166666666670.0315444444444437-0.136711111111111
197.90827.803722685185197.777570833333330.02615185185185160.104477314814814
208.21237.92281257.882679166666660.04013333333333360.289487500000003
218.09297.99567129629638.01585416666667-0.02018287037037040.0972287037037045
228.1188.116243518518528.15798333333333-0.04173981481481430.00175648148148255
238.12068.230553240740748.2972375-0.0666842592592594-0.109953240740740
248.28838.400250462962968.44901666666667-0.0487662037037033-0.111950462962962
258.42818.70175879629638.604904166666670.0968546296296301-0.273658796296296
268.79178.790393981481488.7276250.06276898148148190.00130601851851964
278.91688.765203240740748.824575-0.05937175925925920.151596759259260
288.94468.913836574074078.920275-0.006438425925925860.0307634259259277
298.97869.01963009259269.0339-0.0142699074074085-0.0410300925925924
309.58629.188536111111119.156991666666670.03154444444444370.397663888888889
319.65339.313897685185189.287745833333330.02615185185185160.339402314814816
329.41259.469083333333339.428950.0401333333333336-0.0565833333333323
339.21959.542054629629639.5622375-0.0201828703703704-0.322554629629629
349.28829.635293518518529.67703333333333-0.0417398148148143-0.347093518518518
359.67749.699603240740749.7662875-0.0666842592592594-0.0222032407407387
369.68579.77078379629639.81955-0.0487662037037033-0.0850837962962956
3710.16889.94724629629639.850391666666670.09685462962963010.221553703703703
3810.43999.961048148148159.898279166666660.06276898148148190.478851851851854
3910.46759.906124074074079.96549583333333-0.05937175925925920.561375925925926
4010.14910.029419907407410.0358583333333-0.006438425925925860.119580092592592
419.916310.083675925925910.0979458333333-0.0142699074074085-0.167375925925926
429.926810.201690277777810.17014583333330.0315444444444437-0.274890277777779
4310.052910.279456018518510.25330416666670.0261518518518516-0.226556018518520
4410.162210.349554166666710.30942083333330.0401333333333336-0.187354166666669
4510.08310.319375462963010.3395583333333-0.0201828703703704-0.236375462962965
4610.113410.342885185185210.384625-0.0417398148148143-0.229485185185185
4710.342310.383311574074110.4499958333333-0.0666842592592594-0.0410115740740729
4810.753610.458358796296310.507125-0.04876620370370330.295241203703705
4911.096710.628762962963010.53190833333330.09685462962963010.467937037037037
5010.858810.584202314814810.52143333333330.06276898148148190.274597685185185
5110.771910.445774074074110.5051458333333-0.05937175925925920.326125925925924
5210.926210.485382407407410.4918208333333-0.006438425925925860.440817592592593
5310.70810.443421759259310.4576916666667-0.01426990740740850.264578240740741
5410.506210.412165277777810.38062083333330.03154444444444370.0940347222222204
5510.068310.292256018518510.26610416666670.0261518518518516-0.223956018518518
569.895410.197158333333310.1570250.0401333333333336-0.301758333333334
579.958910.042842129629610.063025-0.0201828703703704-0.0839421296296301
589.91779.920106018518529.96184583333333-0.0417398148148143-0.00240601851851707
599.71899.80599490740749.87267916666667-0.0666842592592594-0.0870949074074066
609.52739.77629629629639.8250625-0.0487662037037033-0.248996296296296
619.57469.913137962962979.816283333333330.0968546296296301-0.338537962962965
629.7639.891531481481489.82876250.0627689814814819-0.128531481481481
639.61179.78999490740749.84936666666666-0.0593717592592592-0.178294907407405
649.65819.861036574074079.867475-0.00643842592592586-0.202936574074073
659.83619.870938425925929.88520833333333-0.0142699074074085-0.0348384259259245
6610.23539.952065277777789.920520833333330.03154444444444370.283234722222225
6710.128510.00343518518529.977283333333330.02615185185185160.125064814814815
6810.134710.064158333333310.0240250.04013333333333360.0705416666666672
6910.214110.040579629629610.0607625-0.02018287037037040.173520370370369
7010.097110.065251851851910.1069916666667-0.04173981481481430.0318481481481463
719.965110.089994907407410.1566791666667-0.0666842592592594-0.124894907407407
7210.128610.138642129629610.1874083333333-0.0487662037037033-0.0100421296296300
7310.335610.294537962963010.19768333333330.09685462962963010.0410620370370367
7410.123810.275793981481510.2130250.0627689814814819-0.15199398148148
7510.132610.168540740740710.2279125-0.0593717592592592-0.0359407407407417
7610.246710.240569907407410.2470083333333-0.006438425925925860.00613009259259556
7710.4410.277121759259310.2913916666667-0.01426990740740850.162878240740742
7810.368910.384440277777810.35289583333330.0315444444444437-0.0155402777777773
7910.241510.427876851851910.4017250.0261518518518516-0.186376851851850
8010.389910.480933333333310.44080.0401333333333336-0.0910333333333302
8110.316210.460975462963010.4811583333333-0.0201828703703704-0.144775462962963
8210.453310.488260185185210.53-0.0417398148148143-0.0349601851851826
8310.674110.518328240740710.5850125-0.06668425925925940.155771759259258
8410.895710.580454629629610.6292208333333-0.04876620370370330.31524537037037
8510.740410.766262962963010.66940833333330.0968546296296301-0.0258629629629628
8610.656810.768768981481510.7060.0627689814814819-0.111968981481482
8710.568210.660615740740710.7199875-0.0593717592592592-0.0924157407407424
8810.983310.685074074074110.6915125-0.006438425925925860.298225925925927
8911.023710.585780092592610.60005-0.01426990740740850.437919907407407
9010.846210.474606944444410.44306250.03154444444444370.371593055555554
9110.728710.314189351851910.28803750.02615185185185160.414510648148147
9210.780910.19787510.15774166666670.04013333333333360.583024999999999
9310.26099.9944421296296310.014625-0.02018287037037040.266457870370369
949.82529.810806018518529.85254583333333-0.04173981481481430.0143939814814811
959.10719.61606990740749.68275416666667-0.0666842592592594-0.508969907407407
968.6959.486354629629639.53512083333333-0.0487662037037033-0.79135462962963
979.22059.52028379629639.423429166666670.0968546296296301-0.299783796296298
989.04969.390098148148159.327329166666670.0627689814814819-0.340498148148146
998.74069.198428240740749.2578-0.0593717592592592-0.45782824074074
1008.9219.234924074074079.2413625-0.00643842592592586-0.313924074074071
1019.0119.274009259259269.28827916666667-0.0142699074074085-0.263009259259261
1029.31579.423815277777789.392270833333330.0315444444444437-0.108115277777779
1039.57869.511960185185189.485808333333330.02615185185185160.0666398148148151
1049.62469.586408333333339.5462750.04013333333333360.0381916666666662
1059.74859.580242129629639.600425-0.02018287037037040.16825787037037
1069.94319.598139351851859.63987916666667-0.04173981481481430.344960648148147
10710.11529.593228240740749.6599125-0.06668425925925940.521971759259261
10810.18279.586279629629639.63504583333333-0.04876620370370330.596420370370371
1099.97779.648967129629639.55211250.09685462962963010.328732870370372
1109.74369.522177314814819.459408333333330.06276898148148190.221422685185187
1119.34629.318065740740749.3774375-0.05937175925925920.0281342592592591
1129.26239.28228240740749.28872083333333-0.00643842592592586-0.0199824074074080
1139.15059.19189259259269.2061625-0.0142699074074085-0.0413925925925938
1148.57949.156794444444449.125250.0315444444444437-0.577394444444444
1158.3245NANA0.0261518518518516NA
1168.6538NANA0.0401333333333336NA
1178.752NANA-0.0201828703703704NA
1188.8104NANA-0.0417398148148143NA
1199.2665NANA-0.0666842592592594NA
1209.0895NANA-0.0487662037037033NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/1s81n1293367291.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/1s81n1293367291.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/2s81n1293367291.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/2s81n1293367291.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/3lh071293367291.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293367169shs69rc5i1wukqg/3lh071293367291.ps (open in new window)


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