Home » date » 2011 » May » 20 »

datareeks - decompositiemodel gemiddelde gokuitgaven - Frederik Verbraken

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 20 May 2011 14:31:28 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11.htm/, Retrieved Fri, 20 May 2011 16:28:51 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5.81 5.76 5.99 6.12 6.03 6.25 5.80 5.67 5.89 5.91 5.86 6.07 6.27 6.68 6.77 6.71 6.62 6.50 5.89 6.05 6.43 6.47 6.62 6.77 6.70 6.95 6.73 7.07 7.28 7.32 6.76 6.93 6.99 7.16 7.28 7.08 7.34 7.87 6.28 6.30 6.36 6.28 5.89 6.04 5.96 6.10 6.26 6.02 6.25 6.41 6.22 6.57 6.18 6.26 6.10 6.02 6.06 6.35 6.21 6.48 6.74 6.53 6.80 6.75 6.56 6.66 6.18 6.40 6.43 6.54 6.44 6.64 6.82 6.97 7.00 6.91 6.74 6.98 6.37 6.56 6.63 6.87 6.68 6.75 6.84 7.15 7.09 6.97 7.15
 
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'Gwilym Jenkins' @ www.wessa.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15.81NANA0.160700231481481NA
25.76NANA0.365561342592593NA
35.99NANA0.0859085648148153NA
46.12NANA0.15910300925926NA
56.03NANA0.0517418981481485NA
66.25NANA0.0846585648148148NA
75.85.556811342592595.94916666666667-0.3923553240740750.243188657407408
85.675.742089120370376.00666666666667-0.264577546296297-0.0720891203703706
95.895.890769675925936.0775-0.186730324074074-0.000769675925926805
105.916.108825231481486.13458333333333-0.025758101851852-0.19882523148148
115.866.152505787037046.18375-0.0312442129629633-0.292505787037037
126.076.211741898148156.21875-0.00700810185185185-0.141741898148148
136.276.393616898148156.232916666666670.160700231481481-0.123616898148148
146.686.618061342592596.25250.3655613425925930.0619386574074063
156.776.376741898148156.290833333333330.08590856481481530.393258101851853
166.716.495769675925936.336666666666670.159103009259260.214230324074074
176.626.443408564814826.391666666666670.05174189814814850.176591435185185
186.56.537158564814826.45250.0846585648148148-0.0371585648148152
195.896.107228009259266.49958333333333-0.392355324074075-0.21722800925926
206.056.26417245370376.52875-0.264577546296297-0.214172453703705
216.436.351603009259266.53833333333333-0.1867303240740740.0783969907407407
226.476.525908564814816.55166666666667-0.025758101851852-0.055908564814815
236.626.56292245370376.59416666666667-0.03124421296296330.0570775462962958
246.776.648825231481486.65583333333333-0.007008101851851850.121174768518519
256.76.886950231481486.726250.160700231481481-0.186950231481481
266.957.164728009259266.799166666666670.365561342592593-0.214728009259259
276.736.945075231481486.859166666666670.0859085648148153-0.215075231481481
287.077.070353009259266.911250.15910300925926-0.000353009259259629
297.287.019241898148156.96750.05174189814814850.260758101851852
307.327.092575231481487.007916666666670.08465856481481480.227424768518519
316.766.655144675925927.0475-0.3923553240740750.104855324074075
326.936.84792245370377.1125-0.2645775462962970.082077546296297
336.996.945353009259267.13208333333333-0.1867303240740740.0446469907407412
347.167.055491898148157.08125-0.0257581018518520.104508101851853
357.286.979589120370377.01083333333333-0.03124421296296330.300410879629629
367.086.922158564814816.92916666666667-0.007008101851851850.157841435185187
377.347.010283564814816.849583333333330.1607002314814810.329716435185186
387.877.141811342592596.776250.3655613425925930.728188657407408
396.286.782158564814816.696250.0859085648148153-0.502158564814814
406.36.768269675925936.609166666666670.15910300925926-0.468269675925925
416.366.574241898148156.52250.0517418981481485-0.214241898148148
426.286.520491898148156.435833333333330.0846585648148148-0.240491898148147
435.895.953894675925936.34625-0.392355324074075-0.0638946759259262
446.045.97542245370376.24-0.2645775462962970.0645775462962961
455.965.989936342592596.17666666666667-0.186730324074074-0.0299363425925918
466.16.159658564814816.18541666666667-0.025758101851852-0.0596585648148151
476.266.15792245370376.18916666666667-0.03124421296296330.102077546296297
486.026.173825231481486.18083333333333-0.00700810185185185-0.153825231481481
496.256.349450231481486.188750.160700231481481-0.0994502314814811
506.416.562228009259266.196666666666670.365561342592593-0.152228009259259
516.226.285908564814816.20.0859085648148153-0.0659085648148148
526.576.373686342592596.214583333333330.159103009259260.196313657407408
536.186.274658564814816.222916666666670.0517418981481485-0.0946585648148144
546.266.324658564814816.240.0846585648148148-0.0646585648148141
556.15.887228009259266.27958333333333-0.3923553240740750.212771990740741
566.026.04042245370376.305-0.264577546296297-0.0204224537037039
576.066.147436342592596.33416666666667-0.186730324074074-0.087436342592592
586.356.340075231481486.36583333333333-0.0257581018518520.00992476851851976
596.216.35792245370376.38916666666667-0.0312442129629633-0.147922453703703
606.486.414658564814816.42166666666667-0.007008101851851850.0653414351851866
616.746.602366898148156.441666666666670.1607002314814810.137633101851852
626.536.826394675925936.460833333333330.365561342592593-0.296394675925925
636.86.577991898148156.492083333333330.08590856481481530.222008101851851
646.756.674519675925936.515416666666670.159103009259260.075480324074074
656.566.584658564814816.532916666666670.0517418981481485-0.024658564814815
666.666.633825231481486.549166666666670.08465856481481480.0261747685185192
676.186.166811342592596.55916666666667-0.3923553240740750.013188657407408
686.46.316255787037046.58083333333333-0.2645775462962970.083744212962964
696.436.420769675925926.6075-0.1867303240740740.00923032407407476
706.546.596741898148156.6225-0.025758101851852-0.0567418981481476
716.446.60542245370376.63666666666667-0.0312442129629633-0.165422453703703
726.646.650491898148156.6575-0.00700810185185185-0.0104918981481479
736.826.839450231481486.678750.160700231481481-0.0194502314814811
746.977.058894675925936.693333333333330.365561342592593-0.0888946759259266
7576.794241898148156.708333333333330.08590856481481530.205758101851853
766.916.889519675925936.730416666666670.159103009259260.0204803240740743
776.746.805908564814816.754166666666670.0517418981481485-0.0659085648148139
786.986.853408564814816.768750.08465856481481480.126591435185186
796.376.381811342592596.77416666666667-0.392355324074075-0.0118113425925923
806.566.51792245370376.7825-0.2645775462962970.0420775462962961
816.636.607019675925936.79375-0.1867303240740740.0229803240740729
826.876.774241898148156.8-0.0257581018518520.0957581018518514
836.686.788339120370376.81958333333333-0.0312442129629633-0.108339120370371
846.75NANA-0.00700810185185185NA
856.84NANANANA
867.15NANANANA
877.09NANANANA
886.97NANANANA
897.15NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/1d5g51305901885.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/1d5g51305901885.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/2uid11305901885.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/2uid11305901885.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/3rhs21305901885.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/3rhs21305901885.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/4sguj1305901885.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305901728a8yn1qhwc5cka11/4sguj1305901885.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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