Home » date » 2011 » Jan » 04 »

Exponential smoothing plat water

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 04 Jan 2011 13:44:50 +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/Jan/04/t1294149041zd0krsvr1f67drl.htm/, Retrieved Tue, 04 Jan 2011 14:50:41 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl.htm/},
    year = {2011},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2011},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102 - Kristina Henderickx
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.65 0.65 0.65 0.65 0.65 0.65 0.66 0.66 0.66 0.65 0.65 0.65 0.65 0.65 0.65 0.65 0.66 0.67 0.66 0.67 0.66 0.66 0.66 0.66 0.71 0.74 0.75 0.75 0.75 0.75 0.7 0.69 0.69 0.68 0.68 0.68 0.67 0.66 0.66 0.67 0.67 0.67 0.67 0.68 0.68 0.67 0.67 0.67 0.67 0.67 0.69 0.69 0.69 0.69 0.69 0.69 0.7 0.69 0.68 0.7 0.7 0.71 0.69 0.7 0.7 0.71 0.71 0.71 0.71 0.7 0.7 0.71 0.71 0.71 0.71 0.7 0.69 0.7 0.7 0.7 0.71 0.7 0.7 0.69
 
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
alpha1
beta0
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
30.650.650
40.650.650
50.650.650
60.650.650
70.660.650.01
80.660.660
90.660.660
100.650.66-0.01
110.650.650
120.650.650
130.650.650
140.650.650
150.650.650
160.650.650
170.660.650.01
180.670.660.01
190.660.67-0.01
200.670.660.01
210.660.67-0.01
220.660.660
230.660.660
240.660.660
250.710.660.0499999999999999
260.740.710.03
270.750.740.01
280.750.750
290.750.750
300.750.750
310.70.75-0.05
320.690.7-0.01
330.690.690
340.680.69-0.0099999999999999
350.680.680
360.680.680
370.670.68-0.01
380.660.67-0.01
390.660.660
400.670.660.01
410.670.670
420.670.670
430.670.670
440.680.670.01
450.680.680
460.670.68-0.01
470.670.670
480.670.670
490.670.670
500.670.670
510.690.670.0199999999999999
520.690.690
530.690.690
540.690.690
550.690.690
560.690.690
570.70.690.01
580.690.7-0.01
590.680.69-0.0099999999999999
600.70.680.0199999999999999
610.70.70
620.710.70.01
630.690.71-0.02
640.70.690.01
650.70.70
660.710.70.01
670.710.710
680.710.710
690.710.710
700.70.71-0.01
710.70.70
720.710.70.01
730.710.710
740.710.710
750.710.710
760.70.71-0.01
770.690.7-0.01
780.70.690.01
790.70.70
800.70.70
810.710.70.01
820.70.71-0.01
830.70.70
840.690.7-0.01


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
850.690.6682438789901880.711756121009812
860.690.6592321986032940.720767801396706
870.690.652317293035390.72768270696461
880.690.6464877579803770.733512242019623
890.690.641351834495350.73864816550465
900.690.6367086047437170.743291395256283
910.690.6324387143146110.747561285685389
920.690.6284643972065880.751535602793412
930.690.6247316369705650.755268363029435
940.690.6212011045587530.758798895441247
950.690.6178431097168870.762156890283113
960.690.6146345860707790.76536541392922
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/1hsma1294148685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/1hsma1294148685.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/2jl2q1294148685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/2jl2q1294148685.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/3k9ns1294148685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149041zd0krsvr1f67drl/3k9ns1294148685.ps (open in new window)


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