Home » date » 2008 » May » 22 »

Gemiddelde prijs van een kiwi

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 22 May 2008 08:03:16 -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/22/t1211465149intazvhe49fkqg0.htm/, Retrieved Thu, 22 May 2008 16:05:53 +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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.841006539333911
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.360.3541687218643350.00583127813566497
140.360.3582659595947020.00173404040529840
150.360.3577146659601940.00228533403980585
160.360.3564504971371530.00354950286284744
170.380.3752487212948450.00475127870515524
180.370.3664548364181370.00354516358186269
190.390.3885611759742310.00143882402576945
200.390.3897712363888530.000228763611146654
210.40.3999626954685023.73045314979725e-05
220.420.419993772264616.22773538955235e-06
230.420.421370062093576-0.00137006209357576
240.40.401080320516783-0.00108032051678314
250.360.37287669013049-0.0128766901304904
260.360.360579552610568-0.000579552610567746
270.360.3581677299158860.00183227008411407
280.360.3567212583834520.0032787416165479
290.350.375451722368071-0.025451722368071
300.380.3419475277796540.0380524722203462
310.40.3929397180674910.00706028193250913
320.390.398680671937991-0.00868067193799055
330.390.401384074199658-0.0113840741996585
340.390.411395362682129-0.0213953626821292
350.360.394480424556518-0.0344804245565176
360.350.3488685321870660.00113146781293416
370.350.3242553754313680.0257446245686317
380.330.346374979781771-0.016374979781771
390.330.331178679034397-0.001178679034397
400.320.327654643061797-0.00765464306179681
410.360.3311751329660340.0288248670339658
420.370.3528578888909780.0171421111090218
430.380.380849704025799-0.000849704025799314
440.380.3775451963330150.00245480366698503
450.380.388885662661695-0.0088856626616951
460.380.398858044040577-0.0188580440405772
470.390.381587393131760.00841260686823964
480.40.3768384090324910.0231615909675089
490.380.3715106968371840.00848930316281599
500.410.3717952439304620.0382047560695378
510.410.4051383448477360.00486165515226394
520.430.4047791200237330.0252208799762673
530.420.446551397531768-0.0265513975317682
540.410.418890906862472-0.00889090686247168
550.410.423327191628258-0.0133271916282584
560.430.4098776290342350.0201223709657654
570.440.435162846113130.00483715388687
580.460.4574192227338620.0025807772661377
590.440.463097787048965-0.0230977870489652
600.430.432682919853982-0.002682919853982
610.430.4011952125148320.0288047874851679
620.420.422494194554144-0.00249419455414446
630.420.4161962794197090.00380372058029144
640.420.417952320433030.00204767956696966
650.430.431491381418336-0.00149138141833588
660.440.4276266245709580.0123733754290418
670.450.4499457375314055.42624685953008e-05
680.440.453229223192051-0.0132292231920506
690.470.4481949262654410.0218050737345586
700.480.485435798511558-0.00543579851155845
710.480.480095501569868-9.55015698678174e-05
720.450.471564862662166-0.0215648626621663
730.440.4276087521693330.0123912478306673
740.440.4299779211534020.0100220788465976
750.450.4350625915042020.0149374084957979
760.460.4457882439387880.0142117560612118
770.450.470005218999662-0.0200052189996620
780.460.4527034625010750.00729653749892489
790.470.4692204877535070.000779512246492975
800.480.4709963835319790.00900361646802111
810.480.491104277428729-0.0111042774287292
820.460.496693396821315-0.0366933968213146
830.470.4659119547564310.00408804524356932
840.470.4576153487744670.0123846512255326
850.430.446742803797396-0.0167428037973964
860.410.424343805119414-0.0143438051194145
870.390.409817091292825-0.0198170912928252
880.410.3913936833288630.0186063166711372
890.440.4129760627942270.0270239372057733
900.450.4394291663450480.0105708336549523
910.450.457426281922807-0.00742628192280742
920.460.4534896713193250.0065103286806748
930.450.46786169251636-0.0178616925163598
940.450.462720207810253-0.0127202078102533
950.460.4584658779734860.00153412202651398
960.460.4495246604020540.0104753395979463


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
970.4329741341237190.4031021929624130.462846075285025
980.4249152821412730.3860199979614230.463810566321122
990.4213218837950950.3747242989147230.467919468675467
1000.42590050733140.3723401088659940.479460905796805
1010.4332224328780280.3739549776150260.492489888141030
1020.434282382192940.3692100267052030.499354737680677
1030.4402940153835730.3699688093326060.51061922143454
1040.4447091103608730.3693587750419150.520059445679832
1050.4494729059660860.3684283213040570.530517490628115
1060.4601103456703580.3738209825070950.546399708833621
1070.4690151258532490.3806779869771510.557352264729347
1080.46NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/1skm11211464993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/1skm11211464993.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/2atqk1211464993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/2atqk1211464993.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/3knat1211464993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/22/t1211465149intazvhe49fkqg0/3knat1211464993.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.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