Home » date » 2010 » Nov » 30 »

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: Tue, 30 Nov 2010 13:07:26 +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/Nov/30/t12911223401zepsh7lbwrv6ii.htm/, Retrieved Tue, 30 Nov 2010 14:05:40 +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/Nov/30/t12911223401zepsh7lbwrv6ii.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 «
101.76 102.37 102.38 102.86 102.87 102.92 102.95 103.02 104.08 104.16 104.24 104.33 104.73 104.86 105.03 105.62 105.63 105.63 105.94 106.61 107.69 107.78 107.93 108.48 108.14 108.48 108.48 108.89 108.93 109.21 109.47 109.80 111.73 111.85 112.12 112.15 112.17 112.67 112.80 113.44 113.53 114.53 114.51 115.05 116.67 117.07 116.92 117.00 117.02 117.35 117.36 117.82 117.88 118.24 118.50 118.80 119.76 120.09
 
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.800423354394571
beta0.0331010306156857
gamma0.155500317120044


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13104.73103.3681490384621.36185096153842
14104.86104.6080718819910.251928118009161
15105.03104.9804280213140.0495719786860462
16105.62105.6108769823600.00912301763962375
17105.63105.6258580298650.0041419701350236
18105.63105.6048785381120.0251214618882756
19105.94106.117190443916-0.177190443916487
20106.61106.1162058766770.49379412332317
21107.69107.6687093561100.0212906438897846
22107.78107.852324107732-0.0723241077323422
23107.93107.954507876992-0.0245078769920042
24108.48108.1063988751590.373601124840917
25108.14108.929524782175-0.789524782174595
26108.48108.4173629503480.0626370496522384
27108.48108.631283210951-0.151283210950908
28108.89109.093743139711-0.203743139710568
29108.93108.9265821609620.00341783903807880
30109.21108.8940505548710.315949445129021
31109.47109.628951231003-0.158951231002746
32109.8109.6599543462360.14004565376365
33111.73110.9018380982000.828161901800428
34111.85111.7369567015820.113043298417523
35112.12112.0024786060700.117521393930190
36112.15112.297652993425-0.147652993425410
37112.17112.670892505072-0.500892505071604
38112.67112.4272864351390.242713564860921
39112.8112.7945579500050.00544204999491171
40113.44113.4008414515000.0391585485001116
41113.53113.4609744467300.0690255532704072
42114.53113.5188349394701.01116506052988
43114.51114.842062851837-0.332062851836938
44115.05114.7857945560260.26420544397412
45116.67116.1937154909330.476284509067455
46117.07116.7609687484860.309031251513616
47116.92117.224674324740-0.304674324739665
48117117.203669270894-0.203669270894281
49117.02117.549610742311-0.529610742310979
50117.35117.3338354959330.0161645040668503
51117.36117.534146260088-0.174146260088264
52117.82118.014709234096-0.194709234095882
53117.88117.899359389291-0.0193593892907273
54118.24117.9241548362920.315845163708474
55118.5118.639165780956-0.139165780956333
56118.8118.7509316734670.0490683265329324
57119.76119.98266366231-0.222663662310097
58120.09119.9561835013870.133816498612504


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
59120.226866527610119.495761283632120.957971771589
60120.427206141141119.478516106375121.375896175907
61120.905791702873119.770314999450122.041268406296
62121.124636722078119.819589214388122.429684229769
63121.299444358661119.835788601420122.763100115901
64121.916715354507120.301947472475123.531483236539
65121.965771409587120.205242840537123.726299978637
66122.020092537433120.117726852765123.922458222101
67122.463431612958120.422150443244124.504712782672
68122.691376813736120.513370357589124.869383269883
69123.873046383359121.559954176059126.186138590659
70124.039399952275121.59243661849126.486363286060
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/1dyvl1291122442.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/1dyvl1291122442.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/2dyvl1291122442.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/2dyvl1291122442.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/3o7u61291122442.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911223401zepsh7lbwrv6ii/3o7u61291122442.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