Home » date » 2010 » Jun » 07 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 07 Jun 2010 07:44:25 +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/Jun/07/t1275896681ju8macmgszgv0zz.htm/, Retrieved Mon, 07 Jun 2010 09:44:41 +0200
 
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/Jun/07/t1275896681ju8macmgszgv0zz.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10.383 10.431 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 10.646 10.702 11.353 11.346 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 17.696 17.745 19.394 20.148 20.108 18.584 18.441 18.391 19.178 18.079 18.483 19.644 19.195 19.650 20.830 23.595 22.937 21.814 21.928 21.777 21.383 21.467 22.052 22.680 24.320 24.977 25.204 25.739 26.434 27.525 30.695
 
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
alpha0.933411388023692
beta0.000993563346089219
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1311.35310.53914423076920.813855769230768
1411.34611.22575471973170.120245280268254
1511.45111.32367779531870.127322204681256
1611.96411.82828296511650.135717034883516
1712.57412.40072482945720.17327517054275
1813.03112.77071791464090.260282085359146
1913.81213.52904063142670.282959368573293
2014.54413.73675133341150.807248666588531
2114.93114.71246328189380.218536718106209
2214.88615.1593674650798-0.273367465079810
2316.00515.10670249329610.898297506703855
2417.06416.07918269990030.984817300099735
2515.16817.7234449824935-2.55544498249354
2616.0515.22001945330570.829980546694332
2715.83915.9826411953866-0.143641195386605
2815.13716.2363861933076-1.09938619330764
2914.95415.6588252957237-0.704825295723738
3015.64815.21452443478010.43347556521992
3115.30516.1357199462489-0.830719946248909
3215.57915.33749053931950.241509460680513
3316.34815.74407803994070.603921960059346
3415.92816.5164518686078-0.588451868607802
3516.17116.2459127488755-0.0749127488754695
3615.93716.3130557728083-0.376055772808327
3715.71316.4473675217059-0.734367521705879
3815.59415.8669211347928-0.27292113479278
3915.68315.53196084736730.151039152632706
4016.43815.99410647294030.443893527059702
4117.03216.88174931433260.150250685667402
4217.69617.31059259727850.385407402721523
4317.74518.1019037464118-0.356903746411842
4419.39417.81694149521261.57705850478743
4520.14819.49512027185520.652879728144846
4620.10820.2346807678668-0.126680767866812
4718.58420.430675604756-1.84667560475602
4818.44118.82365486272-0.382654862719999
4918.39118.9276139004689-0.536613900468915
5019.17818.56232990395600.615670096044028
5118.07919.0856956341500-1.00669563415003
5218.48318.4862994210085-0.00329942100850289
5319.64418.93615950384580.707840496154201
5419.19519.9008248368261-0.705824836826093
5519.6519.62282851678050.0271714832195045
5620.8319.82419311261911.0058068873809
5723.59520.90613635345402.68886364654597
5822.93723.4946027629047-0.557602762904672
5921.81423.1738435845337-1.35984358453371
6021.92822.1191815440399-0.191181544039939
6121.77722.3922466530137-0.615246653013706
6221.38322.0308566311477-0.647856631147729
6321.46721.26619093352130.200809066478708
6422.05221.86121785453310.190782145466908
6522.6822.54027942802110.13972057197887
6624.3222.88068399166681.43931600833318
6724.97724.6559480337080.321051966291993
6825.20425.19921479886530.00478520113473024
6925.73925.46036186721920.278638132780795
7026.43425.58217984683650.851820153163484
7127.52526.52414027405811.00085972594191
7230.69527.75356280256892.94143719743115


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7330.928074845379429.165929577689332.6902201130696
7431.145025017706928.733402564675733.5566474707382
7531.048421787649728.127450420314433.969393154985
7631.461991568852328.107350916819334.8166322208854
7731.966045872239828.226988675064135.7051030694155
7832.268913418185228.180774045735436.3570527906350
7932.631246529312928.220960409332937.041532649293
8032.858488896025428.147461995270237.5695157967806
8133.138109379884228.143878581395538.132340178373
8233.042456828571927.779726602896638.3051870542472
8333.202899061905227.684226732442638.7215713913677
8433.630055983353527.866325319526939.3937866471802
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/1bq5c1275896660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/1bq5c1275896660.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/2bq5c1275896660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/2bq5c1275896660.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/33z5x1275896660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/07/t1275896681ju8macmgszgv0zz/33z5x1275896660.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