Home » date » 2009 » Dec » 04 »

*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, 04 Dec 2009 15:47:36 -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/04/t1259966891muzilewodvuxkzh.htm/, Retrieved Fri, 04 Dec 2009 23:48:15 +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/04/t1259966891muzilewodvuxkzh.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 «
102.80 118.72 119.01 118.61 120.43 111.83 116.79 131.71 120.57 117.83 130.80 107.46 112.09 129.47 119.72 134.81 135.80 129.27 126.94 153.45 121.86 133.47 135.34 117.10 120.65 132.49 137.60 138.69 125.53 133.09 129.08 145.94 129.07 139.69 142.09 137.29 127.03 137.25 156.87 150.89 139.14 158.30 149.00 158.36 168.06 153.38 173.86 162.47 145.17 168.89 166.64 140.07 128.84 123.40 120.30 129.66 118.12 113.91 131.09 119.14 115.33
 
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.575421884949086
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13112.09106.2635742886255.82642571137518
14129.47126.3115072284013.15849277159927
15119.72118.5344477335251.18555226647460
16134.81134.5660328539220.243967146077978
17135.8135.872734781201-0.0727347812006087
18129.27129.717493666037-0.44749366603736
19126.94128.101795146917-1.16179514691723
20153.45143.8191410941669.63085890583429
21121.86137.196995719018-15.3369957190175
22133.47125.7059344835087.76406551649166
23135.34144.023195302318-8.68319530231761
24117.1113.8296491394043.27035086059595
25120.65123.208163961331-2.55816396133098
26132.49138.527003687055-6.03700368705495
27137.6124.12685307336813.4731469266324
28138.69148.239039162775-9.5490391627750
29125.53143.774063766198-18.2440637661984
30133.09127.1385120323345.95148796766628
31129.08128.8725193870920.207480612907858
32145.94150.126396894121-4.18639689412092
33129.07125.4081580306873.66184196931312
34139.69134.8238405322914.86615946770911
35142.09144.53473800437-2.44473800437009
36137.29121.77319218073215.5168078192678
37127.03136.185668532610-9.15566853261012
38137.25147.375204229572-10.1252042295716
39156.87138.29796960983718.5720303901634
40150.89155.859448196624-4.96944819662397
41139.14149.286457707526-10.1464577075265
42158.3147.95090744566310.3490925543371
43149148.9758027357860.0241972642144219
44158.36171.023175765537-12.6631757655367
45168.06142.29760464479525.7623953552047
46153.38166.367278926474-12.9872789264736
47173.86163.06885394796410.7911460520356
48162.47152.20770333530810.2622966646924
49145.17152.048495173265-6.87849517326507
50168.89166.4253272789752.46467272102461
51166.64177.842073089522-11.2020730895223
52140.07167.848908560512-27.7789085605115
53128.84145.731871078917-16.8918710789173
54123.4148.777573214764-25.3775732147641
55120.3126.431201949995-6.13120194999533
56129.66136.628126945881-6.96812694588127
57118.12127.632395941283-9.51239594128324
58113.91117.002127082915-3.09212708291517
59131.09126.0841474243195.00585257568059
60119.14116.2627875448292.87721245517065
61115.33108.4184680560106.91153194398971


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
62129.882148583530108.863664583781150.900632583279
63133.207422119426108.849924119784157.564920119069
64123.94269457681697.5671080632086150.318281090423
65122.25934655754293.5314778239184150.987215291166
66129.89113925797797.784462101679161.997816414274
67130.21204348246296.0097970670925164.414289897832
68144.498455771061105.735156025953183.261755516169
69137.42083820339998.4649286527413176.376747754057
70134.40944822277294.4857032884473174.333193157097
71151.029870371034105.669847774969196.389892967098
72135.18740929029792.3698157698425178.005002810751
73126.11264585154685.3323415240544166.892950179037
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/1k7wu1259966854.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/1k7wu1259966854.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/2isvh1259966854.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/2isvh1259966854.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/3y8ca1259966854.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259966891muzilewodvuxkzh/3y8ca1259966854.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
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