Home » date » 2010 » Dec » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 19 Dec 2010 17:21:19 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy.htm/, Retrieved Sun, 19 Dec 2010 18:18:56 +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/2010/Dec/19/t129277913633funkupnq6hxzy.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41,85 41,75 41,75 41,75 41,58 41,61 41,42 41,37 41,37 41,33 41,37 41,34 41,33 41,29 41,29 41,27 41,04 40,90 40,89 40,72 40,72 40,58 40,24 40,07 40,12 40,10 40,10 40,08 40,06 39,99 40,05 39,66 39,66 39,67 39,56 39,64 39,73 39,70 39,70 39,68 39,76 40,00 39,96 40,01 40,01 40,01 40,00 39,91 39,86 39,79 39,79 39,80 39,64 39,55 39,36 39,28
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.000564574695315228
gamma0.192386515790093


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1341.3341.6101522435898-0.280152243589754
1441.2941.28651869793430.00348130206570829
1541.2941.2915206633893-0.00152066338934986
1641.2741.275686471528-0.00568647152795876
1741.0441.06568326109-0.0256832610900091
1840.940.9473354276374-0.0473354276373854
1940.8940.76272536991940.127274630080592
2040.7240.8282138926216-0.108213892621571
2140.7240.70565279779610.0143472022038793
2240.5840.6664942311968-0.0864942311967667
2340.2440.6097787320759-0.369778732075865
2440.0740.2091532976942-0.139153297694222
2540.1240.05865806859690.0613419314030992
2640.140.07619270069910.0238072993008842
2740.140.1012061416979-0.00120614169787814
2840.0840.0853721274075-0.00537212740748316
2940.0639.87536909444030.184630905559743
3039.9939.96713999904420.0228600009558022
3140.0539.85256957188890.197430428111069
3239.6639.9880977027794-0.328097702779388
3339.6639.64541246711880.0145875328811869
3439.6739.60625403620410.0637459637959239
3539.5639.6996233588955-0.139623358895491
3639.6439.52912786441350.110872135586462
3739.7339.6287737933490.101226206650971
3839.739.68633094310380.0136690568962123
3939.739.7013386603074-0.00133866030743945
4039.6839.6855045712004-0.00550457120038317
4139.7639.47550146345870.28449853654125
424039.66732875080.332671249199983
4339.9639.86293323523580.0970667647641648
4440.0139.89840470334160.111595296658358
4540.0139.99596770722220.0140322927777490
4640.0139.9568089628330.0531910371669895
474040.0401723264799-0.040172326479933
4839.9139.9697329795343-0.0597329795343029
4939.8639.8992825891389-0.0392825891388995
5039.7939.8167604111831-0.0267604111831048
5139.7939.7917453029321-0.00174530293212172
5239.839.77591098424490.0240890157550666
5339.6439.59592458429360.0440754157063665
5439.5539.54761613482470.00238386517528255
5539.3639.4130341473613-0.0530341473613234
5639.2839.2984208722904-0.0184208722903989


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
5739.265910472332039.009738805707439.5220821389567
5839.212654277997438.850270550862539.5750380051323
5939.242731416996138.798778524712139.6866843092801
6039.212391889328238.699614569976839.7251692086796
6139.201635694993638.628171455874439.7750999341127
6239.158379500658938.530003677346539.7867553239714
6339.160123306324338.481208402672139.8390382099765
6439.146033778656438.420038538578739.8720290187341
6538.941944250988438.171692899933939.712195602043
6638.849521389987138.037376295934839.6616664840395
6738.712515195652537.860490160559239.5645402307458
6838.650925667984637.76076376948939.5410875664801
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/121l61292779274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/121l61292779274.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/262nm1292779275.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/262nm1292779275.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/362nm1292779275.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277913633funkupnq6hxzy/362nm1292779275.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=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