Home » date » 2010 » Dec » 12 »

ws 8

*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: Sun, 12 Dec 2010 19:21:34 +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/12/t12921815647x0vcvs9ampg23l.htm/, Retrieved Sun, 12 Dec 2010 20:19:27 +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/12/t12921815647x0vcvs9ampg23l.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 «
1.3031 1.3241 1.2961 1.2865 1.2305 1.2101 1.2125 1.2350 1.2014 1.1992 1.1791 1.1832 1.2159 1.1922 1.2114 1.2614 1.2812 1.2786 1.2772 1.2815 1.2679 1.2765 1.3247 1.3191 1.3029 1.3234 1.3354 1.3651 1.3453 1.3534 1.3706 1.3638 1.4268 1.4485 1.4635 1.4587 1.4876 1.5189 1.5783 1.5633 1.5554 1.5757 1.5593 1.4660 1.4065 1.2759 1.2705 1.3954 1.2793 1.2694 1.3282 1.3230 1.4135 1.4042 1.4253 1.4322 1.4632 1.4713 1.5016 1.4318
 
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.824124154937339
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.21591.214815491452990.00108450854700815
141.19221.190147606131160.00205239386883771
151.21141.209102378482260.0022976215177386
161.26141.257775915528950.00362408447105467
171.28121.274046789402750.00715321059724694
181.27861.268384434696310.0102155653036904
191.27721.238679173807770.0385208261922347
201.28151.30482596212927-0.0233259621292741
211.26791.263799151623060.00410084837693625
221.27651.272325438147910.0041745618520892
231.32471.257370807061510.0673291929384907
241.31911.314763432949570.00433656705043250
251.30291.34844971978419-0.045549719784195
261.32341.285519668096660.0378803319033416
271.33541.334044239223570.00135576077642630
281.36511.38217485887561-0.0170748588756138
291.34531.38200792159553-0.0367079215955290
301.35341.340737142608000.0126628573920033
311.37061.318026965922110.0525730340778903
321.36381.38487716203193-0.0210771620319317
331.42681.350527355480720.0762726445192803
341.44851.418545126931420.029954873068579
351.46351.435944047152270.0275559528477276
361.45871.449479703850630.0092202961493677
371.48761.478416996947780.00918300305221598
381.51891.475266835059390.0436331649406088
391.57831.522108665039140.0561913349608576
401.56331.6121891051201-0.0488891051200999
411.55541.58235029754178-0.0269502975417761
421.57571.557804139707570.0178958602924271
431.55931.546425843166010.0128741568339867
441.4661.56760594513540-0.101605945135396
451.40651.48401190275479-0.0775119027547904
461.27591.41714593694552-0.141245936945515
471.27051.29303222216783-0.0225322221678332
481.39541.262064204842540.133335795157462
491.27931.39328151971938-0.113981519719385
501.26941.29468745091825-0.0252874509182524
511.32821.286938815360310.0412611846396893
521.3231.34623384672595-0.0232338467259532
531.41351.341396663613910.0721033363860906
541.40421.40637035404089-0.00217035404088617
551.42531.377571809229690.0477281907703144
561.43221.407341677786280.0248583222137231
571.46321.43220745292920.0309925470708017
581.47131.443553348016830.0277466519831659
591.50161.479589382687730.0220106173122729
601.43181.51274361457281-0.0809436145728115


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
611.423870950232631.325412069148851.52232983131641
621.434810949351161.307224778639041.56239712006327
631.459606610428261.308403731323101.61080948953342
641.473554184727231.301954679068261.64515369038619
651.504632083559881.314815145340151.69444902177960
661.497120724749741.290687806522481.70355364297700
671.478886769864461.257079129282511.70069441044642
681.465300426076921.229116791772501.70148406038134
691.470758719412841.22102528391421.72049215491148
701.455992033294871.193407059431811.71857700715793
711.468152551902751.193316331234191.74298877257130
721.465060139860141.178495962259231.75162431746105
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/1pb9q1292181692.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/1pb9q1292181692.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/202rb1292181692.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/202rb1292181692.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/302rb1292181692.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921815647x0vcvs9ampg23l/302rb1292181692.ps (open in new window)


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