Home » date » 2010 » Dec » 24 »

*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, 24 Dec 2010 12:52:36 +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/24/t1293195708q77qklkg9p4qd1f.htm/, Retrieved Fri, 24 Dec 2010 14:01:52 +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/24/t1293195708q77qklkg9p4qd1f.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 «
6.4 7.7 9.2 8.6 7.4 8.6 6.2 6 6.6 5.1 4.7 5 3.6 1.9 -0.1 -5.7 -5.6 -6.4 -7.7 -8 -11.9 -15.4 -15.5 -13.4 -10.9 -10.8 -7.3 -6.5 -5.1 -5.3 -6.8 -8.4 -8.4 -9.7 -8.8 -9.6 -11.5 -11 -14.9 -16.2 -14.4 -17.3 -15.7 -12.6 -9.4 -8.1 -5.4 -4.6 -4.9 -4 -3.1 -1.3 0 -0.4 3 0.4 1.2 0.6 -1.3 -3.2 -1.8 -3.6 -4.2 -6.9 -8 -7.5 -8.2 -7.6 -3.7 -1.7 -0.7 0.2 0.6 2.2 3.3 5.3 5.5 6.3 7.7 6.5 5.5 6.9 5.7 6.9 6.1 4.8 3.7 5.8 6.8 8.5 7.2 5 4.7 2.3 2.4 0.1 1.9 1.7 2 -1.9 0.5 -1.3 -3.3 -2.8 -8 -13.9 -21.9 -28.8 -27.6 -31.4 -31.8 -29.4 -27.6 -23.6 -22.8 -18.2 -17.8 -14.2 -8.8 -7.9 -7 -7 -3.6 -2.4 -4.9 -7.7 -6.5 -5.1 -3.4 -2.8 0.8
 
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.949476818409096
beta0.434986722767703
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
39.290.199999999999999
48.610.5724973255986-1.97249732559855
57.49.26759805763575-1.86759805763575
68.67.290961894708731.30903810529127
76.28.87111370760506-2.67111370760506
865.569007476653070.430992523346931
96.65.390283340231911.20971665976809
105.16.4505645665793-1.35056456657931
114.74.522121705428460.177878294571544
1254.118365389773270.881634610226726
133.64.7469331241338-1.14693312413380
141.92.97572818894263-1.07572818894263
15-0.10.82784439459281-0.92784439459281
16-5.7-1.56283600193754-4.13716399806246
17-5.6-8.709380279884423.10938027988442
18-6.4-7.691294195027351.29129419502735
19-7.7-7.866121532009470.166121532009465
20-8-9.040664406931711.04066440693171
21-11.9-8.95504448686306-2.94495551313694
22-15.4-13.8699738036022-1.53002619639780
23-15.5-18.07337636244242.5733763624424
24-13.4-17.31786363362383.91786363362379
25-10.9-13.66767529487462.76767529487457
26-10.8-9.9664870740466-0.833512925953393
27-7.3-10.02879260245622.72879260245624
28-6.5-5.58175349841656-0.918246501583441
29-5.1-4.97673829226389-0.123261707736109
30-5.3-3.66781174780649-1.63218825219351
31-6.8-4.46568573723669-2.33431426276331
32-8.4-6.89430678647731-1.50569321352269
33-8.4-9.158037425626580.758037425626584
34-9.7-8.95933140696588-0.740668593034119
35-8.8-10.48951540520731.68951540520733
36-9.6-9.01450959685643-0.58549040314357
37-11.5-9.94138234519615-1.55861765480385
38-11-12.43594124117381.43594124117376
39-14.9-11.4941780654694-3.40582193453063
40-16.2-16.55619465397950.356194653979514
41-14.4-17.8991518150143.499151815014
42-17.3-14.8127599855701-2.48724001442994
43-15.7-18.43756294884542.73756294884538
44-12.6-15.97089626550973.37089626550967
45-9.4-11.51068105493062.11068105493059
46-8.1-7.37527899241413-0.724721007585874
47-5.4-6.231342344470720.831342344470715
48-4.6-3.26660707238492-1.33339292761508
49-4.9-2.90794211827162-1.99205788172838
50-4-3.99740371559970-0.00259628440030468
51-3.1-3.198989936075430.098989936075426
52-1.3-2.263238580490440.963238580490443
530-0.1090761889799060.109076188979906
54-0.41.27912834867521-1.67912834867521
5530.2759776516999322.72402234830007
560.44.57856442083763-4.17856442083763
571.20.6015169698384640.598483030161536
580.61.40734469632935-0.807344696329346
59-1.30.544930306540998-1.84493030654100
60-3.2-2.06462188185782-1.13537811814218
61-1.8-4.46939301629992.66939301629990
62-3.6-2.15913665787112-1.44086334212888
63-4.2-4.346564124057810.146564124057806
64-6.9-4.96623358922543-1.93376641077457
65-8-8.359793168938310.35979316893831
66-7.5-9.427072987880981.92707298788098
67-8.2-8.210356902998610.0103569029986090
68-7.6-8.809240805648561.20924080564856
69-3.7-7.770383919886834.07038391988683
70-1.7-2.333829485320130.633829485320131
71-0.70.101573973465097-0.801573973465097
720.20.843037208921463-0.643037208921463
730.61.46944675196572-0.869446751965718
742.21.521795644950350.678204355049652
753.33.32370843856912-0.0237084385691246
765.34.449379488403140.850620511596856
775.56.75652022360631-1.25652022360631
786.36.54402449931889-0.244024499318891
797.77.192085481983250.507914518016746
806.58.763868808836-2.26386880883600
815.56.76890809552944-1.26890809552944
826.95.194568023821441.70543197617856
835.77.14865503600485-1.44865503600485
846.95.509700806302111.39029919369789
856.17.14047501148008-1.04047501148008
864.86.03355907168681-1.23355907168681
873.74.23384229541535-0.533842295415354
885.82.878008272888382.92199172711162
896.86.010219789839680.789780210160322
908.57.44413287371211.05586712628790
917.29.56677279690345-2.36677279690345
9257.4621950730862-2.46219507308620
934.74.25010539178040.4498946082196
942.33.98878824247629-1.68878824247629
952.40.9993551940550631.40064480594494
960.11.52174725173442-1.42174725173442
971.9-1.222852083529673.12285208352967
981.71.637308843373460.0626911566265382
9921.617809972241680.382190027758315
100-1.92.05951610334665-3.95951610334665
1010.5-3.25644608126393.7564460812639
102-1.30.305168040868629-1.60516804086863
103-3.3-1.88689630212747-1.41310369787253
104-2.8-4.480225692986121.68022569298612
105-8-3.44256084200316-4.55743915799684
106-13.9-10.2096812468672-3.69031875313278
107-21.9-17.6776287740778-4.22237122592221
108-28.8-27.3946285263889-1.40537147361111
109-27.6-35.01738452112697.41738452112689
110-31.4-31.1996856557017-0.200314344298256
111-31.8-34.69754706181452.89754706181455
112-29.4-34.05734551591934.65734551591927
113-27.6-29.82272674808422.22272674808417
114-23.6-26.98171411098943.38171411098943
115-22.8-21.6435887389409-1.15641126105912
116-18.2-21.09191740141702.89191740141703
117-17.8-15.50206159028-2.29793840972
118-14.2-15.78892466773681.58892466773679
119-8.8-11.72905988235332.92905988235334
120-7.9-5.18703731288784-2.71296268711216
121-7-5.12246458488257-1.87753541511743
122-7-5.04011357293581-1.95988642706419
123-3.6-5.845405257852452.24540525785245
124-2.4-1.73049557530838-0.669504424691619
125-4.9-0.659736959053438-4.24026304094656
126-7.7-4.73060110419315-2.96939889580685
127-6.5-8.821200076710582.32120007671058
128-5.1-6.929819567635881.82981956763588
129-3.4-4.749260029743881.34926002974388
130-2.8-2.46772300498234-0.332276995017664
1310.8-1.920000062969762.72000006296976


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1322.64917589703852-1.582523814010076.88087560808711
1334.63577485118573-2.5161354516431211.7876851540146
1346.62237380533295-3.7506930557582216.9954406664241
1358.60897275948016-5.2967279613253222.5146734802856
13610.5955717136274-7.1403510137861328.3314944410409
13712.5821706677746-9.2648654742386534.4292068097878
13814.5687696219218-11.654650384759440.792189628603
13916.555368576069-14.295829223678647.4065663758166
14018.5419675302162-17.176208226738554.260143287171
14120.5285664843634-20.285057745061961.3421907137888
14222.5151654385107-23.612885467683868.6432163447051
14324.5017643926579-27.151238396271676.1547671815873
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/1z0t91293195153.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/1z0t91293195153.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/2z0t91293195153.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/2z0t91293195153.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/3rrsc1293195153.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293195708q77qklkg9p4qd1f/3rrsc1293195153.ps (open in new window)


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