Home » date » 2010 » Dec » 21 »

paper- 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: Tue, 21 Dec 2010 15:32:41 +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/21/t1292945580ogr85u9h7cdatm8.htm/, Retrieved Tue, 21 Dec 2010 16:33:04 +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/21/t1292945580ogr85u9h7cdatm8.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 «
631 923 654 294 671 833 586 840 600 969 625 568 558 110 630 577 628 654 603 184 656 255 600 730 670 326 678 423 641 502 625 311 628 177 589 767 582 471 636 248 599 885 621 694 637 406 595 994 696 308 674 201 648 861 649 605 672 392 598 396 613 177 638 104 615 632 634 465 638 686 604 243 706 669 677 185 644 328 644 825 605 707 600 136 612 166 599 659 634 210 618 234 613 576 627 200 668 973 651 479 619 661 644 260 579 936 601 752 595 376 588 902 634 341 594 305 606 200 610 926 633 685 639 696 659 451 593 248 606 677 599 434 569 578 629 873 613 438 604 172 658 328 612 633 707 372 739 770 777 535 685 030 730 234 714 154 630 872 719 492 677 023 679 272 718 317 645 672
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.372612088044863
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13670326668237.2198183762088.78018162376
14678423676144.0439397752278.95606022526
15641502641317.479892395184.520107605262
16625311625905.5453581-594.545358099393
17628177628846.98828057-669.988280570717
18589767591452.903591505-1685.90359150525
19582471562903.35991048919567.6400895109
20636248640338.851852142-4090.85185214237
21599885637432.82037809-37547.8203780904
22621694597915.734668623778.2653313997
23637406657393.031473608-19987.0314736081
24595994595061.516318865932.48368113453
25696308667074.965823529233.0341765003
26674201685215.38115173-11014.3811517294
27648861644121.535169684739.46483031951
28649605629918.0518436419686.9481563602
29672392640369.29243560132022.7075643989
30598396614519.528423495-16123.5284234949
31613177593924.56759910319252.4324008974
32638104656399.557486453-18295.5574864526
33615632627210.183362094-11578.1833620943
34634465635844.94318856-1379.94318856043
35638686658490.169206887-19804.1692068871
36604243609351.44167522-5108.44167521992
37706669696869.3926515689799.60734843183
38677185682517.936367155-5332.93636715494
39644328653424.837925338-9096.83792533842
40644825643443.65129161381.34870839992
41605707654813.310587734-49106.3105877343
42600136568527.52725598831608.4727440118
43612166587912.53724820324253.4627517974
44599659628693.81652344-29034.8165234402
45634210599717.26399095834492.7360090421
46618234631916.85789054-13682.8578905402
47613576638418.732481697-24842.7324816969
48627200596622.49717821130577.5028217891
49668973706790.592195716-37817.5921957165
50651479665202.416758017-13723.4167580174
51619661630621.497558669-10960.4975586688
52644260626519.77645076817740.2235492324
53579936612309.603114105-32373.6031141051
54601752582898.10823116718853.8917688327
55595376592916.1628126582459.83718734165
56588902592144.451494083-3242.45149408269
57634341612634.86448577921706.1355142212
58594305609845.231212133-15540.2312121327
59606200608653.455634225-2453.45563422504
60610926609969.721233806956.278766193544
61633685666190.334254506-32505.3342545058
62639696641697.964758653-2001.96475865284
63659451613218.02237108546232.9776289148
64593248648433.766962864-55185.7669628644
65606677575609.67895835731067.3210416434
66599434601976.550341887-2542.55034188682
67569578593736.600279411-24158.6002794114
68629873579468.99040665350404.009593347
69613438635601.165189725-22163.1651897246
70604172593097.37993135111074.6200686492
71658328610033.10446622848294.8955337722
72612633632398.045305151-19765.0453051509
73707372659904.23097286547467.7690271351
74739770684348.2517738155421.7482261892
75777535707527.09877262770007.9012273734
76685030687972.772886987-2942.77288698684
77730234688729.20077363841504.7992263619
78714154697898.77566910516255.2243308946
79630872683101.45524303-52229.4552430304
80719492705153.98560706914338.0143929311
81677023702319.766347463-25296.7663474628
82679272679501.348109869-229.348109868704
83718317715576.6283650142740.37163498602
84645672678267.418763399-32595.4187633987


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85743173.90718524691554.613566771794793.200803709
86754921.093855583699834.82349248810007.364218685
87766600.303599613708252.699609698824947.907589527
88675191.816349674613755.763414846736627.869284503
89704930.626446057640554.122121435769307.130770679
90682793.733366484615605.341378692749982.125354277
91618973.059742036549085.82394928688860.295534792
92702250.542260668629764.878605022774736.205916314
93669207.423190179594213.309124831744201.537255528
94671541.881068287594120.547746691748963.214389882
95709565.785471356629791.049106133789340.521836578
96649066.232517482567005.558190568731126.906844396
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945580ogr85u9h7cdatm8/1sng51292945556.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945580ogr85u9h7cdatm8/1sng51292945556.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945580ogr85u9h7cdatm8/2lef81292945556.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945580ogr85u9h7cdatm8/2lef81292945556.ps (open in new window)


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