Home » date » 2008 » May » 15 » attachments

Gemiddelde prijs van een kiwi

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 15 May 2008 07:34:55 -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/15/t1210858729zraewxnx3r2dru4.htm/, Retrieved Thu, 15 May 2008 15:38:54 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,33 0,35 0,35 0,34 0,37 0,38 0,39 0,37 0,37 0,37 0,37 0,38 0,36 0,36 0,36 0,36 0,38 0,37 0,39 0,39 0,4 0,42 0,42 0,4 0,36 0,36 0,36 0,36 0,35 0,38 0,4 0,39 0,39 0,39 0,36 0,35 0,35 0,33 0,33 0,32 0,36 0,37 0,38 0,38 0,38 0,38 0,39 0,4 0,38 0,41 0,41 0,43 0,42 0,41 0,41 0,43 0,44 0,46 0,44 0,43 0,43 0,42 0,42 0,42 0,43 0,44 0,45 0,44 0,47 0,48 0,48 0,45 0,44 0,44 0,45 0,46 0,45 0,46 0,47 0,48 0,48 0,46 0,47 0,47 0,43 0,41 0,39 0,41 0,44 0,45 0,45 0,46 0,45 0,45 0,46 0,46
 
Text written by user:
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.33NANA-0.0145023148148148NA
20.35NANA-0.0158217592592592NA
30.35NANA-0.0156828703703704NA
40.34NANA-0.0137384259259259NA
50.37NANA-0.00839120370370371NA
60.38NANA-0.00304398148148150NA
70.390.3729282407407410.3654166666666670.007511574074074070.0170717592592594
80.370.3754282407407410.3670833333333330.0083449074074074-0.00542824074074066
90.370.3840393518518520.3679166666666670.0161226851851852-0.0140393518518518
100.370.3897337962962960.3691666666666670.0205671296296296-0.0197337962962963
110.370.3852199074074070.3704166666666670.0148032407407407-0.0152199074074074
120.380.3742476851851850.3704166666666670.003831018518518510.00575231481481492
130.360.3554976851851850.37-0.01450231481481480.00450231481481489
140.360.3550115740740740.370833333333333-0.01582175925925920.00498842592592591
150.360.3572337962962960.372916666666667-0.01568287037037040.00276620370370367
160.360.3625115740740740.37625-0.0137384259259259-0.00251157407407410
170.380.3720254629629630.380416666666667-0.008391203703703710.00797453703703699
180.370.3802893518518520.383333333333333-0.00304398148148150-0.0102893518518519
190.390.3916782407407410.3841666666666670.00751157407407407-0.00167824074074069
200.390.3925115740740740.3841666666666670.0083449074074074-0.00251157407407415
210.40.4002893518518520.3841666666666670.0161226851851852-0.000289351851851805
220.420.4047337962962960.3841666666666670.02056712962962960.0152662037037037
230.420.3977199074074070.3829166666666670.01480324074074070.0222800925925927
240.40.3859143518518520.3820833333333330.003831018518518510.0140856481481482
250.360.3684143518518520.382916666666667-0.0145023148148148-0.00841435185185174
260.360.3675115740740740.383333333333333-0.0158217592592592-0.00751157407407405
270.360.3672337962962960.382916666666667-0.0156828703703704-0.00723379629629628
280.360.3675115740740740.38125-0.0137384259259259-0.00751157407407405
290.350.3691087962962960.3775-0.00839120370370371-0.0191087962962963
300.380.3698726851851850.372916666666667-0.003043981481481500.0101273148148148
310.40.3779282407407410.3704166666666670.007511574074074070.0220717592592592
320.390.3770949074074070.368750.00834490740740740.0129050925925926
330.390.3823726851851850.366250.01612268518518520.00762731481481477
340.390.3839004629629630.3633333333333330.02056712962962960.00609953703703703
350.360.3768865740740740.3620833333333330.0148032407407407-0.0168865740740741
360.350.3659143518518520.3620833333333330.00383101851851851-0.0159143518518518
370.350.3463310185185180.360833333333333-0.01450231481481480.00366898148148154
380.330.3437615740740740.359583333333333-0.0158217592592592-0.0137615740740740
390.330.3430671296296300.35875-0.0156828703703704-0.0130671296296295
400.320.3441782407407410.357916666666667-0.0137384259259259-0.0241782407407407
410.360.3503587962962960.35875-0.008391203703703710.0096412037037037
420.370.3590393518518520.362083333333333-0.003043981481481500.0109606481481481
430.380.3729282407407410.3654166666666670.007511574074074070.00707175925925924
440.380.3783449074074070.370.00834490740740740.00165509259259256
450.380.3927893518518520.3766666666666670.0161226851851852-0.0127893518518519
460.380.4051504629629630.3845833333333330.0205671296296296-0.0251504629629629
470.390.4064699074074070.3916666666666670.0148032407407407-0.0164699074074074
480.40.3996643518518520.3958333333333330.003831018518518510.000335648148148071
490.380.3842476851851850.39875-0.0145023148148148-0.0042476851851852
500.410.3862615740740740.402083333333333-0.01582175925925920.0237384259259259
510.410.3909837962962960.406666666666667-0.01568287037037040.0190162037037037
520.430.3987615740740740.4125-0.01373842592592590.031238425925926
530.420.4095254629629630.417916666666667-0.008391203703703710.0104745370370370
540.410.4182060185185190.42125-0.00304398148148150-0.00820601851851854
550.410.4320949074074070.4245833333333330.00751157407407407-0.0220949074074074
560.430.4354282407407410.4270833333333330.0083449074074074-0.00542824074074072
570.440.4440393518518520.4279166666666670.0161226851851852-0.00403935185185184
580.460.4484837962962960.4279166666666670.02056712962962960.0115162037037038
590.440.4427199074074070.4279166666666670.0148032407407407-0.00271990740740741
600.430.4334143518518520.4295833333333330.00383101851851851-0.00341435185185185
610.430.4179976851851850.4325-0.01450231481481480.0120023148148148
620.420.4187615740740740.434583333333333-0.01582175925925920.00123842592592588
630.420.420567129629630.43625-0.0156828703703704-0.000567129629629626
640.420.4245949074074070.438333333333333-0.0137384259259259-0.00459490740740737
650.430.4324421296296290.440833333333333-0.00839120370370371-0.00244212962962947
660.440.4402893518518520.443333333333333-0.00304398148148150-0.000289351851851749
670.450.4520949074074070.4445833333333330.00751157407407407-0.00209490740740725
680.440.4541782407407410.4458333333333330.0083449074074074-0.0141782407407406
690.470.4640393518518520.4479166666666670.01612268518518520.00596064814814823
700.480.4714004629629630.4508333333333330.02056712962962960.00859953703703698
710.480.4681365740740740.4533333333333330.01480324074074070.0118634259259259
720.450.4588310185185190.4550.00383101851851851-0.00883101851851853
730.440.4421643518518520.456666666666667-0.0145023148148148-0.00216435185185176
740.440.4433449074074070.459166666666667-0.0158217592592592-0.00334490740740739
750.450.4455671296296300.46125-0.01568287037037040.00443287037037043
760.460.4470949074074070.460833333333333-0.01373842592592590.0129050925925927
770.450.451192129629630.459583333333333-0.00839120370370371-0.00119212962962956
780.460.4569560185185180.46-0.003043981481481500.00304398148148161
790.470.4679282407407410.4604166666666670.007511574074074070.00207175925925934
800.480.4670949074074070.458750.00834490740740740.0129050925925927
810.480.4711226851851850.4550.01612268518518520.0088773148148149
820.460.4709837962962960.4504166666666670.0205671296296296-0.0109837962962962
830.470.4627199074074070.4479166666666670.01480324074074070.00728009259259266
840.470.4509143518518520.4470833333333330.003831018518518510.0190856481481482
850.430.4313310185185180.445833333333333-0.0145023148148148-0.00133101851851847
860.410.4283449074074070.444166666666667-0.0158217592592592-0.0183449074074075
870.390.4264004629629630.442083333333333-0.0156828703703704-0.036400462962963
880.410.4266782407407410.440416666666667-0.0137384259259259-0.0166782407407408
890.440.431192129629630.439583333333333-0.008391203703703710.00880787037037029
900.450.4357060185185190.43875-0.003043981481481500.0142939814814814
910.45NANA0.00751157407407407NA
920.46NANA0.0083449074074074NA
930.45NANA0.0161226851851852NA
940.45NANA0.0205671296296296NA
950.46NANA0.0148032407407407NA
960.46NANA0.00383101851851851NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/1sanr1210858491.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/1sanr1210858491.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/272d71210858491.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/272d71210858491.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/39po91210858491.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/39po91210858491.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/4s0yx1210858491.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210858729zraewxnx3r2dru4/4s0yx1210858491.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