Home » date » 2009 » Sep » 22 »

multiplicative instead of additive

*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: Tue, 22 Sep 2009 02:36:12 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo.htm/, Retrieved Tue, 22 Sep 2009 10:37:47 +0200
 
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/2009/Sep/22/t1253608661mz64605c9fweodo.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19509 21971
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
113328NANA0.997446154479086NA
212873NANA0.952612175250179NA
314000NANA1.03439377187718NA
413477NANA0.990786621874973NA
514237NANA1.02155910700688NA
613674NANA0.981559624901186NA
71352913938.936902428813937.95833333330.9785690954500890.991916327070772
81405814034.495271451714033.50.9952714517252921.00650513059493
91297514125.910794760114124.95833333330.9524614267983430.964434626586157
101432614228.619663414614227.6250.994663414615391.01231667993762
111400814336.267035165114335.29166666670.9753684983917131.00184578306806
121619314417.375308657614416.251.125308657629700.9981673285668
131448314506.289112821114505.29166666670.9974461544790861.00101965408011
141401114605.702612175214604.750.9526121752501791.00706818930871
151505714709.242727105214708.20833333331.034393771877180.98967541219641
161488414811.199119955214810.20833333330.9907866218749731.01432787297848
171541414890.854892440314889.83333333331.021559107006881.01335594167248
181444014971.231559624914970.250.9815596249011860.982701127233388
191490015056.436902428815055.45833333330.9785690954500891.01134839856085
201507415131.411938118415130.41666666670.9952714517252921.00100460640068
211444215195.327461426815194.3750.9524614267983430.997923163673607
221530715262.869663414615261.8750.994663414615391.00833779477249
231493815328.475368498415327.50.9753684983917130.999199953807792
241719315402.875308657615401.751.125308657629700.991996028282445
251552815491.580779487815490.58333333330.9974461544790861.00498201475996
261476515574.660945508615573.70833333330.9526121752501790.995234188326474
271583815664.701060438515663.66666666671.034393771877180.977509550329222
281572315766.032453288515765.04166666670.9907866218749731.00660749009184
291615015846.52155910715845.51.021559107006880.997707137407307
301548615948.648226291615947.66666666670.9815596249011860.989294100759252
311598616052.478569095416051.50.9785690954500891.01773026464026
321598316121.620271451716120.6250.9952714517252920.996173253302707
331569216213.077461426816212.1250.9524614267983431.01622753806839
341649016302.119663414616301.1250.994663414615391.01701400570137
351568616351.225368498416350.250.9753684983917130.983601286553775
361889716403.750308657616402.6251.125308657629701.02378284218309
371631616453.330779487816452.33333333330.9974461544790860.994252602326266
381563616481.327612175216480.3750.9526121752501790.995961256229526
391716316507.242727105216506.20833333331.034393771877181.00521736703713
401653416512.324119955216511.33333333330.9907866218749731.01068461395776
411651816536.479892440316535.45833333331.021559107006880.977862349098764
421637516572.314892958216571.33333333330.9815596249011861.00671645989863
431629016596.686902428816595.70833333330.9785690954500891.00307589670141
441635216643.161938118416642.16666666670.9952714517252920.987232546377255
451594316702.744128093516701.79166666670.9524614267983431.00221197474349
461636216751.702996747916750.70833333330.994663414615390.982035228512496
471639316809.558701831716808.58333333330.9753684983917130.999904682671003
481905116877.875308657616876.751.125308657629701.00313018702050
491674716930.372446154516929.3750.9974461544790860.99176010671743
501632017001.577612175217000.6250.9526121752501791.00771828465007
511791017092.326060438517091.29166666671.034393771877181.01305914959772
521696117175.615786621917174.6250.9907866218749730.99674497998709
531748017257.729892440317256.70833333331.021559107006880.991562216520764
541704917346.9815596249173460.9815596249011861.00134303814751
551687917440.395235762117439.41666666670.9785690954500890.989061422914232
561747317524.9952714517175240.9952714517252921.00182689237015
571699817610.702461426817609.750.9524614267983431.01343812451058
581730717693.869663414617692.8750.994663414615390.983438577181112
591741817796.475368498417795.50.9753684983917131.00350459703245
602016917925.500308657617924.3751.125308657629700.999927896016888
611787118035.955779487818034.95833333330.9974461544790860.993445967410447
621722618143.285945508618142.33333333330.9526121752501790.99672459029201
631906218248.576060438518247.54166666671.034393771877181.00989960942047
641780418360.740786621918359.750.9907866218749730.97874755126211
651910018487.27155910718486.251.021559107006881.01139556637101
661852218594.148226291618593.16666666670.9815596249011861.01488733202451
671806018709.561902428818708.58333333330.9785690954500890.98647332754123
681886918830.411938118418829.41666666670.9952714517252921.00686320838303
691812718931.035794760118930.08333333330.9524614267983431.00537020984653
701887119040.577996747919039.58333333330.994663414615390.996463351323665
711889019146.892035165119145.91666666670.9753684983917131.01154933429567
722126319230.958641991019229.83333333331.125308657629700.982601355359033
731954719324.705779487819323.70833333330.9974461544790861.01414529213454
741845019428.994278841919428.04166666670.9526121752501790.996899128621962
752025419498.826060438519497.79166666671.034393771877181.00424454884781
761924019566.782453288519565.79166666670.9907866218749730.99249312915148
772021619638.729892440319637.70833333331.021559107006881.00772242635843
781942019693.9815596249196930.9815596249011861.00466357936546
7919415NANA0.978569095450089NA
8020018NANA0.995271451725292NA
8118652NANA0.952461426798343NA
8219978NANA0.99466341461539NA
8319509NANA0.975368498391713NA
8421971NANA1.12530865762970NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/1xpr81253608570.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/1xpr81253608570.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/2a2h71253608570.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/2a2h71253608570.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/3l9gu1253608570.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/3l9gu1253608570.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/4lt7s1253608570.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Sep/22/t1253608661mz64605c9fweodo/4lt7s1253608570.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])
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