Home » date » 2010 » Dec » 29 »

Paper Exponential Smoothing Single

*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: Tue, 28 Dec 2010 23:08:22 +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/29/t1293577613hhe2fr0ymfs2usl.htm/, Retrieved Wed, 29 Dec 2010 00:06:57 +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/29/t1293577613hhe2fr0ymfs2usl.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 «
1203 1319 1328 1260 1286 1274 1389 1255 1244 1336 1214 1239 1174 1061 1116 1123 1086 1074 965 1035 1016 941 1003 998 891 828 833 887 842 793 778 699 686 727 641 619 627 593 535 536 504 487 477 435 433 393 389 377 339 370 350 341 367 396 408 405 391 396 368 356
 
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' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.79903298900027
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
213191203116
313281295.6878267240332.3121732759687
412601321.50631911782-61.5063191178233
512861272.3607411107013.6392588892954
612741283.25895890877-9.25895890876677
713891275.86074529686113.139254703136
812551366.26274215557-111.262742155574
912441277.36014072664-33.3601407266392
1013361250.7042877683685.295712231637
1112141318.85837566171-104.858375661715
1212391235.073074335023.9269256649784
1311741238.21081748669-64.2108174866912
1410611186.90425606415-125.904256064150
1511161086.3026020133629.6973979866432
1611231110.0318026921512.968197307845
1710861120.39382014899-34.3938201489877
1810741092.91202323220-18.9120232322043
199651077.80069278093-112.800692780934
201035987.66921806688347.3307819331169
2110161025.48807422662-9.4880742266214
229411017.90678991747-76.9067899174677
231003956.45572769529846.5442723047024
24998993.6461367157664.35386328423351
25891997.125017109466-106.125017109466
26828912.327627480785-84.3276274807846
27833844.947071239512-11.9470712395118
28887835.40096719720651.5990328027945
29842876.630296607145-34.6302966071454
30793848.959547199172-55.959547199172
31778804.246022937516-26.2460229375159
32699783.274584780383-84.274584780383
33686715.936411406557-29.936411406557
34727692.01623112043434.983768879566
35641719.969416534768-78.9694165347682
36619656.870247601385-37.870247601385
37627626.610670466270.389329533730006
38593626.921757607312-33.9217576073123
39535599.817154234199-64.817154234199
40536548.026109747956-12.0261097479555
41504538.416851330001-34.4168513300014
42487510.916651739812-23.9166517398124
43477491.806458013272-14.8064580132716
44435479.97560961042-44.9756096104202
45433444.038613831297-11.0386138312969
46393435.218397227256-42.218397227256
47389401.484505099961-12.4845050999609
48377391.50897367375-14.5089736737501
49339379.915825071887-40.9158250718873
50370347.22273106728522.777268932715
51350365.422520343855-15.4225203438552
52341353.099417815587-12.0994178155871
53367343.43158383323523.5684161667646
54396362.26352584896833.7364741510324
55408389.22008162819718.7799183718026
56405404.2258559380.774144062000119
57391404.844422581777-13.8444225817766
58396393.7822722252772.21772777472319
59368395.554309877903-27.5543098779028
60356373.537507296322-17.5375072963225


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
61359.524460421728259.615045741503459.433875101953
62359.524460421728231.638313208750487.410607634706
63359.524460421728208.766899562533510.282021280923
64359.524460421728188.934842732232530.114078111224
65359.524460421728171.179582151352547.869338692104
66359.524460421728154.959632853748564.089287989707
67359.524460421728139.934514875144579.114405968312
68359.524460421728125.873610450267593.175310393189
69359.524460421728112.612137522241606.436783321215
70359.524460421728100.027503393606619.02141744985
71359.52446042172888.0255723685921631.023348474864
72359.52446042172876.5321960021442642.516724841312
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/100y11293577699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/100y11293577699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/200y11293577699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/200y11293577699.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/3tsfm1293577699.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577613hhe2fr0ymfs2usl/3tsfm1293577699.ps (open in new window)


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