Home » date » 2008 » May » 19 » attachments

decomposition of Multitive - Katrien Devillé - oef. 2

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 19 May 2008 12:48:31 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2.htm/, Retrieved Mon, 19 May 2008 20:55:36 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
20,18 20,19 20,3 20,47 20,47 20,46 20,46 20,46 20,52 20,64 20,65 20,66 20,66 20,66 20,67 20,71 20,73 20,73 20,74 20,74 20,75 20,75 20,77 20,78 20,78 20,8 20,84 20,85 20,86 20,86 20,86 20,86 20,9 20,92 20,95 20,95 20,95 20,96 21,1 21,18 21,19 21,19 21,19 21,19 21,19 21,21 21,22 21,22 21,22 21,23 21,41 21,42 21,43 21,44 21,44 21,44 21,48 21,53 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,57 21,6 21,61 21,6 21,6 21,71 21,75 21,84 21,85 21,92 21,92 21,93 22 22 21,99 22,01 22,01 22,06 22,03 22,05 22,05 22,06 22,06 22,13 22,06 22,25 22,28 22,18
 
Text written by user:
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
120.18NANA0.998345170366853NA
220.19NANA0.998549080320233NA
320.3NANA1.00080722987181NA
420.47NANA1.00168075967552NA
520.47NANA1.00127391259998NA
620.46NANA1.00100925441320NA
720.4620.479330313957320.4751.000211492745170.999056106148932
820.4620.502166672724220.51458333333330.9993947398098520.997943306510121
920.5220.548983520377920.54958333333330.9999708114298110.99858953994736
1020.6420.575562153853120.5751.000027322179981.00313176600790
1120.6520.590030813940120.59583333333330.9997182673165341.00291253503221
1220.6620.597545325253920.61791666666670.999011959271051.00303214163435
1320.6620.606676270680520.64083333333330.9983451703668531.00258769190233
1420.6620.63418462058420.66416666666670.9985490803202331.00125109762710
1520.6720.702114552910820.68541666666671.000807229871810.998448730788888
1620.7120.734374358300220.69958333333331.001680759675520.998824446888102
1720.7320.735548335018420.70916666666671.001273912599980.999732424003035
1820.7320.740077577062920.71916666666671.001009254413200.999514101284074
1920.7420.733550735030120.72916666666671.000211492745171.00031105453438
2020.7420.727446903656320.740.9993947398098521.00060562675191
2120.7520.752310918701920.75291666666670.9999708114298110.999888642825805
2220.7520.766400701169220.76583333333331.000027322179980.999210228994174
2320.7720.771229749891220.77708333333330.9997182673165340.999940795518319
2420.7820.767377358330020.78791666666670.999011959271051.00060781106118
2520.7820.763915635013320.79833333333330.9983451703668531.00077463062697
2620.820.778142112996820.80833333333330.9985490803202331.00105196542041
2720.8420.836389522918720.81958333333331.000807229871811.0001732774806
2820.8520.867931792923620.83291666666671.001680759675520.999140700999912
2920.8620.87405789292820.84751.001273912599980.9993265376095
3020.8620.883138483006120.86208333333331.001009254413200.998892001648844
3120.8620.880665175421320.876251.000211492745170.999010320061754
3220.8620.877356114627820.890.9993947398098520.999168663190276
3320.920.906889739968820.90750.9999708114298110.99967045600496
3420.9220.932655243481620.93208333333331.000027322179980.99939543056844
3520.9520.953678333676520.95958333333330.9997182673165340.999824454035328
3620.9520.966347240218120.98708333333330.999011959271050.99922031052759
3720.9520.979807778105121.01458333333330.9983451703668530.998579215862206
3820.9621.011552960521721.04208333333330.9985490803202330.997546446918105
3921.121.084923318336821.06791666666671.000807229871811.00071504560086
4021.1821.127534056472821.09208333333331.001680759675521.00248329707513
4121.1921.142315862012121.11541666666671.001273912599981.00225538859126
4221.1921.159250202348421.13791666666671.001009254413201.00145325554344
4321.1921.164891941276421.16041666666671.000211492745171.00118630696501
4421.1921.170095490497121.18291666666670.9993947398098521.00094021822017
4521.1921.206464328893021.20708333333330.9999708114298110.999223617448076
4621.2121.230580049881021.231.000027322179980.999030641186784
4721.2221.244013180476321.250.9997182673165340.99886964952091
4821.2221.249400628678221.27041666666670.999011959271050.998616401978013
4921.2221.256016608573321.291250.9983451703668530.99830558052167
5021.2321.281161212208221.31208333333330.9985490803202330.997595938882376
5121.4121.351805246302621.33458333333331.000807229871811.00272551913180
5221.4221.395901026669221.361.001680759675521.00112633598841
5321.4321.413911410804821.38666666666671.001273912599981.00075131482925
5421.4421.434944834501421.41333333333331.001009254413201.00023583757913
5521.4421.444534404456421.441.000211492745170.999788551974555
5621.4421.453257333443221.466250.9993947398098520.99938203633895
5721.4821.483956229064721.48458333333330.9999708114298110.999815851930503
5821.5321.495587290258721.4951.000027322179981.00160091972723
5921.5421.49852478936421.50458333333330.9997182673165341.00192921193628
6021.5421.492077283784521.51333333333330.999011959271051.00222978521726
6121.5421.486051974912021.52166666666670.9983451703668531.00251083936458
6221.5421.498761699294621.530.9985490803202331.00191817097571
6321.5421.555302716376621.53791666666671.000807229871810.999290071840887
6421.5421.58079460022621.54458333333331.001680759675520.99810968034395
6521.5421.577870013993121.55041666666671.001273912599980.998244960509609
6621.5421.577588653255321.55583333333331.001009254413200.998257977114156
6721.5421.565393293163121.56083333333331.000211492745170.998822498026448
6821.5421.557360952173421.57041666666670.9993947398098520.999194662453723
6921.5721.585619928226821.586250.9999708114298110.99927637342459
7021.621.60809036400421.60751.000027322179980.999625586349016
7121.6121.626821967003021.63291666666670.9997182673165340.999222171106386
7221.621.640264057743021.66166666666670.999011959271050.998139391569548
7321.621.657434562491621.69333333333330.9983451703668530.997348044048067
7421.7121.693894832073921.72541666666670.9985490803202331.00074238250212
7521.7521.777148318998221.75958333333331.000807229871810.998753357482785
7621.8421.830797423161721.79416666666671.001680759675521.00042154103031
7721.8521.854471932348821.82666666666671.001273912599980.999795376783174
7821.9221.881645214283321.85958333333331.001009254413201.00175282915618
7921.9221.898380369289521.893751.000211492745171.00098727076368
8021.9321.912146084805921.92541666666670.9993947398098521.00081479537079
812221.951025928903421.95166666666670.9999708114298111.00223106069189
822221.972683658548821.97208333333331.000027322179981.00124319550018
8321.9921.982971599734521.98916666666670.9997182673165341.0003197202086
8422.0121.981593143827322.00333333333330.999011959271051.00129230197224
8522.0121.978568925626322.0150.9983451703668531.00143007829491
8622.0621.997204115221122.02916666666670.9985490803202331.0028547211932
8722.0322.057791346374722.041.000807229871810.998740066675838
8822.0522.089982319727722.05291666666671.001680759675520.998190024819893
8922.0522.103538818108122.07541666666671.001273912599980.997577816903046
9022.0622.116882389070422.09458333333331.001009254413200.997428100938019
9122.06NANA1.00021149274517NA
9222.13NANA0.999394739809852NA
9322.06NANA0.999970811429811NA
9422.25NANA1.00002732217998NA
9522.28NANA0.999718267316534NA
9622.18NANA0.99901195927105NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/1wt7v1211222909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/1wt7v1211222909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/2hyvz1211222909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/2hyvz1211222909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/3djdf1211222909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/3djdf1211222909.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/4yqi31211222909.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211223331d76gt9fv8tycsq2/4yqi31211222909.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