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 15:34:15 +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/t1292945534itwae5d4j2ramn9.htm/, Retrieved Tue, 21 Dec 2010 16:32:14 +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/t1292945534itwae5d4j2ramn9.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 «
3010 2910 3840 3580 3140 3550 3250 2820 2260 2060 2120 2210 2190 2180 2350 2440 2370 2440 2610 3040 3190 3120 3170 3600 3420 3650 4180 2960 2710 2950 3030 3770 4740 4450 5550 5580 5890 7480 10450 6360 6710 6200 4490 3480 2520 1920 2010 1950 2240 2370 2840 2700 2980 3290 3300 3000 2330 2190 1970 2170 2830 3190 3550 3240 3450 3570 3230 3260 2700
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.917611569721477
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
338402910930
435803763.37875984097-183.378759840974
531403595.10828816972-455.10828816972
635503177.49565746905372.504342530951
732503519.30995194694-269.309951946942
828203272.18802419929-452.188024199293
922602857.25506150453-597.255061504527
1020602309.20690699326-249.206906993260
1121202080.5317658817439.4682341182593
1222102116.7482741451393.2517258548687
1321902202.31713668605-12.3171366860543
1421802191.01478955709-11.0147895570899
1523502180.90749122146169.092508778543
1624402336.06873362988103.931266370122
1723702431.43726610691-61.4372661069065
1824402375.0617199151564.938280084848
1926102434.64983703882175.350162961178
2030402595.55317532455444.446824675455
2131903003.38272377272186.617276227284
2231203174.62489554878-54.6248955487804
2331703124.5004593983945.4995406016078
2436003166.25136427144433.74863572856
2534203564.26413076687-144.264130766873
2636503431.88569527938218.114304720622
2741803632.02990481278547.970095187223
2829604134.85360401795-1174.85360401795
2927103056.79434424210-346.794344242104
3029502738.57184165158211.428158348423
3130302932.5807659169997.4192340830054
3237703021.97378222497748.026217775035
3347403708.371294110331031.62870588967
3444504655.00573029149-205.005730291487
3555504466.890100316821083.10989968318
3655805460.76427554597119.235724454025
3758905570.17635582911319.823644170890
3874805863.65023199081616.34976800920
39104507346.831479832673103.16852016733
40636010194.3348167337-3834.33481673369
4167106675.9048267129834.0951732870244
4262006707.19095219281-507.190952192808
4344906241.78666640264-1751.78666640264
4434804634.32695362776-1154.32695362776
4525203575.10318573758-1055.10318573758
4619202606.92829525479-686.928295254788
4720101976.5949439599433.4050560400565
4819502007.24780986949-57.2478098694937
4922401954.71655719203285.283442807969
5023702216.4959449626153.504055037401
5128402357.35304186408482.646958135919
5227002800.23547474048-100.235474740478
5329802708.25824342209271.741756577910
5432902957.61162323442332.388376765583
5533003262.6150433954637.3849566045424
5630003296.91991210932-296.919912109321
5723303024.46276547712-694.462765477124
5821902387.21569713454-197.215697134542
5919702206.2482917132-236.248291713199
6021701989.46412591023180.535874089767
6128302155.12593272478674.874067275217
6231902774.39818496151415.601815038487
6335503155.75921883807394.240781161926
6432403517.51912088829-277.51912088829
6534503262.86436474226187.135635257738
6635703434.58218876194135.417811238059
6732303558.84313910034-328.843139100343
6832603257.092870038342.90712996166076
6927003259.76048612584-559.760486125843


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
702746.117787783851162.390281155704329.84529441201
712746.11778778385596.6716409890214895.56393457868
722746.11778778385151.4993841083425340.73619145936
732746.11778778385-227.7636125769895719.99918814469
742746.11778778385-563.8514728185286056.08704838623
752746.11778778385-868.826531130786361.06210669848
762746.11778778385-1150.001865354856642.23744092256
772746.11778778385-1412.208110254236904.44368582193
782746.11778778385-1658.833993679227151.06956924692
792746.11778778385-1892.365382362967384.60095793066
802746.11778778385-2114.689968387517606.92554395522
812746.11778778385-2327.281266615107819.5168421828
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945534itwae5d4j2ramn9/1vg1q1292945651.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945534itwae5d4j2ramn9/1vg1q1292945651.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945534itwae5d4j2ramn9/3oqib1292945651.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292945534itwae5d4j2ramn9/3oqib1292945651.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=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