Home » date » 2008 » May » 14 » attachments

Opgave9: Classical Decomposition (additief) Gemiddelede Prijs Zakje Frieten - Dave Florus

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 14 May 2008 14:03:36 -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/14/t12107956058c3mykrur45nbkd.htm/, Retrieved Wed, 14 May 2008 22:06:45 +0200
 
User-defined keywords:
Classical Decomposition, additief, Gemiddelede Prijs, Zakje Frieten
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,72 1,73 1,73 1,73 1,73 1,73 1,74 1,74 1,74 1,74 1,75 1,75 1,75 1,75 1,75 1,76 1,77 1,77 1,78 1,78 1,78 1,79 1,8 1,8 1,82 1,83 1,85 1,86 1,86 1,87 1,88 1,88 1,89 1,9 1,9 1,9 1,9 1,92 1,92 1,93 1,93 1,93 1,94 1,94 1,95 1,96 1,96 1,96 1,96 1,97 1,97 1,98 1,99 1,99 1,99 2 2 2,01 2,01 2,01 2,02 2,02 2,02 2,02 2,03 2,03 2,03 2,04 2,04 2,05 2,06 2,06
 
Text written by user:
Classical Decomposition (additief) Gemiddelede Prijs Zakje Frieten
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.72NANA-0.00492187499999989NA
21.73NANA-0.000234374999999875NA
31.73NANA-0.000651041666666551NA
41.73NANA0.00382812500000021NA
51.73NANA0.0033072916666669NA
61.73NANA0.000390625000000167NA
71.741.7394531251.737083333333330.002369791666666590.000546875000000391
81.741.738411458333331.73916666666667-0.00075520833333340.00158854166666722
91.741.7394531251.74083333333333-0.001380208333333610.000546875000000613
101.741.7460156251.742916666666670.0030989583333332-0.00601562499999941
111.751.7460156251.745833333333330.0001822916666664680.00398437500000060
121.751.743932291666671.74916666666667-0.005234375000000210.00606770833333381
131.751.7475781251.7525-0.004921874999999890.00242187500000024
141.751.755598958333331.75583333333333-0.000234374999999875-0.00559895833333313
151.751.7585156251.75916666666667-0.000651041666666551-0.0085156249999998
161.761.766744791666671.762916666666670.00382812500000021-0.00674479166666653
171.771.7703906251.767083333333330.0033072916666669-0.000390624999999867
181.771.7716406251.771250.000390625000000167-0.00164062499999984
191.781.778619791666671.776250.002369791666666590.00138020833333363
201.781.781744791666671.7825-0.0007552083333334-0.00174479166666663
211.781.788619791666671.79-0.00138020833333361-0.00861979166666638
221.791.801432291666671.798333333333330.0030989583333332-0.0114322916666665
231.81.806432291666671.806250.000182291666666468-0.00643229166666681
241.81.808932291666671.81416666666667-0.00523437500000021-0.00893229166666676
251.821.8175781251.8225-0.004921874999999890.00242187500000024
261.831.830598958333331.83083333333333-0.000234374999999875-0.000598958333333233
271.851.838932291666671.83958333333333-0.0006510416666665510.0110677083333333
281.861.8525781251.848750.003828125000000210.00742187499999991
291.861.860807291666671.85750.0033072916666669-0.000807291666666599
301.871.866223958333331.865833333333330.0003906250000001670.00377604166666701
311.881.8757031251.873333333333330.002369791666666590.00429687499999987
321.881.879661458333331.88041666666667-0.00075520833333340.000338541666666581
331.891.8857031251.88708333333333-0.001380208333333610.00429687500000009
341.91.8960156251.892916666666670.00309895833333320.00398437500000015
351.91.898932291666671.898750.0001822916666664680.00106770833333369
361.91.898932291666671.90416666666667-0.005234375000000210.00106770833333369
371.91.904244791666671.90916666666667-0.00492187499999989-0.00424479166666636
381.921.913932291666671.91416666666667-0.0002343749999998750.00606770833333359
391.921.9185156251.91916666666667-0.0006510416666665510.00148437500000043
401.931.927994791666671.924166666666670.003828125000000210.00200520833333329
411.931.932473958333331.929166666666670.0033072916666669-0.00247395833333330
421.931.934557291666671.934166666666670.000390625000000167-0.00455729166666674
431.941.941536458333331.939166666666670.00236979166666659-0.00153645833333305
441.941.942994791666671.94375-0.0007552083333334-0.00299479166666683
451.951.946536458333331.94791666666667-0.001380208333333610.00346354166666685
461.961.955182291666671.952083333333330.00309895833333320.00481770833333361
471.961.956848958333331.956666666666670.0001822916666664680.00315104166666691
481.961.956432291666671.96166666666667-0.005234375000000210.00356770833333342
491.961.9613281251.96625-0.00492187499999989-0.00132812499999990
501.971.970598958333331.97083333333333-0.000234374999999875-0.000598958333333677
511.971.9747656251.97541666666667-0.000651041666666551-0.00476562500000011
521.981.983411458333331.979583333333330.00382812500000021-0.00341145833333312
531.991.987057291666671.983750.00330729166666690.00294270833333332
541.991.988307291666671.987916666666670.0003906250000001670.00169270833333379
551.991.994869791666671.99250.00236979166666659-0.00486979166666623
5621.9963281251.99708333333333-0.00075520833333340.00367187500000066
5721.999869791666672.00125-0.001380208333333610.000130208333333215
582.012.008098958333332.0050.00309895833333320.00190104166666671
592.012.0085156252.008333333333330.0001822916666664680.00148437499999998
602.012.006432291666672.01166666666667-0.005234375000000210.0035677083333332
612.022.0100781252.015-0.004921874999999890.00992187499999986
622.022.018098958333332.01833333333333-0.0002343749999998750.00190104166666671
632.022.0210156252.02166666666667-0.000651041666666551-0.00101562500000041
642.022.0288281252.0250.00382812500000021-0.0088281250000004
652.032.032057291666672.028750.0033072916666669-0.00205729166666746
662.032.033307291666672.032916666666670.000390625000000167-0.00330729166666721
672.03NANA0.00236979166666659NA
682.04NANA-0.0007552083333334NA
692.04NANA-0.00138020833333361NA
702.05NANA0.0030989583333332NA
712.06NANA0.000182291666666468NA
722.06NANA-0.00523437500000021NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/16bs91210795410.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/16bs91210795410.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/2wa791210795410.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/2wa791210795410.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/3fout1210795410.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107956058c3mykrur45nbkd/3fout1210795410.ps (open in new window)


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