Home » date » 2010 » Dec » 20 »

Paper exponential smoothinh

*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: Mon, 20 Dec 2010 20:29:05 +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/20/t1292876823lqipq8x0ccrlmz1.htm/, Retrieved Mon, 20 Dec 2010 21:27:06 +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/20/t1292876823lqipq8x0ccrlmz1.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 «
37 30 47 35 30 43 82 40 47 19 52 136 80 42 54 66 81 63 137 72 107 58 36 52 79 77 54 84 48 96 83 66 61 53 30 74 69 59 42 65 70 100 63 105 82 81 75 102 121 98 76 77 63 37 35 23 40 29 37 51 20 28 13 22 25 13 16 13 16 17 9 17 25 14 8 7 10 7 10 3
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.458869668359626
beta0.0711214003445339
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3472324
43527.79612292197597.20387707802414
53025.12011628361984.87988371638025
64321.536956799707621.4630432002924
78226.263762354490255.7362376455098
84048.5364746637534-8.53647466375342
94741.03779707009295.96220292990706
101940.3867020513055-21.3867020513055
115226.488059355842525.5119406441575
1213634.9423750303279101.057624969672
138081.3603752266012-1.36037522660121
144280.7374651764547-38.7374651764547
155461.6991275175825-7.6991275175825
166656.65207704943229.3479229505678
178159.732474679852521.2675253201475
186368.9764916278734-5.97649162787336
1913765.524010040218471.4759899597816
207299.9447743311122-27.9447743311122
2110787.832375103623519.1676248963765
225897.9639710141695-39.9639710141695
233679.6576288063808-43.6576288063808
245258.2315925624452-6.23159256244519
257953.775858309166425.2241416908336
267764.577407701136312.4225922988637
275469.9101313010682-15.9101313010682
288461.722593070479722.2774069295203
294871.7851911187162-23.7851911187162
309659.934819580663636.0651804193364
318376.7249716960326.27502830396799
326680.0501149835696-14.0501149835696
336173.5901346387314-12.5901346387314
345367.3892102383725-14.3892102383725
353059.8931462142082-29.8931462142082
367444.307219850607929.6927801493921
376957.032505098940211.9674949010598
385962.0147592058215-3.01475920582153
394260.0237233058568-18.0237233058568
406550.557316645036214.4426833549638
417056.460102760943513.5398972390565
4210062.390508396486737.6094916035133
436380.5931236258233-17.5931236258233
4410572.890773546226232.1092264537738
458289.0432235276487-7.04322352764866
468186.9999429774815-5.99994297748148
477585.2395813679951-10.2395813679951
4810281.199604915827120.8003950841729
4912192.08176248840628.9182375115939
5098107.632711515864-9.63271151586369
5176105.179431440454-29.1794314404538
527792.8044705010255-15.8044705010255
536386.0510873918158-23.0510873918158
543775.22016890505-38.22016890505
553556.1812864741518-21.1812864741518
562344.2697694860844-21.2697694860844
574031.62350175701038.37649824298966
582932.8543778868524-3.85437788685239
593728.34708657337488.65291342662523
605129.861403629806721.1385963701933
612037.7948895543533-17.7948895543533
622827.2822354159990.717764584001024
631325.2879013151935-12.2879013151935
642216.92464038580335.07535961419669
652516.69448990284758.30551009715252
661318.2176115884078-5.21761158840782
671613.36510379113092.63489620886909
681312.20186467499220.798135325007793
691610.22183920941785.77816079058217
701710.71556927481146.28443072518861
71911.6467065032089-2.64670650320886
72178.393239286816468.60676071318354
732510.584532377994514.4154676220055
741415.9117202036859-1.91172020368588
75813.6844669109560-5.68446691095602
7679.54049943294032-2.54049943294032
77106.75629291806573.2437070819343
7876.732143179676410.267856820323587
79105.351207647428614.64879235257139
8036.13226599610745-3.13226599610745


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
813.24060975992207-43.51531357540249.9965330952461
821.78625538258464-50.312040394858953.8845511600282
830.331901005247214-57.242482346615857.9062843571102
84-1.12245337209021-64.308723237283962.0638164931035
85-2.57680774942764-71.511373915770666.3577584169154
86-4.03116212676506-78.850113628241670.7877893747115
87-5.48551650410249-86.324026630345875.3529936221408
88-6.93987088143991-93.931817668092380.0520759052125
89-8.39422525877734-101.67195308767584.8835025701201
90-9.84857963611477-109.54275486837089.8455955961403
91-11.3029340134522-117.54246409017794.936596063273
92-12.7572883907896-125.669284131773100.154707350194
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/1lxy61292876942.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/1lxy61292876942.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/2lxy61292876942.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/2lxy61292876942.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/3lxy61292876942.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292876823lqipq8x0ccrlmz1/3lxy61292876942.ps (open in new window)


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