Home » date » 2010 » Dec » 21 »

*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 00:16: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/t12928904901rmaqyx4td16uy3.htm/, Retrieved Tue, 21 Dec 2010 01:14:51 +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/t12928904901rmaqyx4td16uy3.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 «
101.76 102.37 102.38 102.86 102.87 102.92 102.95 103.02 104.08 104.16 104.24 104.33 104.73 104.86 105.03 105.62 105.63 105.63 105.94 106.61 107.69 107.78 107.93 108.48 108.14 108.48 108.48 108.89 108.93 109.21 109.47 109.80 111.73 111.85 112.12 112.15 112.17 112.67 112.80 113.44 113.53 114.53 114.51 115.05 116.67 117.07 116.92 117.00 117.02 117.35 117.36 117.82 117.88 118.24 118.50 118.80 119.76 120.09
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.800425855140645
beta0.0331010367938548
gamma0.155499080750997


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13104.73103.3681490384621.36185096153842
14104.86104.6080754070990.251924592900835
15105.03104.980429403010.049570596990165
16105.62105.6108773979860.00912260201413062
17105.63105.6258581413240.0041418586764479
18105.63105.604878573820.0251214261796378
19105.94106.117190518229-0.177190518229409
20106.61106.1162054352510.493794564749024
21107.69107.6687105447310.0212894552693683
22107.78107.852324410432-0.0723244104318752
23107.93107.954507754413-0.0245077544134489
24108.48108.106398788380.373601211619913
25108.14108.929524867571-0.789524867570535
26108.48108.4173615515990.0626384484012732
27108.48108.631283288652-0.151283288652067
28108.89109.093742822335-0.203742822335499
29108.93108.9265815810020.00341841899826534
30109.21108.8940504326390.315949567361073
31109.47109.628952151016-0.158952151016308
32109.8109.6599537104540.14004628954639
33111.73110.9018385889910.828161411008736
34111.85111.7369590349110.113040965089311
35112.12112.0024793626950.117520637305205
36112.15112.297653199882-0.14765319988237
37112.17112.670892042672-0.500892042671921
38112.67112.4272851563560.242714843643924
39112.8112.7945586078270.00544139217296902
40113.44113.4008417015170.0391582984831871
41113.53113.4609744842710.0690255157290238
42114.53113.5188349014391.01116509856136
43114.51114.842065865226-0.332065865225957
44115.05114.7857937612090.264206238791175
45116.67116.1937158010990.476284198900672
46117.07116.7609705500480.309029449952277
47116.92117.224675529598-0.304675529598185
48117117.203668665873-0.20366866587301
49117.02117.549610208994-0.52961020899393
50117.35117.3338336690630.016166330937466
51117.36117.53414631254-0.174146312539676
52117.82118.014708885544-0.194708885544003
53117.88117.89935868561-0.0193586856101575
54118.24117.9241538201670.31584617983269
55118.5118.639167571678-0.139167571678371
56118.8118.7509308578010.0490691421989595
57119.76119.982663244492-0.222663244491997
58120.09119.9561834110410.133816588958965


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
59120.226867301325119.495761998643120.957972604006
60120.427206857907119.478515540984121.375898174829
61120.905792757828119.770313880513122.041271635144
62121.124637143078119.819586722415122.429687563741
63121.299445237922119.835785915359122.763104560485
64121.91671637142120.301944326895123.531488415945
65121.965772222373120.205238931287123.726305513459
66122.020092346141120.117721406749123.922463285533
67122.463432799368120.422145862008124.504719736729
68122.691377167944120.513364446082124.869389889805
69123.873046525867121.559947566095126.186145485638
70124.039400422033121.592429857695126.486370986372
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928904901rmaqyx4td16uy3/173hn1292890597.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928904901rmaqyx4td16uy3/173hn1292890597.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t12928904901rmaqyx4td16uy3/3hdzq1292890597.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928904901rmaqyx4td16uy3/3hdzq1292890597.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ; par4 = no ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ; par4 = no ;
 
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