Home » date » 2010 » Dec » 17 »

Tripple exponential smoothing

*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: Fri, 17 Dec 2010 14:30:56 +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/17/t1292596449uj61ofnr2p5d1ps.htm/, Retrieved Fri, 17 Dec 2010 15:34:09 +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/17/t1292596449uj61ofnr2p5d1ps.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 «
300 302 400 392 373 379 303 324 353 392 327 376 329 359 413 338 422 390 370 367 406 418 346 350 330 318 382 337 372 422 428 426 396 458 315 337 386 352 383 439 397 453 363 365 474 373 403 384 364 361 419 352 363 410 361 383 342 369 361 317 386 318 407 393 404 498 438
 
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
alpha0.295879428539368
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
23023002
3400300.59175885707999.4082411429213
4392330.0046124385561.99538756145
5373348.34777228230824.6522277176916
6379355.64185933164123.3581406683587
7303362.553052644337-59.5530526443375
8324344.932529460156-20.9325294601560
9353338.73902460560214.2609753943984
10392342.9585538557149.0414461442898
11327357.468908915627-30.4689089156269
12376348.45378555745327.5462144425468
13329356.604143745137-27.6041437451368
14359348.43664546850710.5633545314928
15413351.56212477074461.437875229256
16338369.740328184249-31.7403281842492
17422360.34901801944261.6509819805584
18390378.5902753367411.4097246632600
19370381.966178149897-11.9661781498969
20367378.425632197105-11.4256321971051
21406375.04502267192530.9549773280754
22418384.20396367420533.7960363257953
23346394.203515589177-48.2035155891767
24350379.941086943063-29.9410869430626
25330371.082135248502-41.0821352485017
26318358.926776547998-40.926776547998
27382346.81738529101835.1826147089820
28337357.227197225632-20.2271972256323
29372351.24238566955920.7576143304408
30422357.38413673549164.6158632645094
31428376.50264143277251.4973585672284
32426391.7396504569334.26034954307
33396401.876583101293-5.87658310129257
34458400.13782305151857.862176948482
35315417.258050901079-102.258050901079
36337387.001997236918-50.0019972369179
37386372.20743486863213.7925651313684
38352376.288371157793-24.2883711577929
39383369.10194177947313.8980582205269
40439373.21409130356965.7859086964306
41397392.6787883746124.32121162538766
42453393.9573460009359.0426539990703
43363411.426852725622-48.4268527256222
44365397.098343215205-32.098343215205
45474387.6011037676386.3988962323704
46373413.164759811295-40.1647598112955
47403401.2808336309081.71916636909157
48384401.789499593759-17.7894995937593
49364396.525952619957-32.5259526199565
50361386.902192346065-25.9021923460652
51419379.23826647679539.7617335232053
52352391.002945469375-39.0029454693753
53363379.462776252544-16.4627762525444
54410374.5917794227735.4082205772299
55361385.068343492757-24.0683434927568
56383377.9470157742315.05298422576931
57342379.44208985937-37.4420898593697
58369368.363745708460.63625429154024
59361368.552000264646-7.55200026464638
60317366.317518742014-49.3175187420136
61386351.72547947964734.2745205203529
62318361.86660502467-43.8666050246699
63407348.88737899800858.1126210019916
64393366.08170809100326.9182919089974
65404374.04627691829329.9537230817074
66498382.908967386335115.091032613665
67438416.96203634607221.0379636539283


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
68423.186737009628339.072912714504507.300561304752
69423.186737009628335.468291995314510.905182023942
70423.186737009628332.006060581411514.367413437845
71423.186737009628328.670569545615517.702904473641
72423.186737009628325.44884225911520.924631760146
73423.186737009628322.329976064010524.043497955246
74423.186737009628319.304705904054527.068768115202
75423.186737009628316.365079351653530.008394667603
76423.186737009628313.504210128745532.869263890511
77423.186737009628310.716088122224535.657385897032
78423.186737009628307.995430830160538.378043189096
79423.186737009628305.337565703632541.035908315624
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/1ngh71292596251.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/1ngh71292596251.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/2ngh71292596251.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/2ngh71292596251.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/3fqga1292596251.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596449uj61ofnr2p5d1ps/3fqga1292596251.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; 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