Home » date » 2010 » Dec » 29 »

Paper Exponential Smoothing Triple

*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:11:20 +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/t1293577801kr98xey9m3hxr6a.htm/, Retrieved Wed, 29 Dec 2010 00:10:02 +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/t1293577801kr98xey9m3hxr6a.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.51204887375077
beta0
gamma0.581472577695563


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1311741274.22783119658-100.227831196582
1410611116.34086936098-55.3408693609758
1511161141.27155911272-25.2715591127196
1611231140.89087197821-17.8908719782114
1710861099.5811240451-13.5811240451021
1810741079.06151102062-5.06151102062427
199651152.73768958346-187.737689583456
201035914.166403318762120.833596681238
211016964.2236966577351.776303342269
229411076.87861405154-135.878614051538
231003878.945042340052124.054957659948
24998963.73516327344734.2648367265526
25891893.444024734543-2.44402473454306
26828798.36293749062229.6370625093784
27833875.33805293588-42.33805293588
28887868.3126106910318.6873893089695
29842846.955525893215-4.95552589321539
30793833.26991218812-40.2699121881208
31778837.086920059398-59.0869200593984
32699751.942107946567-52.9421079465669
33686693.424107852443-7.42410785244329
34727722.5221542811174.47784571888337
35641670.208953791284-29.2089537912836
36619651.044292583544-32.044292583544
37627536.38422648836590.615773511635
38593498.05667740116894.9433225988323
39535588.050275933568-53.0502759335682
40536592.854412849929-56.8544128499291
41504526.108024296281-22.1080242962807
42487493.619735244879-6.61973524487928
43477509.328324930364-32.3283249303644
44435439.628690081141-4.62869008114097
45433418.76435242456614.2356475754337
46393462.330195883101-69.330195883101
47389362.66570848281626.3342915171839
48377371.1374322394995.86256776050124
49339310.68989627425628.3101037257437
50370241.686655509333128.313344490667
51350306.77708298106343.2229170189369
52341359.798451396197-18.7984513961973
53367322.39717478918644.6028252108143
54396328.462596432267.5374035678003
55408374.84896225546533.1510377445351
56405346.53718423053758.4628157694629
57391363.33116336850727.6688366314934
58396390.0653027458135.93469725418726
59368356.08302317298811.9169768270118
60356351.3639309212294.63606907877067


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
61296.657411537635176.420513171112416.894309904157
62241.531953464013106.448912512924376.614994415102
63216.77695346812368.3251290388298365.228777897416
64230.06874069029169.356387710883390.781093669699
65220.28204678827448.1804005905409392.383692986008
66210.01587450108727.2332362452558392.798512756918
67212.06333846765519.1902997308891404.936377204421
68173.958324722318-28.5028451235221376.419494568158
69152.079303055195-59.53601188949363.69461799988
70158.479014103048-61.9105449575624378.868573163659
71123.155232859851-105.672374667568351.98284038727
72110.268252639763-126.69712498008347.233630259605
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/1568h1293577876.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/1568h1293577876.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/2568h1293577876.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/2568h1293577876.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/3gxp21293577876.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293577801kr98xey9m3hxr6a/3gxp21293577876.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