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 15:39:32 +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/t1292686663gf2biqgweh6pyvw.htm/, Retrieved Sat, 18 Dec 2010 16:37:45 +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/t1292686663gf2biqgweh6pyvw.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
114.458NANA0.825300357628502NA
213.594NANA0.884113445668506NA
317.814NANA1.05288526926215NA
420.235NANA1.04810317587357NA
521.811NANA1.16912238239348NA
621.439NANA1.12365575859469NA
721.39319.022646963381219.40066666666670.9805151178678341.12460689835551
819.83117.93735588084119.79183333333330.9063008756561731.10556985833021
920.46822.067868681465520.17833333333331.093641794736870.927502347210848
1021.0821.422655998609120.34258333333331.053094174303120.984004971249536
1121.620.6248037249820.54020833333331.004118526466421.04728269359668
1217.3917.919344823901320.85708333333330.8591491215486950.970459588277178
1317.84817.363219124026821.03866666666670.8253003576285021.02791998836796
1419.59218.67343376208521.12108333333330.8841134456685061.04919107270887
1521.09222.394913547425421.27004166666671.052885269262150.941821005708897
1620.89922.473733993840721.44229166666671.048103175873570.92993002434432
1725.8925.208665522600821.56204166666671.169122382393481.02702778839238
1824.96524.388245955448521.7043751.123655758594691.02364885304196
1922.22521.469481585223821.8961250.9805151178678341.03519034270935
2020.97719.965808290705522.030.9063008756561731.05064616941981
2122.89724.222753132770222.14870833333331.093641794736870.945268272128134
2222.78523.448853068892222.2666251.053094174303120.971689316021479
2322.76922.430083320750822.33808333333331.004118526466421.01510991619615
2419.63719.234379948071722.38770833333330.8591491215486951.0209323125058
2520.20318.49941700387722.4153750.8253003576285021.09208846936993
2620.4519.895131191757922.50291666666670.8841134456685061.02788967827827
2723.08323.703211234922722.5126251.052885269262150.97383429490731
2821.73823.534327065893422.45420833333331.048103175873570.923672044632342
2926.76626.365560833411722.55158333333331.169122382393481.01518796315839
3025.2825.513399921721322.70570833333331.123655758594690.99085186911829
3122.57422.118051480896822.55758333333330.9805151178678341.02061431674924
3222.72920.080002201038222.1560.9063008756561731.13192218668307
3321.37823.922685165339221.87433333333331.093641794736870.89362878172948
3422.90222.789089568691321.6401251.053094174303121.00495458280456
3524.98921.407388601544821.31958333333331.004118526466421.16730725382342
3621.11617.818681185159820.73991666666670.8591491215486951.18504842084421
3715.16916.489982570626119.98058333333330.8253003576285020.91989181522974
3815.84616.931914464419219.15129166666670.8841134456685060.935865819148735
3920.92719.379713357575918.40629166666671.052885269262151.07984053292611
4018.27318.668508071900317.81170833333331.048103175873570.978814157490407
4122.53819.890473945390617.01316666666671.169122382393481.1331052272499
4215.59618.203878755093116.20058333333331.123655758594690.856740489750656
4314.03415.473549929868915.78104166666670.9805151178678340.906967054335084
4411.36614.127569099874415.58816666666670.9063008756561730.804526236583835
4514.86116.694669838698915.26520833333331.093641794736870.890164354466694
4615.14915.696544183683714.90516666666671.053094174303120.965116895969186
4713.57714.557752234982114.49804166666671.004118526466420.932630242694652
4813.02612.236753544577914.2428750.8591491215486951.06449802658417
4913.1911.777414366022614.27045833333330.8253003576285021.11994021693358
5013.19612.662088578563214.32179166666670.8841134456685061.042166141717
5115.82615.117502176944114.35816666666671.052885269262151.04686606390151
5214.73315.009536213960114.32066666666671.048103175873570.981575965438368
5316.30716.646402901411714.2383751.169122382393480.979611036485068
5415.70315.857779169127314.11266666666671.123655758594690.990239543161971
5514.58913.621847129775513.89254166666670.9805151178678341.07100012656217
5612.04312.409864602750513.6928750.9063008756561730.970437662738947
5715.05714.80622386963713.53845833333331.093641794736871.01693721049816
5814.05314.06604724939513.3568751.053094174303120.999072429577148
5912.69813.18219353026713.1281251.004118526466420.963269122915297
6010.88811.111375588989312.9330.8591491215486950.97989667551058
6110.04510.542421155861412.77404166666670.8253003576285020.952817180369917
6211.54911.228719654773112.70054166666670.8841134456685061.02852331833672
6313.76713.425559419459412.75120833333331.052885269262151.02543213060051
6412.43413.37969210451112.7656251.048103175873570.9293188440269
6513.11614.911717566535412.7546251.169122382393480.879576745031348
6614.21114.315421183486212.74004166666671.123655758594690.992705685557706
6712.26612.476074359750312.7240.9805151178678340.983161822084995
6812.60211.507717606107812.69745833333330.9063008756561731.09509117544833
6915.71413.765942680801712.587251.093641794736871.1415128164027
7013.74213.148582828957312.48566666666671.053094174303121.04513164488996
7112.74512.469102023388112.41795833333331.004118526466421.02212653133276
7210.49110.637017880254212.3808750.8591491215486950.986272667593681
7310.05710.209481236588112.3706250.8253003576285020.985064741973213
7410.910.875737361589912.30129166666670.8841134456685061.00223089594787
7511.77112.808788002769512.16541666666671.052885269262150.918978438666863
7611.99212.561822259604311.98529166666671.048103175873570.954638566934931
7711.93313.861943094011311.85670833333331.169122382393480.860846125183948
7814.50413.323186329657211.8571.123655758594691.08862847378441
7911.72711.663349891427611.8951250.9805151178678341.00545727506805
8011.47710.757073905845511.86920833333330.9063008756561731.0669258295012
8113.57813.066194205802511.94741666666671.093641794736871.03917022708649
8211.55512.774207849992612.13016666666671.053094174303120.904557068093012
8311.84612.332416388972912.28183333333331.004118526466420.960557900931094
8411.39710.611995162089112.351750.8591491215486951.07397335052652
8510.06610.180595724071112.3356250.8253003576285020.988743711352752
8610.26910.829616110174212.2491250.8841134456685060.948233057896896
8714.27912.770269950002412.12883333333331.052885269262151.11814394338605
8813.8712.783539752267312.19683333333331.048103175873571.08498899903996
8913.69514.472176264188112.37866666666671.169122382393480.946298590481431
9014.4213.914697448577412.38341666666671.123655758594691.03631430387114
9111.42412.142208962116312.38350.9805151178678340.940850222199508
929.70411.359763988156912.53420833333330.9063008756561730.854243099602851
9312.46413.914085575580412.72270833333331.093641794736870.895782905193184
9414.30113.599833682646212.91416666666671.053094174303121.05155697736572
9513.46413.174286096871113.120251.004118526466421.02199086166785
969.89311.383403679599613.2496250.8591491215486950.869072228171034
9711.57211.023330551754513.356750.8253003576285021.0497734732411
9812.3812.030131655211413.6070.8841134456685061.02908266965117
9916.69214.738112518253313.99783333333331.052885269262151.13257379324027
10016.05215.014558375011114.32545833333331.048103175873571.0690957135786
10116.45916.910186138939314.4641.169122382393480.973318676965931
10214.76116.337907910976814.53995833333331.123655758594690.903481650186232
10313.65414.290803568940814.57479166666670.9805151178678340.95543962480005
10413.4813.263297927326714.63454166666670.9063008756561731.01633847583464
10518.06815.914857670643414.55216666666671.093641794736871.13529133429376
10616.5615.256087545281414.48691666666671.053094174303121.08546833851395
10714.5314.794263986236914.73358333333331.004118526466420.9821374022741
10810.6512.859672455580714.96791666666670.8591491215486950.828170393669568
10911.65112.410729227957815.03783333333330.8253003576285020.938784481233677
11013.73513.248439983342614.9850.8841134456685061.03672583468463
11113.3615.698080662503114.90958333333331.052885269262150.85105945670875
11217.81815.545553646488114.83208333333331.048103175873571.14617982769789
11320.61317.17260540035414.68845833333331.169122382393481.20034202844812
11416.23116.493019224652814.6781.123655758594690.98411332569957
11513.86214.426809186748414.71350.9805151178678340.960850027234909
11612.00413.213904529603514.58004166666670.9063008756561730.908437015955965
11717.73415.849785983856614.49266666666671.093641794736871.11887946108942
11815.03415.146302477610314.38266666666671.053094174303120.992585485614305
11912.60914.139997089700214.0821.004118526466420.89172578466686
12012.3212.009973974369113.97891666666670.8591491215486951.02581404641613
12110.83311.659499577426514.12758333333330.8253003576285020.929113632027003
12211.3512.552126968758114.19741666666670.8841134456685060.9042292217287
12313.64814.906267069798414.15754166666671.052885269262150.9155880500526
12414.8914.802317481896714.12295833333331.048103175873571.00592356691515
12516.32516.509518155806514.12129166666671.169122382393480.988823528702344
12618.04515.864942474588314.11904166666671.123655758594691.13741351592693
12715.616NANA0.980515117867834NA
12811.926NANA0.906300875656173NA
12916.855NANA1.09364179473687NA
13015.083NANA1.05309417430312NA
13112.52NANA1.00411852646642NA
13212.355NANA0.859149121548695NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/18wp91292686767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/18wp91292686767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/215oc1292686767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/215oc1292686767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/315oc1292686767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292686663gf2biqgweh6pyvw/315oc1292686767.ps (open in new window)


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


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