Home » date » 2009 » Jun » 05 »

Eigen reeks: prijs tafelbier Classical Deomposition

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 05 Jun 2009 13:29:27 -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/05/t1244230220j6hxks4qe24g57n.htm/, Retrieved Fri, 05 Jun 2009 21:30:20 +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/05/t1244230220j6hxks4qe24g57n.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 «
0.58 0.58 0.59 0.6 0.6 0.61 0.62 0.61 0.62 0.62 0.62 0.63 0.63 0.63 0.63 0.63 0.63 0.63 0.63 0.64 0.63 0.63 0.63 0.63 0.63 0.64 0.65 0.65 0.65 0.65 0.65 0.66 0.65 0.66 0.66 0.66 0.66 0.68 0.69 0.7 0.71 0.71 0.7 0.7 0.7 0.7 0.71 0.7 0.7 0.7 0.69 0.7 0.69 0.69 0.69 0.7 0.7 0.71 0.71 0.71 0.72 0.73 0.74 0.74 0.74 0.74 0.75 0.75 0.76 0.76 0.76 0.76 0.76 0.77 0.77 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.8 0.8 0.8 0.81 0.81 0.81 0.8 0.81 0.81 0.81 0.8 0.82 0.83 0.83
 
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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.58NANA-0.00375992063492064NA
20.58NANA0.00249007936507937NA
30.59NANA0.00308531746031743NA
40.6NANA0.00510912698412697NA
50.6NANA0.00124007936507939NA
60.61NANA0.000228174603174601NA
70.620.6086210317460320.60875-0.0001289682539682490.0113789682539682
80.610.612966269841270.6129166666666674.9603174603144e-05-0.00296626984126991
90.620.6140376984126980.616666666666667-0.002628968253968260.0059623015873016
100.620.6172519841269840.619583333333333-0.002331349206349210.00274801587301587
110.620.6215972222222220.622083333333333-0.000486111111111083-0.00159722222222225
120.630.6212996031746030.624166666666667-0.002867063492063460.00870039682539692
130.630.6216567460317460.625416666666667-0.003759920634920640.00834325396825397
140.630.6295734126984130.6270833333333330.002490079365079370.0004265873015874
150.630.6318353174603170.628750.00308531746031743-0.0018353174603174
160.630.634692460317460.6295833333333330.00510912698412697-0.00469246031746029
170.630.6316567460317460.6304166666666670.00124007936507939-0.00165674603174604
180.630.6310615079365080.6308333333333330.000228174603174601-0.00106150793650783
190.630.6307043650793650.630833333333333-0.000128968253968249-0.000704365079364999
200.640.6312996031746030.631254.9603174603144e-050.00870039682539692
210.630.6298710317460320.6325-0.002628968253968260.000128968253968353
220.630.6318353174603170.634166666666667-0.00233134920634921-0.0018353174603174
230.630.6353472222222220.635833333333333-0.000486111111111083-0.00534722222222217
240.630.6346329365079370.6375-0.00286706349206346-0.0046329365079365
250.630.6354067460317460.639166666666667-0.00375992063492064-0.00540674603174607
260.640.6433234126984130.6408333333333330.00249007936507937-0.00332341269841263
270.650.6455853174603170.64250.003085317460317430.00441468253968258
280.650.649692460317460.6445833333333330.005109126984126970.000307539682539604
290.650.6483234126984130.6470833333333330.001240079365079390.00167658730158726
300.650.6498115079365080.6495833333333330.0002281746031746010.000188492063492030
310.650.6519543650793650.652083333333333-0.000128968253968249-0.00195436507936519
320.660.6550496031746030.6554.9603174603144e-050.00495039682539689
330.650.6557043650793650.658333333333333-0.00262896825396826-0.00570436507936511
340.660.6597519841269840.662083333333333-0.002331349206349210.000248015873015928
350.660.6661805555555560.666666666666667-0.000486111111111083-0.00618055555555563
360.660.6687996031746030.671666666666667-0.00286706349206346-0.00879960317460327
370.660.672490079365080.67625-0.00375992063492064-0.0124900793650794
380.680.682490079365080.680.00249007936507937-0.00249007936507939
390.690.6868353174603180.683750.003085317460317430.00316468253968238
400.70.6926091269841270.68750.005109126984126970.00739087301587282
410.710.692490079365080.691250.001240079365079390.0175099206349205
420.710.6952281746031750.6950.0002281746031746010.0147718253968254
430.70.6982043650793650.698333333333333-0.0001289682539682490.00179563492063495
440.70.7008829365079360.7008333333333334.9603174603144e-05-0.000882936507936471
450.70.6990376984126980.701666666666667-0.002628968253968260.000962301587301595
460.70.6993353174603180.701666666666667-0.002331349206349210.000664682539682437
470.710.7003472222222220.700833333333333-0.0004861111111110830.00965277777777773
480.70.6962996031746030.699166666666667-0.002867063492063460.0037003968253968
490.70.6941567460317460.697916666666667-0.003759920634920640.00584325396825391
500.70.699990079365080.69750.002490079365079379.92063492044615e-06
510.690.7005853174603180.69750.00308531746031743-0.0105853174603177
520.70.7030257936507940.6979166666666670.00510912698412697-0.00302579365079381
530.690.6995734126984130.6983333333333330.00124007936507939-0.00957341269841272
540.690.6989781746031750.698750.000228174603174601-0.00897817460317463
550.690.6998710317460320.7-0.000128968253968249-0.00987103174603177
560.70.7021329365079370.7020833333333334.9603174603144e-05-0.00213293650793656
570.70.7027876984126980.705416666666667-0.00262896825396826-0.00278769841269833
580.710.7068353174603170.709166666666667-0.002331349206349210.00316468253968261
590.710.7124305555555560.712916666666667-0.000486111111111083-0.00243055555555560
600.710.714216269841270.717083333333333-0.00286706349206346-0.00421626984126988
610.720.7179067460317460.721666666666667-0.003759920634920640.00209325396825388
620.730.728740079365080.726250.002490079365079370.00125992063492053
630.740.7339186507936510.7308333333333330.003085317460317430.00608134920634906
640.740.7405257936507940.7354166666666670.00510912698412697-0.000525793650793638
650.740.7408234126984130.7395833333333330.00124007936507939-0.000823412698412573
660.740.7439781746031750.743750.000228174603174601-0.00397817460317451
670.750.7473710317460320.7475-0.0001289682539682490.0026289682539683
680.750.7508829365079360.7508333333333334.9603174603144e-05-0.00088293650793636
690.760.7511210317460320.75375-0.002628968253968260.00887896825396828
700.760.7543353174603170.756666666666667-0.002331349206349210.00566468253968255
710.760.7595138888888890.76-0.0004861111111110830.000486111111110965
720.760.760466269841270.763333333333333-0.00286706349206346-0.000466269841269962
730.760.762490079365080.76625-0.00375992063492064-0.0024900793650795
740.770.771240079365080.768750.00249007936507937-0.00124007936507942
750.770.773918650793650.7708333333333330.00308531746031743-0.00391865079365072
760.780.7776091269841270.77250.005109126984126970.00239087301587304
770.780.776240079365080.7750.001240079365079390.00375992063492059
780.780.7785615079365080.7783333333333330.0002281746031746010.00143849206349200
790.780.7815376984126980.781666666666667-0.000128968253968249-0.00153769841269835
800.780.7850496031746030.7854.9603174603144e-05-0.00504960317460312
810.780.7857043650793650.788333333333333-0.00262896825396826-0.00570436507936489
820.780.788918650793650.79125-0.00233134920634921-0.0089186507936505
830.80.7928472222222220.793333333333333-0.0004861111111110830.00715277777777812
840.80.7925496031746030.795416666666666-0.002867063492063460.00745039682539705
850.80.7941567460317460.797916666666667-0.003759920634920640.00584325396825403
860.810.8029067460317460.8004166666666670.002490079365079370.00709325396825411
870.810.8055853174603170.80250.003085317460317430.00441468253968258
880.810.8101091269841270.8050.00510912698412697-0.000109126984126906
890.80.8091567460317460.8079166666666670.00124007936507939-0.00915674603174599
900.810.8106448412698410.8104166666666670.000228174603174601-0.000644841269841212
910.81NANA-0.000128968253968249NA
920.81NANA4.9603174603144e-05NA
930.8NANA-0.00262896825396826NA
940.82NANA-0.00233134920634921NA
950.83NANA-0.000486111111111083NA
960.83NANA-0.00286706349206346NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/1vklw1244230162.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/1vklw1244230162.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/2r19v1244230162.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/2r19v1244230162.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/3czao1244230162.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/3czao1244230162.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/44c2b1244230162.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244230220j6hxks4qe24g57n/44c2b1244230162.ps (open in new window)


 
Parameters (Session):
par1 = 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