Home » date » 2010 » Jun » 07 »

Decompositie megaliters bier

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 06 Jun 2010 22:24:33 +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/Jun/07/t1275863185pfal2orq6pi8srd.htm/, Retrieved Mon, 07 Jun 2010 00:26:25 +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/Jun/07/t1275863185pfal2orq6pi8srd.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 «
93.2 96 95.2 77.1 70.9 64.8 70.1 77.3 79.5 100.6 100.7 107.1 95.9 82.8 83.3 80 80.4 67.5 75.7 71.1 89.3 101.1 105.2 114.1 96.3 84.4 91.2 81.9 80.5 70.4 74.8 75.9 86.3 98.7 100.9 113.8 89.8 84.4 87.2 85.6 72 69.2 77.5 78.1 94.3 97.7 100.2 116.4 97.1 93 96 80.5 76.1 69.9 73.6 92.6 94.2 93.5 108.5 109.4 105.1 92.5 97.1 81.4 79.1 72.1 78.7 87.1 91.4 109.9 116.3 113 100 84.8 94.3 87.1 90.3 72.4 84.9 92.7 92.2 114.9 112.5 118.3 106 91.2 96.6 96.3 88.2 70.2 86.5 88.2 102.8 119.1 119.2 125.1
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
193.2NANA1.09102781635458NA
296NANA0.968163112318007NA
395.2NANA1.01657973996773NA
477.1NANA0.930581597816603NA
570.9NANA0.887175287765638NA
664.8NANA0.769454800868965NA
770.173.3958334096486.15416666666670.8519127541864680.955095088419458
877.378.265134705429385.71666666666670.9130678752334740.9876683952687
979.584.519404401582784.67083333333330.9982115573239430.940612402120894
10100.695.976060344314384.29583333333331.138562329229181.04817805230906
11100.7100.07561650984084.81251.179963053911151.00623911709901
12107.1107.10324848446685.32083333333331.255300075024270.999969669599082
1395.993.464716267708785.66666666666671.091027816354581.02605564783737
1482.882.915102544101385.64166666666670.9681631123180070.998611802427187
1583.387.214070191398485.79166666666671.016579739967730.955121115402496
168080.235520848412486.22083333333330.9305815978166030.997064631151864
1780.476.677820808844386.42916666666670.8871752877656381.04854310088487
1867.566.872034318853686.90833333333340.7694548008689651.00939055746610
1975.774.300990710963187.21666666666670.8519127541864681.01882894528929
2071.179.710825507882387.30.9130678752334740.891974202336786
2189.387.538994362487687.69583333333330.9982115573239431.02011681365930
22101.1100.31208521479588.10416666666671.138562329229181.00785463469848
23105.2104.05799181679088.18751.179963053911151.0109747282575
24114.1110.85868787558088.31251.255300075024271.02923823280371
2596.396.442313016509888.39583333333331.091027816354580.99852437159522
2684.485.738911621695588.55833333333330.9681631123180070.984383850968354
2791.290.102850952473388.63333333333331.016579739967731.01217662966187
2881.982.271168093636288.40833333333330.9305815978166030.995488479108334
2980.578.186018798045988.12916666666670.8871752877656381.02959584382895
3070.467.663931551414687.93750.7694548008689651.0404361435384
3174.874.673702540919787.65416666666670.8519127541864681.00169132445269
3275.979.78691449748587.38333333333330.9130678752334740.951283809858224
3386.387.060684657936687.21666666666670.9982115573239430.99126259274292
3498.799.287379118489287.20416666666671.138562329229180.994084050523801
35100.9102.66170220299587.00416666666671.179963053911150.982839733170297
36113.8108.70898649710186.61.255300075024271.04683157912648
3789.894.551198134828586.66251.091027816354580.9497499954675
3884.484.101102356690986.86666666666660.9681631123180071.00355402765164
3987.288.7389398013587.29166666666671.016579739967730.982657671989377
4085.681.503438275437587.58333333333330.9305815978166031.05026244059445
417277.638927370590487.51250.8871752877656380.927369844463791
4269.267.397828432780787.59166666666670.7694548008689651.02673931206874
4377.574.97187200488588.00416666666670.8519127541864681.03372101999734
4478.180.95868493736888.66666666666670.9130678752334740.96468958284612
4594.389.231794795116289.39166666666670.9982115573239431.05679819862999
4697.7101.95351257276789.54583333333331.138562329229180.958279882022391
47100.2105.61160983777389.50416666666671.179963053911150.94875932820184
48116.4112.60564714665689.70416666666671.255300075024271.0336959375439
4997.197.724270700726489.57083333333331.091027816354580.993611917528265
509387.146782147524690.01250.9681631123180071.06716504853348
519692.114831687826190.61251.016579739967731.04217744570538
5280.584.155595829214890.43333333333330.9305815978166030.956561464591927
5376.180.381777635265890.60416666666670.8871752877656380.946731986263174
5469.969.757489822112290.65833333333330.7694548008689651.00204293729965
5573.677.268486804712790.70.8519127541864680.952522859494009
5692.683.100589994686591.01250.9130678752334741.11431218485838
5794.290.874684649878591.03750.9982115573239431.03659231790386
5893.5103.74674824130391.12083333333331.138562329229180.90123306595142
59108.5107.71096077119091.28333333333331.179963053911151.00732552400574
60109.4114.85995686472091.51.255300075024270.952464226752663
61105.1100.16089949058591.80416666666671.091027816354581.04931166287978
6292.588.86527167188991.78750.9681631123180071.04090156097796
6397.192.95774572221691.44166666666671.016579739967731.04456061456312
6481.485.62126184577692.00833333333330.9305815978166030.950698439210351
6579.182.522088017000493.01666666666670.8871752877656380.958531247824274
6672.171.937611757907693.49166666666670.7694548008689651.00225734825113
6778.779.593498696346693.42916666666660.8519127541864680.98877422514425
6887.184.820201159709692.89583333333330.9130678752334741.02687801737227
6991.492.29297690424392.45833333333330.9982115573239430.990324541105989
70109.9105.40715163809692.57916666666671.138562329229181.0426237526779
71116.3110.07088687901293.28333333333331.179963053911151.05659183184228
72113117.70007328446393.76251.255300075024270.96006737163958
73100102.59298233120994.03333333333331.091027816354580.974725538996054
7484.891.515618191859694.5250.9681631123180070.926617791317538
7594.396.36328785110894.79166666666671.016579739967730.978588444861948
7687.188.436271179171295.03333333333330.9305815978166030.984890009931966
7790.384.35558361171695.08333333333330.8871752877656381.07046855861546
7872.473.210418241011795.14583333333330.7694548008689650.988930288058951
7984.981.457057846129595.61666666666670.8519127541864681.04226695936372
8092.787.77625840577896.13333333333330.9130678752334741.05609422962027
8192.296.323256066938396.49583333333330.9982115573239430.957193555997806
82114.9110.41208187699996.9751.138562329229181.04064698397772
83112.5114.77598955648397.27083333333331.179963053911150.980170159584095
84118.3121.87917645089897.09166666666671.255300075024270.97063340469535
85106105.90243337415197.06666666666671.091027816354581.00092128785657
8691.293.859379726262896.94583333333330.9681631123180070.971666340284596
8796.698.811550724863697.21.016579739967730.97761849997657
8896.391.026389959760797.81666666666660.9305815978166031.05793495757187
8988.287.18345484146998.27083333333330.8871752877656381.01165984028024
9070.276.04778281921698.83333333333330.7694548008689650.923103835477786
9186.5NANA0.851912754186468NA
9288.2NANA0.913067875233474NA
93102.8NANA0.998211557323943NA
94119.1NANA1.13856232922918NA
95119.2NANA1.17996305391115NA
96125.1NANA1.25530007502427NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/1xdiv1275863070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/1xdiv1275863070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/2xdiv1275863070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/2xdiv1275863070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/3q5zy1275863070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/3q5zy1275863070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/4q5zy1275863070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275863185pfal2orq6pi8srd/4q5zy1275863070.ps (open in new window)


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