Home » date » 2009 » Dec » 10 »

verbetering

*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: Thu, 10 Dec 2009 10:13:00 -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/10/t1260465218205sr33bl7h3etv.htm/, Retrieved Thu, 10 Dec 2009 18:13:42 +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/10/t1260465218205sr33bl7h3etv.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.86 102.55 102.28 102.26 102.57 103.08 102.76 102.51 102.87 103.14 103.12 103.16 102.48 102.57 102.88 102.63 102.38 101.69 101.96 102.19 101.87 101.6 101.63 101.22 101.21 101.49 101.64 101.66 101.77 101.82 101.78 101.28 101.29 101.37 101.12 101.51 102.24 102.94 103.09 103.46 103.64 104.39 104.15 105.21 105.8 105.91 105.39 105.46 104.72 103.14 102.63 102.32 101.93 100.62 100.6 99.63 98.9 98.32 99.22 98.81
 
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.819828902860289
beta0.380658228872049
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13102.48102.641041747874-0.161041747874194
14102.57102.5455929909790.0244070090205071
15102.88102.8379400825730.0420599174272809
16102.63102.648872734969-0.0188727349688236
17102.38102.424351424615-0.044351424614689
18101.69101.741505230615-0.0515052306153052
19101.96102.078938340214-0.118938340213560
20102.19101.5960918941910.593908105808836
21101.87102.449108102370-0.579108102369659
22101.6102.054102773546-0.454102773545628
23101.63101.3653585162290.264641483771214
24101.22101.479890564252-0.259890564251990
25101.21100.3739034275110.836096572488913
26101.49101.2016617854100.288338214589800
27101.64101.867100895439-0.227100895439463
28101.66101.5216853538810.138314646119412
29101.77101.545072346280.224927653719917
30101.82101.2905035057360.529496494264279
31101.78102.480721223983-0.700721223982526
32101.28101.855579183130-0.575579183130472
33101.29101.378370479508-0.0883704795080575
34101.37101.400813155179-0.0308131551786772
35101.12101.314660205805-0.194660205805420
36101.51100.9410140726380.568985927361908
37102.24100.9509245632531.28907543674656
38102.94102.4336907191310.506309280869218
39103.09103.639610313187-0.549610313187472
40103.46103.4443848039870.0156151960129591
41103.64103.692209483583-0.0522094835825868
42104.39103.4796996996200.910300300379731
43104.15105.109346253215-0.959346253215443
44105.21104.5544022387130.655597761286984
45105.8105.829732951958-0.0297329519584082
46105.91106.589733235301-0.679733235301129
47105.39106.410749210747-1.02074921074669
48105.46105.711338035133-0.251338035132790
49104.72105.116760392585-0.396760392584511
50103.14104.499455246477-1.35945524647687
51102.63102.827331842622-0.197331842621836
52102.32101.9742124481070.345787551893338
53101.93101.5376606013590.392339398641354
54100.62101.064479808940-0.444479808939647
55100.6100.0223256679240.577674332076143
5699.63100.262918510549-0.632918510548976
5798.999.20254370552-0.302543705519966
5898.3298.3732347798924-0.0532347798924491
5999.2297.60113985442481.61886014557516
6098.8198.9661073748992-0.156107374899179


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6198.253304037112497.13128885667499.375319217551
6297.734543561324496.042166674265799.4269204483831
6397.728990286288295.3819957589803100.075984813596
6497.55018273387094.481777828534100.618587639206
6597.155532339927293.3103004670476101.000764212807
6696.420288593716291.7583609879724101.08221619946
6796.24873991361990.6930365262981101.804443300940
6895.944871845842489.4516267574393102.438116934245
6995.802065503317488.3115404178762103.292590588759
7095.69972883430787.1598850147617104.239572653852
7195.718279638863886.069524657624105.367034620104
7295.389133649925183.9709845580115106.807282741839
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/1g4vg1260465178.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/1g4vg1260465178.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/2fv931260465178.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/2fv931260465178.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/32k571260465178.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260465218205sr33bl7h3etv/32k571260465178.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