Home » date » 2008 » May » 24 »

Nietje van Santfoort-Exponential Smoothing-verkoop jogging

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 24 May 2008 04:27:10 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/24/t1211624891yheg3vwzy440xog.htm/, Retrieved Sat, 24 May 2008 12:28:14 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
71,42 71,47 71,64 71,55 71,62 71,65 71,65 71,65 71,6 71,7 71,73 71,83 71,83 71,87 71,91 71,99 72,1 72,12 72,12 72,12 72,25 72,59 72,72 72,76 72,76 72,91 73 73,16 73,16 73,11 73,11 73,33 73,51 73,66 73,65 73,65 73,65 73,65 73,71 73,73 73,85 73,77 73,77 73,78 73,88 74,3 74,53 74,71 74,71 74,78 74,9 74,65 74,65 74,53 74,53 74,53 74,65 74,85 74,96 74,96 74,96 75,19 74,98 75,54 75,61 75,59 75,58 75,44 75,37 75,22 75,33 75,33
 
Text written by user:
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.986964904484443
beta0.00068148021869358
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
371.6471.520.120000000000005
471.5571.6885165001852-0.138516500185204
571.6271.60179312166680.0182068783331886
671.6571.6697624633511-0.0197624633511282
771.6571.7002441051719-0.0502441051719131
871.6571.7006076422472-0.050607642247158
971.671.7005783424363-0.100578342436336
1071.771.6511620665890.0488379334110363
1171.7371.7492472594121-0.0192472594120829
1271.8371.78012181075370.0498781892463427
1371.8371.8792543018512-0.0492543018512208
1471.8771.8805133750428-0.0105133750428053
1571.9171.9200013120964-0.0100013120963922
1671.9971.95998791045380.0300120895461475
1772.172.03948651798470.0605134820152955
1872.1272.1491296306105-0.0291296306105409
1972.1272.170278544642-0.0502785446420546
2072.1272.1705204055553-0.0505204055552468
2172.2572.17048957835920.0795104216408333
2272.5972.29884809258240.291151907417557
2372.7272.6362851535170.0837148464830619
2472.7672.7690454217792-0.00904542177919154
2572.7672.810248476812-0.0502484768119729
2672.9172.81075176559210.0992482344078525
277372.95886981575270.041130184247308
2873.1673.04965505412870.110344945871319
2973.1673.2088270507859-0.0488270507858886
3073.1173.210869032035-0.100869032034950
3173.1173.161479560017-0.0514795600170714
3273.3373.16080113853120.169198861468814
3373.5173.37803837688550.131961623114506
3473.6673.55861252484380.101387475156201
3573.6573.7090792547003-0.0590792547003076
3673.6573.7011312173181-0.0511312173181153
3773.6573.7009932231853-0.0509932231852872
3873.6573.7009571265267-0.0509571265266686
3973.7173.70092238238980.0090776176101599
4073.7373.7601459293447-0.0301459293446555
4173.8573.78063693596230.0693630640377307
4273.7773.8993864801217-0.129386480121724
4373.7773.8218901744475-0.0518901744475215
4473.7873.8208451015222-0.0408451015222369
4573.8873.83067365564650.0493263443534744
4674.373.92953143899090.370468561009105
4774.5374.34559449558730.184405504412723
4874.7174.57814387590190.131856124098135
4974.7174.7589175481348-0.0489175481348099
5074.7874.761241048420.0187589515799544
5174.974.83037149599780.0696285040022246
5274.6574.9497552384501-0.299755238450132
5374.6574.7043685763231-0.0543685763230997
5474.5374.7011333695995-0.171133369599517
5574.5374.5825403060316-0.0525403060316307
5674.5374.5809590956652-0.0509590956652346
5774.6574.58090420949920.0690957905007963
5874.8574.69938575621640.150614243783593
5974.9674.8984244580890.0615755419110116
6074.9675.0096265016009-0.0496265016008692
6174.9675.0110426522206-0.0510426522205591
6275.1975.01102678074140.178973219258623
6374.9875.2381488787475-0.258148878747448
6475.5475.03367317687030.506326823129697
6575.6175.58404871700910.0259512829908743
6675.5975.6603279128148-0.0703279128147756
6775.5875.641535618981-0.0615356189809546
6875.4475.6313796219147-0.191379621914663
6975.3775.4929434295242-0.122943429524170
7075.2275.4219686658305-0.201968665830549
7175.3375.27286292380330.057137076196696
7275.3375.3795238859368-0.0495238859367646


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7375.38088091214675.130568929715875.6311928945761
7475.431116275708475.079302999500775.7829295519161
7575.481351639270875.051267525332475.9114357532092
7675.531587002833275.035345694117176.0278283115493
7775.581822366395775.027185627396476.1364591053949
7875.63205772995875.024544907816676.2395705520996
7975.682293093520575.026087909434576.3384982776066
8075.73252845708375.030942957943676.4341139562223
8175.782763820645475.038503924708776.5270237165821
8275.832999184207875.04832916400776.6176692044087
8375.883234547770375.060085100221876.7063839953187
8475.933469911332775.073512489955976.7934273327095
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/1goxf1211624824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/1goxf1211624824.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/22zv41211624824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/22zv41211624824.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/3xmx41211624824.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211624891yheg3vwzy440xog/3xmx41211624824.ps (open in new window)


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