Home » date » 2009 » Dec » 11 »

*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, 11 Dec 2009 06:06:10 -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/11/t1260536808owd5g696ds068d3.htm/, Retrieved Fri, 11 Dec 2009 14:06: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/2009/Dec/11/t1260536808owd5g696ds068d3.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 «
15859.4 15258.9 15498.6 15106.5 15023.6 12083.0 15761.3 16942.6 15070.3 13659.6 14768.9 14725.1 15998.1 15370.6 14956.9 15469.7 15101.8 11703.7 16283.6 16726.5 14968.9 14861.0 14583.3 15305.8 17903.9 16379.4 15420.3 17870.5 15912.8 13866.5 17823.2 17872.0 17422.0 16704.5 15991.2 16583.6 19123.5 17838.7 17209.4 18586.5 16258.1 15141.6 19202.1 17746.5 19090.1 18040.3 17515.5 17751.8 21072.4 17170.0 19439.5 19795.4 17574.9 16165.4 19464.6 19932.1 19961.2 17343.4 18924.2 18574.1 21350.6
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.174213016968126
beta0.071262125638547
gamma0.820829629452682


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1315998.116019.0046906877-20.9046906877138
1415370.615381.7795139018-11.1795139018432
1514956.914986.4485311220-29.5485311219745
1615469.715454.880192030114.8198079698795
1715101.815054.661604282047.1383957180406
1811703.711666.812732805336.8872671946519
1916283.615835.0451371595448.554862840509
2016726.517109.3856576046-382.885657604569
2114968.915186.9490245128-218.049024512839
221486113743.87448892771117.12551107228
2314583.315073.5723660567-490.272366056741
2415305.814971.7315619558334.068438044204
2517903.916329.66952142831574.23047857171
2616379.415984.5847732169394.815226783079
2715420.315664.8373794033-244.537379403268
2817870.516181.86290131581688.63709868421
2915912.816123.2749764559-210.474976455887
3013866.512498.49739330481368.00260669516
3117823.217645.9248718308177.275128169211
321787218439.6057917032-567.605791703198
331742216499.272029197922.727970803007
3416704.516169.2672153693535.232784630674
3515991.216377.7493962974-386.549396297412
3616583.616984.088031371-400.488031370984
3719123.519337.7247223212-214.224722321214
3817838.717790.818726245147.8812737548942
3917209.416936.8887144717272.511285528333
4018586.519062.4184921581-475.918492158104
4116258.117227.6074888604-969.50748886043
4215141.614351.0528873066790.547112693432
4319202.118833.0722295353369.027770464727
4417746.519166.0280206825-1419.52802068245
4519090.118024.59123230281065.50876769723
4618040.317403.617036241636.682963759016
4717515.516966.9836008095548.516399190496
4817751.817768.9934852483-17.1934852483391
4921072.420494.3883128606578.011687139438
501717019178.077194932-2008.07719493199
5119439.518069.52930656121369.97069343875
5219795.419986.0304630315-190.630463031473
5317574.917721.4772259718-146.577225971789
5416165.416071.597318074593.8026819255138
5519464.620440.5032438393-975.903243839315
5619932.119250.3052946916681.794705308432
5719961.220231.1940490922-269.994049092227
5817343.419011.8849180024-1668.48491800241
5918924.218059.6935282454864.50647175462
6018574.118524.925457974849.174542025241
6121350.621775.1998836831-424.599883683055


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6218365.777060672617083.289034888319648.2650864569
6319953.251848956118635.221157815221271.2825400971
6420568.436664582719212.392697840221924.4806313251
6518261.721772164516891.159643790419632.2839005387
6616726.293353707815337.098714178318115.4879932373
6720453.062221995318957.254601274021948.8698427166
6820545.441738477918999.761482229722091.1219947261
6920748.699595057619146.836530576822350.5626595384
7018515.240212442516928.676280380420101.8041445047
7119624.704322499517947.959641101321301.4490038978
7219368.928771244617645.969386265221091.888156224
7322405.647381767520975.850474222923835.4442893122
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/1tqkm1260536768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/1tqkm1260536768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/27x6p1260536768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/27x6p1260536768.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/3e2eb1260536768.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260536808owd5g696ds068d3/3e2eb1260536768.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=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