Home » date » 2010 » May » 24 »

decompositie- zakje friet - Keshia Vleminx

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 24 May 2010 20:20:37 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd.htm/, Retrieved Mon, 24 May 2010 22:28:30 +0200
 
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/2010/May/24/t1274732904t40j6333j1wqcqd.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2.06 2.06 2.05 2.04 2.04 2.03 2.03 2.03 2.02 2.02 2.02 2.02 2.01 2.01 2.01 2 2 1.99 1.99 1.99 1.98 1.97 1.97 1.96 1.96 1.96 1.96 1.95 1.94 1.94 1.93 1.93 1.93 1.92 1.92 1.9 1.9 1.9 1.9 1.89 1.88 1.88 1.87 1.86 1.86 1.85 1.83 1.82 1.8 1.8 1.79 1.78 1.78 1.78 1.77 1.77 1.76 1.75 1.75 1.75 1.75 1.75 1.74 1.74 1.74 1.74 1.73 1.73 1.73 1.73 1.73 1.72 1.71 1.71 1.71 1.7 1.7 1.7 1.7 1.7 1.69 1.68 1.67 1.65 1.61
 
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
12.06NANA-0.00437500000000002NA
22.06NANA0.000208333333333326NA
32.05NANA0.00145833333333345NA
42.04NANA-0.00222222222222217NA
52.04NANA-0.000763888888888826NA
62.03NANA0.00256944444444444NA
72.032.034166666666672.032916666666670.00125000000000001-0.00416666666666687
82.032.030208333333332.028750.00145833333333323-0.000208333333333588
92.022.027986111111112.0250.00298611111111102-0.0079861111111108
102.022.021111111111112.02166666666667-0.000555555555555608-0.00111111111111128
112.022.019166666666672.018333333333330.000833333333333350.00083333333333302
122.022.012152777777782.015-0.002847222222222190.0078472222222219
132.012.007291666666672.01166666666667-0.004375000000000020.00270833333333265
142.012.008541666666672.008333333333330.0002083333333333260.00145833333333334
152.012.006458333333332.0050.001458333333333450.00354166666666655
1621.999027777777782.00125-0.002222222222222170.000972222222222374
1721.996319444444441.99708333333333-0.0007638888888888260.00368055555555524
181.991.995069444444441.99250.00256944444444444-0.00506944444444435
191.991.989166666666671.987916666666670.001250000000000010.000833333333333464
201.991.985208333333331.983750.001458333333333230.00479166666666697
211.981.982569444444441.979583333333330.00298611111111102-0.00256944444444418
221.971.974861111111111.97541666666667-0.000555555555555608-0.00486111111111098
231.971.971666666666671.970833333333330.00083333333333335-0.00166666666666626
241.961.963402777777781.96625-0.00284722222222219-0.00340277777777764
251.961.957291666666671.96166666666667-0.004375000000000020.00270833333333353
261.961.9568751.956666666666670.0002083333333333260.00312500000000004
271.961.953541666666671.952083333333330.001458333333333450.00645833333333345
281.951.945694444444441.94791666666667-0.002222222222222170.00430555555555556
291.941.942986111111111.94375-0.000763888888888826-0.00298611111111091
301.941.941736111111111.939166666666670.00256944444444444-0.00173611111111094
311.931.935416666666671.934166666666670.00125000000000001-0.00541666666666663
321.931.9306251.929166666666670.00145833333333323-0.000624999999999876
331.931.927152777777781.924166666666670.002986111111111020.00284722222222267
341.921.918611111111111.91916666666667-0.0005555555555556080.00138888888888888
351.921.9151.914166666666670.000833333333333350.00500000000000012
361.91.906319444444441.90916666666667-0.00284722222222219-0.00631944444444454
371.91.899791666666671.90416666666667-0.004375000000000020.000208333333333366
381.91.898958333333331.898750.0002083333333333260.00104166666666683
391.91.8943751.892916666666670.001458333333333450.00562500000000044
401.891.884861111111111.88708333333333-0.002222222222222170.00513888888888925
411.881.879652777777781.88041666666667-0.0007638888888888260.000347222222222499
421.881.875902777777781.873333333333330.002569444444444440.00409722222222242
431.871.867083333333331.865833333333330.001250000000000010.0029166666666669
441.861.858958333333331.85750.001458333333333230.00104166666666705
451.861.851736111111111.848750.002986111111111020.00826388888888929
461.851.839027777777781.83958333333333-0.0005555555555556080.0109722222222222
471.831.831666666666671.830833333333330.00083333333333335-0.00166666666666648
481.821.819652777777781.8225-0.002847222222222190.000347222222222276
491.81.809791666666671.81416666666667-0.00437500000000002-0.00979166666666664
501.81.806458333333331.806250.000208333333333326-0.00645833333333323
511.791.799791666666671.798333333333330.00145833333333345-0.00979166666666642
521.781.787777777777781.79-0.00222222222222217-0.00777777777777766
531.781.781736111111111.7825-0.000763888888888826-0.00173611111111072
541.781.778819444444441.776250.002569444444444440.00118055555555596
551.771.77251.771250.00125000000000001-0.00249999999999972
561.771.768541666666671.767083333333330.001458333333333230.00145833333333356
571.761.765902777777781.762916666666670.00298611111111102-0.00590277777777781
581.751.758611111111111.75916666666667-0.000555555555555608-0.00861111111111068
591.751.756666666666671.755833333333330.00083333333333335-0.00666666666666615
601.751.749652777777781.7525-0.002847222222222190.000347222222222499
611.751.744791666666671.74916666666667-0.004375000000000020.0052083333333337
621.751.746041666666671.745833333333330.0002083333333333260.00395833333333351
631.741.7443751.742916666666670.00145833333333345-0.00437499999999957
641.741.738611111111111.74083333333333-0.002222222222222170.00138888888888888
651.741.738402777777781.73916666666667-0.0007638888888888260.00159722222222225
661.741.739652777777781.737083333333330.002569444444444440.000347222222222276
671.731.735416666666671.734166666666670.00125000000000001-0.00541666666666663
681.731.732291666666671.730833333333330.00145833333333323-0.00229166666666658
691.731.730902777777781.727916666666670.00298611111111102-0.000902777777777475
701.731.724444444444441.725-0.0005555555555556080.00555555555555576
711.731.72251.721666666666670.000833333333333350.00750000000000028
721.721.715486111111111.71833333333333-0.002847222222222190.00451388888888959
731.711.711041666666671.71541666666667-0.00437500000000002-0.00104166666666594
741.711.7131251.712916666666670.000208333333333326-0.00312499999999982
751.711.711458333333331.710.00145833333333345-0.00145833333333312
761.71.704027777777781.70625-0.00222222222222217-0.00402777777777796
771.71.700902777777781.70166666666667-0.000763888888888826-0.000902777777777919
781.71.698819444444441.696250.002569444444444440.00118055555555552
791.71.690416666666671.689166666666670.001250000000000010.0095833333333335
801.7NANA0.00145833333333323NA
811.69NANA0.00298611111111102NA
821.68NANA-0.000555555555555608NA
831.67NANA0.00083333333333335NA
841.65NANA-0.00284722222222219NA
851.61NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/1jx7k1274732435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/1jx7k1274732435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/2c6o51274732435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/2c6o51274732435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/3c6o51274732435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/3c6o51274732435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/45f581274732435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274732904t40j6333j1wqcqd/45f581274732435.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