Home » date » 2009 » Jun » 01 »

Decompositie consumptieprijs biefstuk - Mattias Dierckx

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 14:38:22 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg.htm/, Retrieved Mon, 01 Jun 2009 22:49:15 +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/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
9,370 9,330 9,310 9,260 9,350 9,380 9,430 9,270 9,290 9,270 9,290 9,310 9,330 9,350 9,340 9,470 9,630 9,620 9,630 9,500 9,550 9,580 9,610 9,570 9,610 9,650 9,620 9,650 9,960 10,030 10,030 9,720 9,750 9,770 9,780 9,820 9,840 9,900 9,940 10,120 10,520 10,570 10,570 10,120 10,050 10,140 10,170 10,200 10,200 10,350 10,430 10,570 10,820 10,900 10,830 10,650 10,570 10,610 10,630 10,710 10,720 10,770 10,790 10,920 10,900 11,000 10,990 10,910 10,880 10,870 11,000 10,990 11,030 11,040 10,990
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
19.37NANA-0.107270833333333NA
29.33NANA-0.0699374999999999NA
39.31NANA-0.0768541666666677NA
49.26NANA0.0185625000000006NA
59.35NANA0.210979166666667NA
69.38NANA0.240729166666667NA
79.439.51856259.320.1985625-0.0885625000000001
89.279.259479166666679.31916666666667-0.05968750000000030.0105208333333344
99.299.213729166666679.32125-0.1075208333333330.0762708333333304
109.279.271895833333339.33125-0.0593541666666673-0.00189583333333410
119.299.25581259.35166666666666-0.0958541666666660.0341874999999998
129.319.280979166666679.37333333333333-0.09235416666666710.0290208333333339
139.339.284395833333339.39166666666666-0.1072708333333330.0456041666666689
149.359.339645833333339.40958333333333-0.06993749999999990.0103541666666676
159.349.353145833333339.43-0.0768541666666677-0.0131458333333327
169.479.47231259.453750.0185625000000006-0.00231249999999861
179.639.690979166666679.480.210979166666667-0.0609791666666659
189.629.744895833333339.504166666666670.240729166666667-0.124895833333333
199.639.725229166666679.526666666666670.1985625-0.095229166666666
209.59.491145833333339.55083333333334-0.05968750000000030.00885416666666572
219.559.467479166666679.575-0.1075208333333330.0825208333333336
229.589.53481259.59416666666667-0.05935416666666730.0451875000000008
239.619.51956259.61541666666666-0.0958541666666660.0904375000000002
249.579.553895833333339.64625-0.09235416666666710.0161041666666666
259.619.572729166666679.68-0.1072708333333330.0372708333333325
269.659.635895833333339.70583333333333-0.06993749999999990.0141041666666677
279.629.646479166666679.72333333333333-0.0768541666666677-0.0264791666666682
289.659.758145833333339.739583333333330.0185625000000006-0.108145833333332
299.969.96556259.754583333333330.210979166666667-0.00556249999999814
3010.0310.01281259.772083333333330.2407291666666670.0171875000000004
3110.039.990645833333339.792083333333330.19856250.0393541666666675
329.729.752395833333339.81208333333333-0.0596875000000003-0.0323958333333323
339.759.72831259.83583333333333-0.1075208333333330.0216874999999987
349.779.809395833333339.86875-0.0593541666666673-0.0393958333333337
359.789.81581259.91166666666667-0.095854166666666-0.0358125000000005
369.829.865145833333339.9575-0.0923541666666671-0.0451458333333346
379.849.8952291666666710.0025-0.107270833333333-0.0552291666666687
389.99.9717291666666710.0416666666667-0.0699374999999999-0.0717291666666657
399.949.9939791666666710.0708333333333-0.0768541666666677-0.0539791666666662
4010.1210.117312510.098750.01856250000000060.0026875000000004
4110.5210.341395833333310.13041666666670.2109791666666670.178604166666666
4210.5710.403229166666710.16250.2407291666666670.166770833333336
4310.5710.391895833333310.19333333333330.19856250.178104166666669
4410.1210.167395833333310.2270833333333-0.0596875000000003-0.0473958333333329
4510.0510.158729166666710.26625-0.107520833333333-0.108729166666667
4610.1410.246062510.3054166666667-0.0593541666666673-0.106062499999998
4710.1710.240812510.3366666666667-0.095854166666666-0.0708125000000006
4810.210.270562510.3629166666667-0.0923541666666671-0.0705625000000012
4910.210.280229166666710.3875-0.107270833333333-0.0802291666666672
5010.3510.350479166666710.4204166666667-0.0699374999999999-0.000479166666666586
5110.4310.387312510.4641666666667-0.07685416666666770.0426875000000013
5210.5710.523979166666710.50541666666670.01856250000000060.0460208333333352
5310.8210.755145833333310.54416666666670.2109791666666670.0648541666666684
5410.910.825312510.58458333333330.2407291666666670.0746875000000014
5510.8310.826062510.62750.19856250.00393749999999926
5610.6510.606979166666710.6666666666667-0.05968750000000030.0430208333333351
5710.5710.591645833333310.6991666666667-0.107520833333333-0.0216458333333343
5810.6110.669395833333310.72875-0.0593541666666673-0.0593958333333351
5910.6310.650812510.7466666666667-0.095854166666666-0.0208124999999999
6010.7110.661812510.7541666666667-0.09235416666666710.0481875000000027
6110.7210.657729166666710.765-0.1072708333333330.0622708333333346
6210.7710.712562510.7825-0.06993749999999990.0574374999999989
6310.7910.729395833333310.80625-0.07685416666666770.0606041666666641
6410.9210.848562510.830.01856250000000060.0714375
6510.911.067229166666710.856250.210979166666667-0.167229166666667
661111.124062510.88333333333330.240729166666667-0.124062499999999
6710.9911.106479166666710.90791666666670.1985625-0.116479166666666
6810.9110.872395833333310.9320833333333-0.05968750000000030.037604166666668
6910.8810.844145833333310.9516666666667-0.1075208333333330.0358541666666667
7010.87NANA-0.0593541666666673NA
7111NANA-0.095854166666666NA
7210.99NANA-0.0923541666666671NA
7311.03NANANANA
7411.04NANANANA
7510.99NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/1ph1y1243888697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/1ph1y1243888697.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/2m1341243888697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/2m1341243888697.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/36hzd1243888697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/36hzd1243888697.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/4tspg1243888697.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243889355tpmxpmvf7d2h3lg/4tspg1243888697.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