Home » date » 2008 » May » 27 »

exponential smoothing vruchtensappen - sanne peelmans

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 12:57:14 -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/27/t12119146949n46bgk44o210o5.htm/, Retrieved Tue, 27 May 2008 20:58:18 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,08 1,08 1,09 1,1 1,1 1,11 1,1 1,1 1,11 1,11 1,11 1,11 1,11 1,12 1,11 1,11 1,12 1,12 1,11 1,12 1,11 1,11 1,1 1,1 1,1 1,11 1,1 1,1 1,09 1,1 1,1 1,11 1,13 1,13 1,13 1,13 1,14 1,14 1,14 1,15 1,15 1,15 1,15 1,15 1,15 1,14 1,14 1,14 1,13 1,12 1,13 1,13 1,13 1,12 1,13 1,12 1,12 1,11 1,11 1,11 1,11 1,14 1,15 1,15 1,16 1,15 1,16 1,13 1,13 1,12 1,12 1,11 1,11
 
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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.725335875539957
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.111.107161848505110.00283815149489031
141.121.117955895546550.00204410445344738
151.111.108613148882050.00138685111795045
161.111.109619081751930.000380918248068518
171.121.12031371194296-0.000313711942956596
181.121.12092549562627-0.000925495626272976
191.111.11108451567403-0.00108451567403356
201.121.12114131201974-0.00114131201973899
211.111.11114455815405-0.00114455815404702
221.111.11114887817193-0.00114887817192821
231.11.10196918656044-0.00196918656044298
241.11.10261579111840-0.00261579111840238
251.11.10525415369942-0.00525415369941795
261.111.109894068097000.00010593190299657
271.11.099063182378040.000936817621960628
281.11.099468923512970.000531076487026549
291.091.10998817743964-0.0199881774396358
301.11.096146490889510.00385350911049098
311.11.089901241460480.0100987585395207
321.111.107929233293560.00207076670644013
331.131.100347720910480.0296522790895171
341.131.122697566390100.00730243360990435
351.131.119282935745690.0107170642543128
361.131.128999133231220.00100086676878486
371.141.133633980442340.00636601955766403
381.141.14851971336284-0.00851971336284119
391.141.131349239097170.00865076090282546
401.151.137225509142560.0127744908574350
411.151.15110383290820-0.0011038329081976
421.151.157903858618-0.00790385861799914
431.151.144479108432760.00552089156723912
441.151.15735536166582-0.00735536166582418
451.151.15029325727767-0.000293257277665715
461.141.14468011981976-0.00468011981976502
471.141.133413849982830.00658615001717289
481.141.137459616071600.00254038392840372
491.131.14472190290522-0.0147219029052230
501.121.14017835130926-0.0201783513092593
511.131.119334199963960.0106658000360418
521.131.127768328555100.00223167144489578
531.131.13017313118788-0.000173131187879427
541.121.13567042413462-0.0156704241346211
551.131.120383911034860.00961608896514443
561.121.13257970368752-0.0125797036875179
571.121.12366297890352-0.00366297890352074
581.111.11456355510224-0.00456355510224449
591.111.106589335319130.00341066468087248
601.111.107269487772430.00273051222757403
611.111.109873005770920.000126994229077804
621.141.114448212130150.0255517878698479
631.151.135251450235110.0147485497648880
641.151.144306653299220.00569334670078137
651.161.14856386364610.0114361363539004
661.151.15821315319504-0.00821315319504445
671.161.155351275372100.00464872462790256
681.131.15779664287646-0.0277966428764622
691.131.14033104205929-0.0103310420592868
701.121.12606722013088-0.00606722013088334
711.121.119164457464910.000835542535094325
721.111.1177711839068-0.00777118390680109
731.111.11204217192436-0.00204217192435752


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
741.121918214192471.102990596708711.14084583167623
751.121194411458081.097840958075671.1445478648405
761.117162780004271.090052527975421.14427303203312
771.118797176893711.088473853346891.14912050044054
781.114886818358271.081470528941561.14830310777497
791.121308951941511.085407440691271.15721046319175
801.111668202881191.073038480626531.15029792513584
811.119021647556911.078184791125591.15985850398823
821.113470343813421.070406321141991.15653436648485
831.112867704649361.067813752683511.15792165661520
841.108521459649691.061369513881951.15567340541742
851.11NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/1ffjr1211914628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/1ffjr1211914628.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/2i0a31211914628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/2i0a31211914628.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/3cfs81211914628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t12119146949n46bgk44o210o5/3cfs81211914628.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