Home » date » 2008 » May » 28 »

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: Wed, 28 May 2008 09:43:03 -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/28/t1211989437k9mxsvmiklz9umw.htm/, Retrieved Wed, 28 May 2008 17:43:57 +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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.726841894609817
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.111.107151268115940.00284873188405754
141.121.117971845795790.00202815420421376
151.111.108612659906800.00138734009319519
161.111.109621036808610.000378963191389081
171.121.12031314979929-0.000313149799294088
181.121.12091887273921-0.000918872739211984
191.111.11108433086987-0.00108433086987114
201.121.12112952709936-0.00112952709936343
211.111.11114187281578-0.00114187281578260
221.111.11114524514829-0.00114524514828895
231.11.10197949966158-0.00197949966158073
241.11.10262404971051-0.00262404971051144
251.11.10524493465159-0.0052449346515866
261.111.109958548967974.14510320287942e-05
271.11.098980300412820.00101969958718162
281.11.099446014468680.000553985531318357
291.091.11007628475527-0.0200762847552671
301.11.096151875109700.00384812489030328
311.11.08973699059950.0102630094004992
321.111.108017563413470.00198243658652775
331.131.100288442378790.0297115576212050
341.131.122716459365380.00728354063462477
351.131.119449225124120.0105507748758837
361.131.129025239587640.000974760412356446
371.141.133545974531820.00645402546818485
381.141.14820690228432-0.00820690228431742
391.141.131500621499230.00849937850077342
401.151.137275665978560.0127243340214351
411.151.15111652987460-0.00111652987459743
421.151.15750801079919-0.00750801079919339
431.151.14459128880810.00540871119190034
441.151.15708164873372-0.00708164873372219
451.151.15033880491794-0.000338804917936919
461.141.14479856483514-0.00479856483514229
471.141.133642021678570.00635797832142959
481.141.137554769982700.00244523001730146
491.131.14464100950208-0.0146410095020753
501.121.13996443082180-0.0199644308217972
511.131.119275741725970.0107242582740326
521.131.127822002880360.00217799711963784
531.131.13021660312270-0.000216603122695336
541.121.13551630369265-0.0155163036926533
551.131.120307126229230.009692873770774
561.121.13249955194757-0.0124995519475688
571.121.12366061153668-0.0036606115366804
581.111.11448772366811-0.00448772366811201
591.111.106604613085660.00339538691433972
601.111.107295226924880.00270477307511996
611.111.109902868396789.71316032214453e-05
621.141.114484452438610.0255155475613873
631.151.135235381167960.0147646188320447
641.151.144383865140140.00561613485986179
651.161.148623343466140.0113766565338573
661.151.15817027362885-0.00817027362884626
671.161.155186589729210.00481341027078841
681.131.15777037598931-0.0277703759893106
691.131.14024638911596-0.0102463891159645
701.121.12606074981142-0.00606074981142313
711.121.119187633477980.000812366522019659
721.111.11781215311355-0.00781215311355288
731.111.11206335362500-0.00206335362500409


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
741.122017852835431.103152999524051.14088270614681
751.121286309310361.0979647482631.14460787035771
761.117204267208431.090150473964021.14425806045283
771.118935236619041.088605049541861.14926542369621
781.114873733782911.081588109748471.14815935781735
791.121375145542151.085375905458681.15737438562563
801.111559818240251.073037645328881.15008199115161
811.119007323118211.078117589381751.15989705685467
821.113412529993901.070285011583211.15654004840458
831.112822067971921.067567285202691.15807685074114
841.108500268141951.061213823121051.15578671316286
851.111.060765658307021.15923434169298
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/1nsuz1211989377.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/1nsuz1211989377.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/2f7ki1211989377.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/2f7ki1211989377.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/3c6vl1211989377.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211989437k9mxsvmiklz9umw/3c6vl1211989377.ps (open in new window)


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