Home » date » 2009 » Dec » 16 »

*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: Wed, 16 Dec 2009 14:07:58 -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/16/t12609977148vjm05nul7be8u6.htm/, Retrieved Wed, 16 Dec 2009 22:08:38 +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/16/t12609977148vjm05nul7be8u6.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 «
519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.948539541873247
beta0.106971000311946
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13562542.60375360456519.396246395435
14561562.67893320641-1.67893320641008
15555557.13712453219-2.13712453218955
16544545.296186541336-1.29618654133628
17537537.632301941896-0.632301941895889
18543543.773941164938-0.773941164938151
19594610.624553799897-16.6245537998971
20611605.2204962327115.77950376728927
21613607.9324975430035.06750245699652
22611599.19282229550111.8071777044992
23594592.6598632433531.34013675664733
24595604.42270246888-9.42270246887938
25591605.459975445812-14.4599754458123
26589589.750678483172-0.750678483171896
27584582.4060250105411.59397498945930
28573571.6103940580131.38960594198727
29567564.4689853740502.53101462594952
30569572.567019939157-3.56701993915726
31621637.298145630074-16.2981456300740
32629632.134000993372-3.13400099337161
33628623.6641505255354.33584947446491
34612611.6498599887150.350140011284793
35595590.1440617830444.85593821695602
36597601.488049543403-4.48804954340289
37593604.226360276133-11.2263602761333
38590589.8906975471260.109302452873521
39580581.20759472446-1.20759472445945
40574565.3661137196148.63388628038649
41573563.43390958299.56609041709953
42573576.913257121299-3.91325712129913
43620639.963572355668-19.9635723556677
44626630.448972435625-4.44897243562536
45620619.4735270422430.526472957757051
46588601.87013967871-13.8701396787096
47566564.6684139128351.33158608716542
48557568.276074636277-11.2760746362766
49561559.4501707983841.54982920161638
50549554.888995403075-5.88899540307534
51532537.4170501947-5.4170501947001
52526515.27598232314110.7240176768589
53511512.601559463865-1.60155946386476
54499509.754974120898-10.7549741208981
55555551.0703317993763.92966820062384
56565560.1051941468014.89480585319893
57542555.981011405056-13.9810114050563
58527521.9516652540315.04833474596876
59510503.5156946266686.48430537333206
60514509.3323201098694.66767989013061
61517515.8075278316141.19247216838585
62508510.715216383635-2.71521638363527
63493497.137331636746-4.13733163674567
64490478.28185124599111.7181487540090
65469477.10886631827-8.10886631826992
66478467.30340490506310.6965950949365
67528529.452570270792-1.45257027079163
68534534.633319338097-0.633319338096726
69518525.705125960585-7.70512596058461
70506500.9327438988825.06725610111772
71502484.96757082773517.0324291722645
72516503.34264975588712.6573502441134


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73520.776912236449504.512843323194537.040981149703
74517.728502638577494.229076358109541.227928919045
75510.119883747051480.414482196172539.825285297931
76499.574685313847464.231949365219534.917421262476
77488.743325503956448.047011282732529.43963972518
78491.203303334836444.222961474632538.183645195041
79546.786284149215488.220833488893605.351734809537
80556.628819766496490.564551381029622.693088151964
81550.617506821196478.756947017309622.478066625084
82536.58131880358460.030384302385613.132253304776
83518.340686197876437.888717695555598.792654700197
84521.696250914254429.175056936751614.217444891757
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/1cchf1260997676.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/1cchf1260997676.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/2wso21260997676.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/2wso21260997676.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/3y1zg1260997676.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609977148vjm05nul7be8u6/3y1zg1260997676.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
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