Home » date » 2011 » May » 18 »

Exponential Smoothing Wisselkoers

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 18 May 2011 12:52:56 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go.htm/, Retrieved Wed, 18 May 2011 14:50:46 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,2638 1,2640 1,2261 1,1989 1,2000 1,2146 1,2266 1,2191 1,2224 1,2507 1,2997 1,3406 1,3123 1,3013 1,3185 1,2943 1,2697 1,2155 1,2041 1,2295 1,2234 1,2022 1,1789 1,1861 1,2126 1,1940 1,2028 1,2273 1,2767 1,2661 1,2681 1,2810 1,2722 1,2617 1,2888 1,3205 1,2993 1,3080 1,3246 1,3513 1,3518 1,3421 1,3726 1,3626 1,3910 1,4233 1,4683 1,4559 1,4728 1,4759 1,5520 1,5754 1,5554 1,5562 1,5759 1,4955 1,4342 1,3266 1,2744 1,3511 1,3244 1,2797 1,3050 1,3199 1,3646 1,4014 1,4092 1,4266 1,4575 1,4821 1,4908 1,4579 1,4266 1,3680 1,3570 1,3417 1,2563 1,2223 1,2811 1,2903 1,3103 1,3901 1,3654 1,3221
 
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'Gwilym Jenkins' @ www.wessa.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.22611.2642-0.0381
41.19891.2263-0.0273999999999999
51.21.19910.000899999999999901
61.21461.20020.0144
71.22661.21480.0118
81.21911.2268-0.00769999999999982
91.22241.21930.00309999999999988
101.25071.22260.0281
111.29971.25090.0488000000000002
121.34061.29990.0407
131.31231.3408-0.0285
141.30131.3125-0.0112000000000001
151.31851.30150.0170000000000001
161.29431.3187-0.0244
171.26971.2945-0.0247999999999999
181.21551.2699-0.0544
191.20411.2157-0.0116000000000001
201.22951.20430.0252000000000001
211.22341.2297-0.00629999999999997
221.20221.2236-0.0214000000000001
231.17891.2024-0.0234999999999999
241.18611.17910.0069999999999999
251.21261.18630.0263
261.1941.2128-0.0187999999999999
271.20281.19420.00860000000000016
281.22731.2030.0243
291.27671.22750.0491999999999999
301.26611.2769-0.0107999999999999
311.26811.26630.00180000000000002
321.2811.26830.0126999999999999
331.27221.2812-0.0089999999999999
341.26171.2724-0.0106999999999999
351.28881.26190.0268999999999999
361.32051.2890.0315000000000001
371.29931.3207-0.0214000000000001
381.3081.29950.00850000000000017
391.32461.30820.0164
401.35131.32480.0265
411.35181.35150.000299999999999967
421.34211.352-0.0098999999999998
431.37261.34230.0303
441.36261.3728-0.0102
451.3911.36280.0282
461.42331.39120.0321
471.46831.42350.0448
481.45591.4685-0.0125999999999999
491.47281.45610.0167000000000002
501.47591.4730.0028999999999999
511.5521.47610.0759000000000001
521.57541.55220.0231999999999999
531.55541.5756-0.0202
541.55621.55560.000600000000000156
551.57591.55640.0195000000000001
561.49551.5761-0.0806
571.43421.4957-0.0615000000000001
581.32661.4344-0.1078
591.27441.3268-0.0524
601.35111.27460.0765
611.32441.3513-0.0268999999999999
621.27971.3246-0.0448999999999999
631.3051.27990.0250999999999999
641.31991.30520.0147000000000002
651.36461.32010.0445
661.40141.36480.0366
671.40921.40160.00760000000000005
681.42661.40940.0172000000000001
691.45751.42680.0306999999999999
701.48211.45770.0244
711.49081.48230.00849999999999995
721.45791.491-0.0330999999999999
731.42661.4581-0.0314999999999999
741.3681.4268-0.0588
751.3571.3682-0.0112000000000001
761.34171.3572-0.0155000000000001
771.25631.3419-0.0855999999999999
781.22231.2565-0.0342
791.28111.22250.0586
801.29031.28130.00900000000000012
811.31031.29050.0198
821.39011.31050.0795999999999999
831.36541.3903-0.0248999999999999
841.32211.3656-0.0434999999999999


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
851.32231.252908750432691.39169124956731
861.32251.224365953751891.42063404624811
871.32271.202510830148731.44288916985127
881.32291.184117500865381.46168249913462
891.32311.167936448923841.47826355107616
901.32331.153326845945961.49327315405404
911.32351.139908010480881.50709198951912
921.32371.127431907503781.51996809249622
931.32391.115726251298071.53207374870193
941.32411.104665601682121.54353439831788
951.32431.094155261451321.55444473854868
961.32451.084121660297451.56487833970255
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/1l8mu1305723174.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/1l8mu1305723174.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/2fdz11305723174.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/2fdz11305723174.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/3d0gs1305723174.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057230432jbjxcg74d6l8go/3d0gs1305723174.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Double ; 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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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