Home » date » 2010 » Dec » 18 »

CD

*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: Sat, 18 Dec 2010 14:47:46 +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/18/t1292683554od4uff0rv0m56ql.htm/, Retrieved Sat, 18 Dec 2010 15:46:00 +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/18/t1292683554od4uff0rv0m56ql.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 «
14.458 13.594 17.814 20.235 21.811 21.439 21.393 19.831 20.468 21.080 21.600 17.390 17.848 19.592 21.092 20.899 25.890 24.965 22.225 20.977 22.897 22.785 22.769 19.637 20.203 20.450 23.083 21.738 26.766 25.280 22.574 22.729 21.378 22.902 24.989 21.116 15.169 15.846 20.927 18.273 22.538 15.596 14.034 11.366 14.861 15.149 13.577 13.026 13.190 13.196 15.826 14.733 16.307 15.703 14.589 12.043 15.057 14.053 12.698 10.888 10.045 11.549 13.767 12.434 13.116 14.211 12.266 12.602 15.714 13.742 12.745 10.491 10.057 10.900 11.771 11.992 11.933 14.504 11.727 11.477 13.578 11.555 11.846 11.397 10.066 10.269 14.279 13.870 13.695 14.420 11.424 9.704 12.464 14.301 13.464 9.893 11.572 12.380 16.692 16.052 16.459 14.761 13.654 13.480 18.068 16.560 14.530 10.650 11.651 13.735 13.360 17.818 20.613 16.231 13.862 12.004 17.734 15.034 12.609 12.320 10.833 11.350 13.648 14.890 16.325 18.045 15.616 11.926 16 etc...
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
114.458NANA-2.73059479166667NA
213.594NANA-1.81028645833333NA
317.814NANA0.755505208333333NA
420.235NANA0.620946874999999NA
521.811NANA2.77806770833333NA
621.439NANA1.84428020833333NA
721.39319.170338541666719.4006666666667-0.2303281249999992.22266145833333
819.83118.43245937519.7918333333333-1.359373958333331.39854062500000
920.46821.446267708333320.17833333333331.267934375-0.978267708333327
1021.0821.14434687520.34258333333330.801763541666667-0.0643468749999982
1121.620.753701041666720.54020833333330.2134927083333340.846298958333339
1217.3918.705676041666720.8570833333333-2.15140729166667-1.31567604166667
1317.84818.30807187521.0386666666667-2.73059479166667-0.460071875000001
1419.59219.31079687521.1210833333333-1.810286458333330.281203124999998
1521.09222.02554687521.27004166666670.755505208333333-0.933546875000001
1620.89922.063238541666721.44229166666670.620946874999999-1.16423854166667
1725.8924.34010937521.56204166666672.778067708333331.54989062500001
1824.96523.548655208333321.7043751.844280208333331.41634479166667
1922.22521.66579687521.896125-0.2303281249999990.559203125000003
2020.97720.670626041666722.03-1.359373958333330.306373958333335
2122.89723.416642708333322.14870833333331.267934375-0.519642708333333
2222.78523.068388541666722.2666250.801763541666667-0.283388541666660
2322.76922.551576041666722.33808333333330.2134927083333340.217423958333335
2419.63720.236301041666722.3877083333333-2.15140729166667-0.599301041666664
2520.20319.684780208333322.415375-2.730594791666670.518219791666667
2620.4520.692630208333322.5029166666667-1.81028645833333-0.242630208333331
2723.08323.268130208333322.5126250.755505208333333-0.185130208333330
2821.73823.075155208333322.45420833333330.620946874999999-1.33715520833333
2926.76625.329651041666722.55158333333332.778067708333331.43634895833334
3025.2824.549988541666722.70570833333331.844280208333330.730011458333333
3122.57422.327255208333322.5575833333333-0.2303281249999990.246744791666675
3222.72920.796626041666722.156-1.359373958333331.93237395833334
3321.37823.142267708333321.87433333333331.267934375-1.76426770833333
3422.90222.441888541666721.6401250.8017635416666670.460111458333337
3524.98921.533076041666721.31958333333330.2134927083333343.45592395833334
3621.11618.58850937520.7399166666667-2.151407291666672.527490625
3715.16917.249988541666719.9805833333333-2.73059479166667-2.08098854166667
3815.84617.341005208333319.1512916666667-1.81028645833333-1.49500520833334
3920.92719.16179687518.40629166666670.7555052083333331.765203125
4018.27318.432655208333317.81170833333330.620946874999999-0.159655208333334
4122.53819.79123437517.01316666666672.778067708333332.746765625
4215.59618.044863541666716.20058333333331.84428020833333-2.44886354166667
4314.03415.550713541666715.7810416666667-0.230328124999999-1.51671354166667
4411.36614.228792708333315.5881666666667-1.35937395833333-2.86279270833333
4514.86116.533142708333315.26520833333331.267934375-1.67214270833333
4615.14915.706930208333314.90516666666670.801763541666667-0.557930208333332
4713.57714.71153437514.49804166666670.213492708333334-1.13453437500000
4813.02612.091467708333314.242875-2.151407291666670.934532291666667
4913.1911.539863541666714.2704583333333-2.730594791666671.65013645833333
5013.19612.511505208333314.3217916666667-1.810286458333330.684494791666669
5115.82615.11367187514.35816666666670.7555052083333330.712328125000003
5214.73314.941613541666714.32066666666670.620946874999999-0.208613541666665
5316.30717.016442708333314.2383752.77806770833333-0.709442708333334
5415.70315.95694687514.11266666666671.84428020833333-0.253946875000000
5514.58913.662213541666713.8925416666667-0.2303281249999990.926786458333334
5612.04312.333501041666713.692875-1.35937395833333-0.290501041666666
5715.05714.806392708333313.53845833333331.2679343750.250607291666666
5814.05314.158638541666713.3568750.801763541666667-0.105638541666664
5912.69813.341617708333313.1281250.213492708333334-0.643617708333332
6010.88810.781592708333312.933-2.151407291666670.106407291666667
6110.04510.04344687512.7740416666667-2.730594791666670.00155312500000093
6211.54910.890255208333312.7005416666667-1.810286458333330.658744791666667
6313.76713.506713541666712.75120833333330.7555052083333330.260286458333333
6412.43413.38657187512.7656250.620946874999999-0.952571875
6513.11615.532692708333312.7546252.77806770833333-2.41669270833333
6614.21114.58432187512.74004166666671.84428020833333-0.373321874999998
6712.26612.49367187512.724-0.230328124999999-0.227671874999999
6812.60211.33808437512.6974583333333-1.359373958333331.263915625
6915.71413.85518437512.587251.2679343751.858815625
7013.74213.287430208333312.48566666666670.8017635416666670.454569791666666
7112.74512.631451041666712.41795833333330.2134927083333340.113548958333331
7210.49110.229467708333312.380875-2.151407291666670.261532291666667
7310.0579.6400302083333312.370625-2.730594791666670.416969791666668
7410.910.491005208333312.3012916666667-1.810286458333330.40899479166667
7511.77112.92092187512.16541666666670.755505208333333-1.14992187500000
7611.99212.606238541666711.98529166666670.620946874999999-0.614238541666667
7711.93314.634776041666711.85670833333332.77806770833333-2.70177604166667
7814.50413.701280208333311.8571.844280208333330.802719791666666
7911.72711.66479687511.895125-0.2303281249999990.0622031250000017
8011.47710.50983437511.8692083333333-1.359373958333330.967165625000002
8113.57813.215351041666711.94741666666671.2679343750.362648958333333
8211.55512.931930208333312.13016666666670.801763541666667-1.37693020833333
8311.84612.495326041666712.28183333333330.213492708333334-0.649326041666663
8411.39710.200342708333312.35175-2.151407291666671.19665729166667
8510.0669.6050302083333312.335625-2.730594791666670.460969791666669
8610.26910.438838541666712.249125-1.81028645833333-0.169838541666666
8714.27912.884338541666712.12883333333330.7555052083333331.39466145833333
8813.8712.817780208333312.19683333333330.6209468749999991.05221979166667
8913.69515.15673437512.37866666666672.77806770833333-1.461734375
9014.4214.22769687512.38341666666671.844280208333330.192303125000000
9111.42412.15317187512.3835-0.230328124999999-0.729171875
929.70411.17483437512.5342083333333-1.35937395833333-1.470834375
9312.46413.990642708333312.72270833333331.267934375-1.52664270833333
9414.30113.715930208333312.91416666666670.8017635416666670.585069791666667
9513.46413.333742708333313.120250.2134927083333340.130257291666666
969.89311.098217708333313.249625-2.15140729166667-1.20521770833333
9711.57210.626155208333313.35675-2.730594791666670.945844791666666
9812.3811.796713541666713.607-1.810286458333330.583286458333335
9916.69214.753338541666713.99783333333330.7555052083333331.93866145833334
10016.05214.946405208333314.32545833333330.6209468749999991.10559479166667
10116.45917.242067708333314.4642.77806770833333-0.78306770833333
10214.76116.384238541666714.53995833333331.84428020833333-1.62323854166667
10313.65414.344463541666714.5747916666667-0.230328124999999-0.690463541666666
10413.4813.275167708333314.6345416666667-1.359373958333330.204832291666667
10518.06815.820101041666714.55216666666671.2679343752.24789895833333
10616.5615.288680208333314.48691666666670.8017635416666671.27131979166667
10714.5314.947076041666714.73358333333330.213492708333334-0.417076041666668
10810.6512.81650937514.9679166666667-2.15140729166667-2.166509375
10911.65112.307238541666715.0378333333333-2.73059479166667-0.656238541666662
11013.73513.174713541666714.985-1.810286458333330.560286458333334
11113.3615.665088541666714.90958333333330.755505208333333-2.30508854166666
11217.81815.453030208333314.83208333333330.6209468749999992.36496979166667
11320.61317.466526041666714.68845833333332.778067708333333.14647395833333
11416.23116.522280208333314.6781.84428020833333-0.291280208333330
11513.86214.48317187514.7135-0.230328124999999-0.621171875
11612.00413.220667708333314.5800416666667-1.35937395833333-1.21666770833333
11717.73415.760601041666714.49266666666671.2679343751.97339895833334
11815.03415.184430208333314.38266666666670.801763541666667-0.150430208333333
11912.60914.295492708333314.0820.213492708333334-1.68649270833333
12012.3211.82750937513.9789166666667-2.151407291666670.492490625000004
12110.83311.396988541666714.1275833333333-2.73059479166667-0.563988541666665
12211.3512.387130208333314.1974166666667-1.81028645833333-1.03713020833333
12313.64814.91304687514.15754166666670.755505208333333-1.26504687500000
12414.8914.743905208333314.12295833333330.6209468749999990.146094791666668
12516.32516.89935937514.12129166666672.77806770833333-0.574359375
12618.04515.96332187514.11904166666671.844280208333332.08167812500000
12715.616NANA-0.230328124999999NA
12811.926NANA-1.35937395833333NA
12916.855NANA1.267934375NA
13015.083NANA0.801763541666667NA
13112.52NANA0.213492708333334NA
13212.355NANA-2.15140729166667NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/1ahf71292683662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/1ahf71292683662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/2ahf71292683662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/2ahf71292683662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/3l8ws1292683662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/3l8ws1292683662.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/4l8ws1292683662.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292683554od4uff0rv0m56ql/4l8ws1292683662.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = No Linear Trend ;
 
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