Home » date » 2010 » Dec » 26 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 26 Dec 2010 21:05:11 +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/26/t1293397512bmtssyq3lnwh9rr.htm/, Retrieved Sun, 26 Dec 2010 22:05:15 +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/26/t1293397512bmtssyq3lnwh9rr.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
84,9 81,9 95,9 81 89,2 102,5 89,8 88,8 83,2 90,2 100,4 187,1 87,6 85,4 86,1 86,7 89,1 103,7 86,9 85,2 80,8 91,2 102,8 182,5 80,9 83,1 88,3 86,6 93 105,3 93,8 86,4 87 96,7 100,5 196,7 86,8 88,2 93,8 85 90,4 115,9 94,9 87,7 91,7 95,9 106,8 204,5 90,2 90,5 93,2 97,8 99,4 120 108,2 98,5 104,3 102,9 111,1 188,1 93,8 94,5 112,4 102,5 115,8 136,5 122,1 110,6 116,4 112,6 121,5 199,3
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.644729072186909
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1387.687.47244697004080.127553029959202
1485.485.5382562478315-0.138256247831535
1586.186.3157813753947-0.215781375394712
1686.786.7741529029184-0.0741529029184278
1789.188.94131429148880.158685708511157
18103.7103.6660758912990.0339241087009725
1986.989.278745363225-2.37874536322504
2085.286.4840624504951-1.28406245049513
2180.880.41691636099740.383083639002592
2291.287.54623562948133.65376437051872
23102.899.76688331349243.03311668650763
24182.5189.358002003619-6.85800200361865
2580.986.6391802311585-5.73918023115847
2683.180.93749787628352.16250212371654
2788.383.13862041438135.1613795856187
2886.687.1170957441602-0.51709574416023
299389.08360788550983.91639211449022
30105.3106.599044512895-1.29904451289522
3193.890.17772043273273.6222795672673
3286.491.583542678437-5.18354267843705
338783.43012817406653.56987182593353
3496.794.23447322085262.46552677914741
35100.5105.939005876964-5.43900587696407
36196.7186.19454137470210.5054586252984
3786.889.359567826622-2.55956782662197
3888.288.5734116381013-0.37341163810126
3993.890.25135822014323.54864177985682
408591.1089397508686-6.10893975086857
4190.491.0326108358374-0.632610835837426
42115.9103.42151019841812.4784898015819
4394.996.7900562672123-1.8900562672123
4487.791.3667883309254-3.66678833092544
4591.787.21637642418934.48362357581071
4695.998.4941888530737-2.59418885307366
47106.8104.0713605543212.72863944567895
48204.5199.8690194239064.63098057609446
4990.291.2018616197427-1.00186161974266
5090.592.2696540844687-1.76965408446871
5193.294.5204417166908-1.32044171669081
5297.888.71650943482879.08349056517127
5399.4101.040170174393-1.64017017439268
54120118.9410421268191.05895787318140
55108.299.19977158291359.0002284170865
5698.599.6191824008073-1.11918240080726
57104.3100.0978269232684.20217307673171
58102.9109.380095146458-6.4800951464576
59111.1115.218063119950-4.11806311994972
60188.1212.369097414048-24.2690974140483
6193.887.38625833154296.41374166845712
6294.592.97624478064441.52375521935565
63112.497.64342199756114.7565780024390
64102.5105.491389777753-2.99138977775341
65115.8106.3736299351429.4263700648576
66136.5134.9899856689531.51001433104702
67122.1115.8266771840156.27332281598508
68110.6109.9269023398040.673097660196191
69116.4113.786325679932.61367432007010
70112.6118.451713817369-5.85171381736859
71121.5126.745246385535-5.24524638553484
72199.3225.488196993613-26.1881969936130


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7399.330584029640986.2244507253583112.436717333924
7499.028731466076283.446171141228114.611291790924
75107.33167170076288.9118834927104125.751459908814
7699.698384444463680.2525330254099119.144235863517
77106.54587123362384.4244622858312128.667280181415
78124.68687614207398.1335032457983151.240249038348
79107.76471337451182.7851607369448132.744266012077
8097.224758097941472.7618566929547121.687659502928
81100.82339442582474.2155591368782127.431229714770
82100.73314189524672.8233085780659128.642975212427
83111.66835018322779.9412958734655143.395404492989
84197.989939633358-178.160681586067574.140560852784
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/1xmgy1293397497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/1xmgy1293397497.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/2xmgy1293397497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/2xmgy1293397497.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/38wg11293397497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293397512bmtssyq3lnwh9rr/38wg11293397497.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=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