Home » date » 2010 » Dec » 27 »

*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: Mon, 27 Dec 2010 06:47:49 +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/27/t1293432453cmufimf03wl7pmo.htm/, Retrieved Mon, 27 Dec 2010 07:47:36 +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/27/t1293432453cmufimf03wl7pmo.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 «
313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 301631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860 300713 287224 275902 271115 277509 279681
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.519991743636534
beta0.543769083912884
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13313218314937.831730769-1719.83173076925
14309664309777.65862079-113.658620789764
15302963302465.419674192497.580325807736
16298989298846.921807561142.078192438872
17298423298895.697481043-472.697481042531
18301631302609.303765351-978.303765351186
19329765326328.7115837893436.28841621149
20335083332202.6334442422880.36655575765
21327616332860.128156268-5244.1281562678
22309119317631.355296961-8512.35529696062
23295916300104.2582578-4188.25825779984
24291413294138.528195965-2725.52819596475
25291542285587.9643509825954.03564901819
26284678282552.539429152125.46057084994
27276475274694.5709901461780.42900985375
28272566269931.7795988432634.22040115687
29264981270045.297708218-5064.29770821839
30263290268894.261140499-5604.2611404988
31296806288784.8819745508021.11802545033
32303598294530.0477426959067.95225730474
33286994294008.802320778-7014.8023207782
34276427275293.4406908151133.55930918502
35266424266588.099845105-164.099845105084
36267153266285.232056573867.767943427025
37268381267653.649470515727.350529485324
38262522262469.00479931452.9952006864478
39255542255188.113642516353.886357483512
40253158251510.3562418181647.64375818230
41243803248553.547955925-4750.54795592546
42250741248533.2237785472207.77622145310
43280445282461.982068065-2016.98206806486
44285257284087.2284213781169.77157862228
45270976270103.206449268872.793550731905
46261076259994.9381773611081.06182263902
47255603251218.8957839964384.10421600423
48260376255641.8748470824734.12515291807
49263903261912.1113144521990.88868554833
50264291260376.8189509933914.18104900717
51263276259655.9331004683620.06689953234
52262572263628.897450846-1056.89745084598
53256167260761.16209574-4594.16209574009
54264221268773.026160229-4552.02616022911
55293860299858.269135979-5998.26913597935
56300713302516.661566683-1803.66156668309
57287224287576.887044053-352.887044053408
58275902277317.637664595-1415.63766459492
59271115268509.25661622605.74338380009
60277509271353.1113246326155.88867536822
61279681276625.4839492133055.51605078712


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
62276447.621430008268944.816224921283950.426635096
63272324.096759681262702.928599385281945.264919978
64269919.961349259257314.536413130282525.386285388
65263953.017846731247696.239408473280209.796284989
66273722.188303240253283.832817304294160.543789175
67307115.503299307282051.016405556332179.990193059
68317237.700184815287157.966041817347317.434327813
69306773.501405897271327.581194132342219.421617662
70299128.704904528257993.583171717340263.826637338
71296328.102702328249202.244374373343453.961030284
72302125.666158217248724.736528957355526.595787477
73303572.786806536243626.663475406363518.910137667
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/1uwfg1293432466.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/1uwfg1293432466.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/2uwfg1293432466.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/2uwfg1293432466.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/35nej1293432466.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293432453cmufimf03wl7pmo/35nej1293432466.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; 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