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 05:40:04 -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/t1259930479zwsv42b9mo4x423.htm/, Retrieved Fri, 04 Dec 2009 13:41: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/2009/Dec/04/t1259930479zwsv42b9mo4x423.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 «
111,5 108,1 124,5 106,3 111,1 121,3 116,5 117,4 123,6 98,4 107,2 118,9 111,9 115,2 124,4 104,6 117 126,2 117,5 122,2 124,1 105,8 107,5 125,6 112,1 120,1 130,6 109,8 122,1 129,5 132,1 133,3 128,4 114,7 114,1 136,9 123,4 134 137 127,8 140,1 140,4 157,8 151,8 141,1 138,8 141,1 139,5 150,7 144,4 146 143,6 143,1 156,4 164,8 145,1 153,4 133,2 131,4 145,9
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.242037573055879
beta0.0101587425110497
gamma0.717611294485236


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13111.9110.4383289401931.46167105980669
14115.2114.0736920872861.12630791271364
15124.4123.5180769240080.881923075992404
16104.6103.9756313341100.624368665890216
17117116.4109366574660.589063342533578
18126.2125.6869284252760.513071574723739
19117.5119.273110540321-1.77311054032124
20122.2119.6998967837512.50010321624943
21124.1126.621122340376-2.52112234037564
22105.8100.6079013175855.19209868241461
23107.5111.060870035117-3.56087003511709
24125.6122.0209394285393.57906057146074
25112.1116.500522579400-4.40052257939954
26120.1118.6392296062411.46077039375942
27130.6128.3477528184042.25224718159564
28109.8108.2484513164251.55154868357509
29122.1121.3808091255680.719190874432385
30129.5131.015464401879-1.51546440187894
31132.1122.5828911104969.51710888950375
32133.3128.2714046220365.02859537796377
33128.4133.325090785582-4.92509078558169
34114.7109.6331113149295.0668886850713
35114.1115.559455822279-1.45945582227927
36136.9131.9312967402664.96870325973364
37123.4121.69648926011.70351073990007
38134129.0512565359174.94874346408287
39137140.933981246858-3.93398124685757
40127.8117.39112936267810.4088706373225
41140.1133.4414536262646.65854637373647
42140.4144.250866206381-3.85086620638086
43157.8140.99736559096416.8026344090358
44151.8146.1627007205025.63729927949754
45141.1145.813404297501-4.71340429750072
46138.8125.63168079548913.1683192045113
47141.1130.19869224918610.9013077508142
48139.5156.406201564472-16.9062015644722
49150.7137.56369708152413.1363029184757
50144.4150.771557707329-6.37155770732926
51146155.860073575039-9.86007357503885
52143.6136.9334465216256.6665534783752
53143.1151.230741679164-8.13074167916437
54156.4153.0208120309093.37918796909065
55164.8163.3091398760171.49086012398320
56145.1158.368963278440-13.2689632784403
57153.4147.5469119757485.85308802425214
58133.2139.009553343902-5.80955334390234
59131.4137.593586961383-6.19358696138255
60145.9144.0608840925911.83911590740883


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
61145.906121532797135.633822365746156.178420699848
62145.230696020751134.479774555819155.981617485683
63149.807106366999138.529242890176161.084969843821
64142.089414786972130.494727458478153.684102115467
65146.612770546764134.465015576610158.760525516919
66156.704697380373143.826304605133169.583090155613
67165.154461975807151.561106373660178.747817577954
68151.574886863623138.091958023462165.057815703785
69154.379437870814140.368882101399168.389993640228
70137.779560322295124.107217052926151.451903591664
71137.497419182399123.431445489261151.563392875537
72150.263722440696121.371130616217179.156314265175
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259930479zwsv42b9mo4x423/1jksy1259930400.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259930479zwsv42b9mo4x423/1jksy1259930400.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259930479zwsv42b9mo4x423/31tyj1259930400.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259930479zwsv42b9mo4x423/31tyj1259930400.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