Home » date » 2009 » Dec » 01 »

ws9

*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, 01 Dec 2009 14:47:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt.htm/, Retrieved Tue, 01 Dec 2009 22:54:51 +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/2009/Dec/01/t1259704487m3eb71az9jkyqbt.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
325412 326011 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 310631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860 300713 287224
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.641464199430926
beta0.149080426851784
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13337698338129.808201150-431.808201150445
14335932336292.340320842-360.340320842166
15323931324279.172300144-348.172300143982
16313927314044.535194918-117.535194918106
17314485314074.404418508410.595581492351
18313218312734.832013465483.167986534652
19309664311475.27546251-1811.27546250977
20302963306210.600288761-3247.60028876114
21298989296942.2546650622046.74533493759
22298423295531.9380774742891.06192252599
23310631301168.0199998679462.98000013281
24329765337962.286114488-8197.2861144878
25335083336931.639738523-1848.63973852270
26327616334267.265346076-6651.26534607634
27309119317893.093062713-8774.09306271316
28295916301385.247821761-5469.24782176124
29291413296328.534686983-4915.53468698269
30291542289376.4596570512165.54034294933
31284678286392.666639411-1714.66663941147
32276475278905.002845494-2430.00284549355
33272566270458.0931801982107.90681980172
34264981267591.202643675-2610.20264367491
35263290268756.376123083-5466.37612308329
36296806281864.78657882714941.2134211731
37303598295071.4720849928526.52791500837
38286994296502.935654430-9508.93565442954
39276427277510.509852600-1083.50985259959
40266424267345.581287227-921.581287226756
41267153265141.3518882602011.64811174042
42268381265544.2670606372836.73293936258
43262522262427.39369674294.6063032578095
44255542256872.579053333-1330.57905333309
45253158251750.1160908721407.88390912814
46243803247717.896494066-3914.89649406596
47250741247270.4402228143470.55977718590
48280445273433.0010073947011.9989926056
49285257279818.6801887645438.31981123617
50270976273870.314123761-2894.31412376126
51261076263653.918265663-2577.91826566315
52255603253905.9667145281697.03328547216
53260376255554.2113289544821.78867104626
54263903259474.8199948354428.18000516525
55264291258088.3720418886202.62795811243
56263276258092.8953117865183.10468821405
57262572260848.5580237561723.44197624366
58256167257641.672500395-1474.67250039469
59264221264795.580508491-574.580508490501
60293860294010.622286622-150.622286622121
61300713297605.5629112273107.43708877300
62287224288536.835335810-1312.83533580956


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
63281045.210151128271896.405397039290194.014905216
64276320.704821048265036.744675594287604.664966502
65280308.959914284266633.598762833293984.321065734
66282727.645294841266577.147055184298878.143534497
67280066.981204555261571.462347718298562.500061392
68276019.089614769255213.416693857296824.762535681
69274176.106518518250877.545756216297474.66728082
70268364.756162014242848.314389298293881.197934729
71277223.911670223248121.780579891306326.042760556
72308524.808309352273209.734091762343839.882526941
73313737.147427361274632.855853515352841.439001208
74300362.909087304260743.468607088339982.34956752
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/149hx1259704034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/149hx1259704034.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/21gtc1259704034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/21gtc1259704034.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/3ib7y1259704034.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259704487m3eb71az9jkyqbt/3ib7y1259704034.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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