Home » date » 2008 » May » 21 »

Tinneke Hermans - opgave 9 oef 2 - prijzen broodjes - additief decompositiemodel

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 21 May 2008 12:49:35 -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/21/t1211395945ekcnv4uybc6aubh.htm/, Retrieved Wed, 21 May 2008 20:52:31 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,07 4,08 4,09 4,08 4,09 4,12 4,14 4,14 4,14 4,14 4,14 4,23 4,29 4,32 4,33 4,35 4,35 4,35 4,35 4,36 4,36 4,38 4,4 4,4 4,4 4,43 4,44 4,46 4,47 4,49 4,49 4,57 4,62 4,64 4,66 4,67 4,68 4,72 4,74 4,75 4,76 4,77 4,76 4,77 4,77 4,78 4,81 4,81 4,85 4,92 4,96 4,95 4,96 4,97 5 5 5,01 5,01 5,02 5,04 5,04 5,19 5,22 5,22 5,22 5,24 5,28 5,34 5,36 5,38 5,39 5,41 5,44 5,51 5,55 5,56 5,57 5,58 5,58 5,59 5,61 5,63 5,64 5,64
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
14.07NANA-0.0156319444444448NA
24.08NANA0.0288680555555559NA
34.09NANA0.0307013888888886NA
44.08NANA0.0182013888888886NA
54.09NANA0.00345138888888910NA
64.12NANA-0.00479861111111104NA
74.144.118618055555554.13083333333333-0.01221527777777770.0213819444444452
84.144.150284722222224.150.000284722222222822-0.0102847222222229
94.144.166201388888894.17-0.00379861111111053-0.0262013888888886
104.144.181201388888894.19125-0.0100486111111111-0.0412013888888874
114.144.201034722222224.21333333333333-0.0122986111111115-0.0610347222222218
124.234.211034722222224.23375-0.02271527777777850.01896527777778
134.294.236451388888894.25208333333333-0.01563194444444480.0535486111111121
144.324.298868055555564.270.02886805555555590.0211319444444449
154.334.319034722222224.288333333333330.03070138888888860.0109652777777782
164.354.325701388888894.30750.01820138888888860.0242986111111119
174.354.331784722222224.328333333333330.003451388888889100.0182152777777782
184.354.341451388888894.34625-0.004798611111111040.00854861111111127
194.354.345701388888894.35791666666667-0.01221527777777770.0042986111111114
204.364.367368055555564.367083333333330.000284722222222822-0.00736805555555531
214.364.372451388888894.37625-0.00379861111111053-0.0124513888888886
224.384.375368055555554.38541666666667-0.01004861111111110.00463194444444515
234.44.382701388888894.395-0.01229861111111150.0172986111111122
244.44.383118055555564.40583333333333-0.02271527777777850.0168819444444450
254.44.401868055555564.4175-0.0156319444444448-0.00186805555555480
264.434.460951388888894.432083333333330.0288680555555559-0.0309513888888890
274.444.482368055555564.451666666666670.0307013888888886-0.0423680555555555
284.464.491534722222224.473333333333330.0182013888888886-0.0315347222222222
294.474.498451388888894.4950.00345138888888910-0.0284513888888895
304.494.512284722222224.51708333333333-0.00479861111111104-0.0222847222222224
314.494.527784722222224.54-0.0122152777777777-0.0377847222222218
324.574.564034722222224.563750.0002847222222228220.00596527777777744
334.624.584534722222224.58833333333333-0.003798611111110530.035465277777778
344.644.602868055555554.61291666666667-0.01004861111111110.0371319444444449
354.664.624784722222224.63708333333333-0.01229861111111150.0352152777777786
364.674.638118055555564.66083333333333-0.02271527777777850.0318819444444447
374.684.668118055555564.68375-0.01563194444444480.0118819444444442
384.724.732201388888894.703333333333330.0288680555555559-0.0122013888888883
394.744.748618055555564.717916666666670.0307013888888886-0.00861805555555506
404.754.748201388888894.730.01820138888888860.00179861111111101
414.764.745534722222224.742083333333330.003451388888889100.0144652777777781
424.774.749368055555554.75416666666667-0.004798611111111040.0206319444444452
434.764.754868055555554.76708333333333-0.01221527777777770.00513194444444487
444.774.782784722222224.78250.000284722222222822-0.0127847222222233
454.774.796201388888894.8-0.00379861111111053-0.0262013888888886
464.784.807451388888894.8175-0.0100486111111111-0.0274513888888883
474.814.821868055555564.83416666666667-0.0122986111111115-0.0118680555555555
484.814.828118055555564.85083333333333-0.0227152777777785-0.018118055555556
494.854.853534722222224.86916666666667-0.0156319444444448-0.00353472222222173
504.924.917618055555564.888750.02886805555555590.00238194444444417
514.964.939034722222224.908333333333330.03070138888888860.020965277777778
524.954.946118055555564.927916666666670.01820138888888860.00388194444444512
534.964.949701388888894.946250.003451388888889100.0102986111111116
544.974.959784722222224.96458333333333-0.004798611111111040.0102152777777773
5554.969868055555564.98208333333333-0.01221527777777770.0301319444444443
5655.001534722222225.001250.000284722222222822-0.00153472222222195
575.015.019534722222225.02333333333333-0.00379861111111053-0.00953472222222196
585.015.035368055555555.04541666666667-0.0100486111111111-0.0253680555555551
595.025.055201388888895.0675-0.0122986111111115-0.0352013888888898
605.045.066868055555565.08958333333333-0.0227152777777785-0.0268680555555552
615.045.096868055555565.1125-0.0156319444444448-0.0568680555555563
625.195.167201388888895.138333333333330.02886805555555590.0227986111111118
635.225.197784722222225.167083333333330.03070138888888860.0222152777777769
645.225.215284722222225.197083333333330.01820138888888860.00471527777777769
655.225.231368055555565.227916666666670.00345138888888910-0.0113680555555558
665.245.253951388888895.25875-0.00479861111111104-0.0139513888888878
675.285.278618055555555.29083333333333-0.01221527777777770.00138194444444562
685.345.321118055555565.320833333333330.0002847222222228220.0188819444444448
695.365.344118055555555.34791666666667-0.003798611111110530.0158819444444456
705.385.365784722222225.37583333333333-0.01004861111111110.0142152777777778
715.395.392284722222225.40458333333333-0.0122986111111115-0.00228472222222287
725.415.410618055555565.43333333333333-0.0227152777777785-0.000618055555555941
735.445.444368055555565.46-0.0156319444444448-0.00436805555555519
745.515.511784722222225.482916666666670.0288680555555559-0.00178472222222137
755.555.534451388888895.503750.03070138888888860.0155486111111109
765.565.542784722222225.524583333333330.01820138888888860.0172152777777770
775.575.548868055555565.545416666666670.003451388888889100.021131944444444
785.585.560618055555565.56541666666667-0.004798611111111040.0193819444444445
795.58NANA-0.0122152777777777NA
805.59NANA0.000284722222222822NA
815.61NANA-0.00379861111111053NA
825.63NANA-0.0100486111111111NA
835.64NANA-0.0122986111111115NA
845.64NANA-0.0227152777777785NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/1f5in1211395773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/1f5in1211395773.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/2x9g91211395773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/2x9g91211395773.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/3yv1x1211395773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/3yv1x1211395773.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/43nfa1211395773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211395945ekcnv4uybc6aubh/43nfa1211395773.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