Home » date » 2008 » Jul » 30 »

Opgave 9 additief decompositiemodel - gem consumptieprijs tomaten - Bram Op de Beeck 2 MAR 04

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 30 Jul 2008 04:28:49 -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/Jul/30/t1217413809t4ynngfc44to3fx.htm/, Retrieved Wed, 30 Jul 2008 10:30:09 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2.1300 1.8700 2.2300 3.0000 2.1200 1.6000 1.1700 1.0200 1.2200 1.8000 2.1300 2.2100 2.3800 1.9900 1.8200 2.4700 1.9400 1.3900 1.1100 0.9700 1.3800 2.3900 1.8800 2.1100 2.1100 2.1700 2.5400 3.1300 2.2500 1.3900 1.3600 1.3300 1.6000 1.9500 2.2300 2.5300 2.3600 1.9500 2.1600 2.7600 2.0900 1.4900 1.1700 1.3000 1.2600 2.1700 2.0300 2.1800 2.6100 2.5800 3.8600 3.8100 2.4100 1.4700 1.3300 1.3800 1.5700 2.6000 2.1800 2.3600 2.2400 2.4100 2.5100 2.9800 1.8700 1.9000 1.4700 1.4500 2.7100 2.9000 2.1100 2.1800 2.2400 2.0500 2.4200 2.7700 1.9900 1.4700 1.0900 0.9300 1.3200 2.0300 2.0400 2.7800 2.8000 3.0300 3.1100 2.7500 2.7800 1.7600 1.2900 1.2800 1.4300 1.7100 1.8900 1.8400
 
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 time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
12.13NANA0.297731481481481NA
21.87NANA0.167245370370370NA
32.23NANA0.527175925925926NA
43NANA0.95988425925926NA
52.12NANA0.063912037037037NA
61.6NANA-0.51275462962963NA
71.171.102453703703701.88541666666667-0.7829629629629630.0675462962962963
81.021.079398148148151.90083333333333-0.821435185185185-0.059398148148148
91.221.464467592592591.88875-0.424282407407407-0.244467592592593
101.82.114398148148151.849583333333330.264814814814815-0.314398148148148
112.131.815370370370371.82-0.004629629629629640.31462962962963
122.212.069050925925931.803750.2653009259259260.140949074074074
132.382.090231481481481.79250.2977314814814810.289768518518519
141.991.955162037037041.787916666666670.1672453703703700.0348379629629636
151.822.319675925925931.79250.527175925925926-0.499675925925925
162.472.783634259259261.823750.95988425925926-0.313634259259259
171.941.901828703703701.837916666666670.0639120370370370.0381712962962968
181.391.310578703703701.82333333333333-0.512754629629630.0794212962962966
191.111.024953703703701.80791666666667-0.7829629629629630.0850462962962966
200.970.9827314814814811.80416666666667-0.821435185185185-0.0127314814814814
211.381.417384259259261.84166666666667-0.424282407407407-0.0373842592592593
222.392.163981481481481.899166666666670.2648148148148150.226018518518519
231.881.934953703703701.93958333333333-0.00462962962962964-0.0549537037037038
242.112.217800925925931.95250.265300925925926-0.107800925925926
252.112.260648148148151.962916666666670.297731481481481-0.150648148148148
262.172.155578703703701.988333333333330.1672453703703700.0144212962962962
272.542.539675925925932.01250.5271759259259260.000324074074073977
283.132.963217592592592.003333333333330.959884259259260.166782407407407
292.252.063495370370371.999583333333330.0639120370370370.186504629629630
301.391.518912037037042.03166666666667-0.51275462962963-0.128912037037037
311.361.276620370370372.05958333333333-0.7829629629629630.0833796296296296
321.331.239398148148152.06083333333333-0.8214351851851850.0906018518518521
331.61.611550925925932.03583333333333-0.424282407407407-0.0115509259259259
341.952.269398148148152.004583333333330.264814814814815-0.319398148148148
352.231.977870370370371.9825-0.004629629629629640.252129629629630
362.532.245300925925931.980.2653009259259260.284699074074074
372.362.273981481481481.976250.2977314814814810.0860185185185185
381.952.134328703703701.967083333333330.167245370370370-0.184328703703704
392.162.478842592592591.951666666666670.527175925925926-0.318842592592592
402.762.906550925925931.946666666666670.95988425925926-0.146550925925926
412.092.011412037037041.94750.0639120370370370.0785879629629627
421.491.411828703703701.92458333333333-0.512754629629630.0781712962962966
431.171.137453703703701.92041666666667-0.7829629629629630.0325462962962964
441.31.135648148148151.95708333333333-0.8214351851851850.164351851851852
451.261.629884259259262.05416666666667-0.424282407407407-0.369884259259259
462.172.433564814814812.168750.264814814814815-0.263564814814815
472.032.221203703703702.22583333333333-0.00462962962962964-0.191203703703704
482.182.503634259259262.238333333333330.265300925925926-0.323634259259259
492.612.541898148148152.244166666666670.2977314814814810.0681018518518512
502.582.421412037037042.254166666666670.1672453703703700.158587962962963
513.862.797592592592592.270416666666670.5271759259259261.06240740740741
523.813.261134259259262.301250.959884259259260.548865740740741
532.412.389328703703702.325416666666670.0639120370370370.0206712962962965
541.471.826412037037042.33916666666667-0.51275462962963-0.356412037037037
551.331.548287037037042.33125-0.782962962962963-0.218287037037037
561.381.487314814814822.30875-0.821435185185185-0.107314814814815
571.571.821134259259262.24541666666667-0.424282407407407-0.251134259259259
582.62.419398148148152.154583333333330.2648148148148150.180601851851852
592.182.092870370370372.0975-0.004629629629629640.0871296296296298
602.362.358217592592592.092916666666670.2653009259259260.00178240740740776
612.242.414398148148152.116666666666670.297731481481481-0.174398148148148
622.412.292662037037042.125416666666670.1672453703703700.117337962962963
632.512.703009259259262.175833333333330.527175925925926-0.19300925925926
642.983.195717592592592.235833333333330.95988425925926-0.215717592592593
651.872.309328703703702.245416666666670.063912037037037-0.439328703703704
661.91.722245370370372.235-0.512754629629630.177754629629630
671.471.444537037037042.2275-0.7829629629629630.0254629629629632
681.451.391064814814812.2125-0.8214351851851850.0589351851851849
692.711.769467592592592.19375-0.4242824074074070.940532407407407
702.92.446064814814812.181250.2648148148148150.453935185185185
712.112.172870370370372.1775-0.00462962962962964-0.0628703703703706
722.182.429884259259262.164583333333330.265300925925926-0.249884259259259
732.242.428564814814812.130833333333330.297731481481481-0.188564814814814
742.052.260578703703702.093333333333330.167245370370370-0.210578703703704
752.422.540925925925932.013750.527175925925926-0.120925925925926
762.772.879467592592591.919583333333330.95988425925926-0.109467592592593
771.991.944328703703701.880416666666670.0639120370370370.0456712962962962
781.471.389745370370371.9025-0.512754629629630.0802546296296296
791.091.167870370370371.95083333333333-0.782962962962963-0.0778703703703703
800.931.193564814814812.015-0.821435185185185-0.263564814814814
811.321.660300925925932.08458333333333-0.424282407407407-0.340300925925925
822.032.377314814814812.11250.264814814814815-0.347314814814815
832.042.139953703703702.14458333333333-0.00462962962962964-0.0999537037037035
842.782.454884259259262.189583333333330.2653009259259260.325115740740741
852.82.507731481481482.210.2977314814814810.292268518518518
863.032.400162037037042.232916666666670.1672453703703700.629837962962963
873.112.779259259259262.252083333333330.5271759259259260.330740740740741
882.753.203217592592592.243333333333330.95988425925926-0.453217592592593
892.782.287662037037042.223750.0639120370370370.492337962962963
901.761.665578703703702.17833333333333-0.512754629629630.0944212962962965
911.29NANA-0.782962962962963NA
921.28NANA-0.821435185185185NA
931.43NANA-0.424282407407407NA
941.71NANA0.264814814814815NA
951.89NANA-0.00462962962962964NA
961.84NANA0.265300925925926NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/1x77e1217413721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/1x77e1217413721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/2sgwx1217413721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/2sgwx1217413721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/3gtry1217413721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/3gtry1217413721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/4a5u51217413721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/30/t1217413809t4ynngfc44to3fx/4a5u51217413721.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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