Home » date » 2008 » Jun » 01 »

Exponential smoothing - Aardappelprijs - Kristof Vermeulen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 08:54:09 -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/Jun/01/t1212332219dijia74dopd58g4.htm/, Retrieved Sun, 01 Jun 2008 14:57:03 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,36 0,35 0,35 0,35 0,33 0,78 0,71 0,62 0,52 0,46 0,43 0,43 0,42 0,42 0,42 0,42 0,43 0,99 1,03 0,83 0,64 0,6 0,58 0,58 0,58 0,57 0,57 0,56 0,56 0,88 0,84 0,69 0,59 0,54 0,52 0,52 0,51 0,52 0,51 0,51 0,53 0,95 0,98 0,88 0,81 0,77 0,76 0,75 0,73 0,74 0,73 0,75 0,77 1,09 1,03 0,9 0,76 0,66 0,63 0,61 0,61 0,61 0,61 0,61 0,62 0,76 0,83 0,81 0,77 0,75 0,76 0,76
 
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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.427961762367385
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.420.3814549309212760.0385450690787244
140.420.3821991487278610.037800851272139
150.420.3887945263798020.0312054736201978
160.420.39467010478390.0253298952160997
170.430.4067282020330240.023271797966976
180.990.939597344120760.0504026558792394
191.030.9791694223439250.0508305776560753
200.830.7901084002980080.0398915997019921
210.640.6103499148753420.0296500851246579
220.60.573364685242320.0266353147576803
230.580.55576222255490.0242377774450997
240.580.5654304782404530.0145695217595465
250.580.545956811786430.0340431882135694
260.570.5377640884261150.0322359115738852
270.570.5332433854083970.0367566145916034
280.560.5342984746166070.0257015253833931
290.560.5449372972396020.0150627027603977
300.881.24097530413189-0.360975304131893
310.841.10582300987989-0.265823009879894
320.690.782519629802283-0.0925196298022835
330.590.5611905652662930.0288094347337066
340.540.5271939191722210.0128060808277793
350.520.5054841739072980.0145158260927024
360.520.5061152834629740.0138847165370256
370.510.4987480230537820.0112519769462185
380.520.4825032288317890.0374967711682109
390.510.4842648315258090.0257351684741908
400.510.4767743464171040.0332256535828961
410.530.4852534171132770.0447465828867230
420.950.9053348763003960.0446651236996037
430.980.983619758460618-0.00361975846061757
440.880.8496947541439130.0303052458560866
450.810.7217828934731760.0882171065268239
460.770.6880165809738260.0819834190261745
470.760.6878671414387420.0721328585612585
480.750.7103967199448560.0396032800551437
490.730.7065363836957110.0234636163042891
500.740.7071112219384040.0328887780615956
510.730.6915885474220030.0384114525779968
520.750.6875225214369210.062477478563079
530.770.7140901697147880.0559098302852118
541.091.29550847595839-0.205508475958388
551.031.24765709399755-0.217657093997551
560.91.02111522606375-0.121115226063751
570.760.84783376002545-0.08783376002545
580.660.732859642537123-0.0728596425371233
590.630.662819764731786-0.0328197647317865
600.610.625318763951989-0.0153187639519892
610.610.5938229643343130.0161770356656866
620.610.5970903558969290.0129096441030709
630.610.5806695837946580.0293304162053424
640.610.5866591709472670.0233408290527328
650.620.5926989977319450.0273010022680553
660.760.917867224012115-0.157867224012115
670.830.868328871542498-0.038328871542498
680.810.7842080671472310.0257919328527693
690.770.7026957540128590.0673042459871414
700.750.6634786495842490.0865213504157514
710.760.6831415116690460.0768584883309538
720.760.7006483687006010.0593516312993986


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
730.7176814267403820.5486629807280980.886699872752667
740.711101654368420.527852413162250.89435089557459
750.6960550770581730.4999116717629750.892198482353371
760.6844018408389470.475581412178630.893222269499264
770.6821739519614660.4290755498494970.935272354073435
780.9026546177990940.621538014476831.18377122112136
791.004774699868150.721675916384521.28787348335178
800.9669531096274180.691378455892091.24252776336275
810.8830076723724520.6121951596177891.15382018512711
820.8146101383197830.5401929281278931.08902734851167
830.7875518715198120.5101274679633021.06497627507632
840.76NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/1posv1212332042.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/1posv1212332042.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/2bcio1212332042.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/2bcio1212332042.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/3jpaf1212332042.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212332219dijia74dopd58g4/3jpaf1212332042.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