Home » date » 2009 » Dec » 04 »

decomposition

*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: Fri, 04 Dec 2009 02:04:33 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk.htm/, Retrieved Fri, 04 Dec 2009 10:05:44 +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/2009/Dec/04/t12599175396vx5yy6yrlcglgk.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 «
5.7 6.1 6 5.9 5.8 5.7 5.6 5.4 5.4 5.5 5.6 5.7 5.9 6.1 6 5.8 5.8 5.7 5.5 5.3 5.2 5.2 5 5.1 5.1 5.2 4.9 4.8 4.5 4.5 4.4 4.4 4.2 4.1 3.9 3.8 3.9 4.2 4.1 3.8 3.6 3.7 3.5 3.4 3.1 3.1 3.1 3.2 3.3 3.5 3.6 3.5 3.3 3.2 3.1 3.2 3 3 3.1 3.4
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15.7NANA1.01069177570925NA
26.1NANA1.07078568749111NA
36NANA1.06408636874514NA
45.9NANA1.03482005530154NA
55.8NANA1.00184825661367NA
65.7NANA1.00770313813477NA
75.65.655551960280785.708333333333330.9907536280783840.990177446751277
85.45.588683617620685.716666666666670.9776122946275240.96623827174153
95.45.437373208398935.716666666666670.95114400146920.99312660599769
105.55.486147528663975.71250.960375934995881.00252499067217
115.65.446183912468455.708333333333330.9540760138630861.02824291100038
125.75.571920406706355.708333333333330.9761028449704561.02298661573476
135.95.765154337274845.704166666666671.010691775709251.02338977498890
146.16.099016811668095.695833333333331.070785687491111.00016120439774
1566.047557529034865.683333333333331.064086368745140.99213607662159
165.85.859668563144995.66251.034820055301540.989817075402475
175.85.635396443451885.6251.001848256613671.02920886901211
185.75.617944995101325.5751.007703138134771.01460587545272
195.55.465657514899095.516666666666670.9907536280783841.00628332181577
205.35.323913621159065.445833333333330.9776122946275240.995508262744156
215.25.100509707878595.36250.95114400146921.01950595093815
225.25.065983057103275.2750.960375934995881.02645428170330
2354.94131868846595.179166666666670.9540760138630861.01187563790837
245.14.953721938225065.0750.9761028449704561.02952892059730
255.15.032402799885634.979166666666671.010691775709251.01343239060989
265.25.24238826167524.895833333333331.070785687491110.991914322335664
274.95.125349342789084.816666666666671.064086368745140.956032393556524
284.84.893836511530224.729166666666671.034820055301540.98082557287945
294.54.646071290045894.63751.001848256613670.968560256413017
304.54.57245298928654.53751.007703138134770.984154459443048
314.44.392341084480844.433333333333330.9907536280783841.00174369780758
324.44.244466712507834.341666666666670.9776122946275241.03664377600932
334.24.058214406268594.266666666666670.95114400146921.03493792578145
344.14.025575794191074.191666666666670.960375934995881.01848784114718
353.93.923637607011944.11250.9540760138630860.993975588629872
363.83.945082331755594.041666666666670.9761028449704560.963224511035482
373.94.013288592712143.970833333333331.010691775709250.971771630647777
384.24.167140967152893.891666666666671.070785687491111.0078852702863
394.14.047961894434623.804166666666671.064086368745141.01285538424582
403.83.846081205537403.716666666666671.034820055301540.98801866027398
413.63.648397401168113.641666666666671.001848256613670.986734613627174
423.73.610936244982913.583333333333331.007703138134771.02466500347128
433.53.500662819210293.533333333333330.9907536280783840.9998106589396
443.43.401276108391593.479166666666670.9776122946275240.999624814819225
453.13.261631305038133.429166666666670.95114400146920.950444642596952
463.13.261276612590183.395833333333330.960375934995880.950548011791589
473.13.216031230063493.370833333333330.9540760138630860.963920987775608
483.23.257743245088903.33750.9761028449704560.98227507794669
493.33.335282859840523.31.010691775709250.989421329067662
503.53.506823126533373.2751.070785687491110.998054328294534
513.63.471581778031013.26251.064086368745141.03699127089030
523.53.367476929960443.254166666666671.034820055301541.03935381675833
533.33.256006833994423.251.001848256613671.01351138626193
543.23.283432725089113.258333333333331.007703138134770.974589786947182
553.1NANA0.990753628078384NA
563.2NANA0.977612294627524NA
573NANA0.9511440014692NA
583NANA0.96037593499588NA
593.1NANA0.954076013863086NA
603.4NANA0.976102844970456NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/1sin81259917471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/1sin81259917471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/263sr1259917471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/263sr1259917471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/3l54b1259917471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/3l54b1259917471.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/46iuy1259917471.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599175396vx5yy6yrlcglgk/46iuy1259917471.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