Home » date » 2009 » Aug » 06 »

datareeks-diesel-seda hovhannesian

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 06 Aug 2009 06:29:02 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg.htm/, Retrieved Thu, 06 Aug 2009 14:31:11 +0200
 
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/Aug/06/t12495618716b00l7qbbo4lwyg.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 «
0.9 0.92 0.92 0.95 1.06 1.17 1.23 1.26 1.37 1.37 1.31 1.21 1.2 1.11 1.11 1.11 1.17 1.08 1.05 1.03 1.04 1.02 1.01 1.01 0.98 0.96 0.94 0.99 0.99 0.98 1.02 1.06 1.06 1.06 1.06 1.06 1.04 1.02 1.01 1 1.04 1.09 1.08 1.06 1.06 1.03 0.97 0.98 0.93 0.88 0.86 0.9 0.91 0.93 0.89 0.88 0.83 0.81 0.83 0.8 0.76 0.73 0.74 0.74 0.75 0.74 0.74 0.73 0.71 0.71 0.7 0.75 0.81 0.78 0.75
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.740843693108228
beta0.000554454471247304
gamma0.450293672392732


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.21.161664751731530.0383352482684693
141.111.11048182758549-0.000481827585486538
151.111.12609336529116-0.016093365291155
161.111.13552443884904-0.0255244388490383
171.171.19875697194969-0.0287569719496918
181.081.10112236822382-0.0211223682238153
191.051.15936563629937-0.109365636299373
201.031.07821459605905-0.0482145960590488
211.041.11066661232524-0.0706666123252446
221.021.03781221644680-0.0178122164468011
231.010.963391435853550.0466085641464503
241.010.9144187579460760.095581242053924
250.980.983244042236231-0.00324404223623131
260.960.9106000030638730.0493999969361271
270.940.958278315643581-0.0182783156435813
280.990.9608725220707380.0291274779292622
290.991.05367732483681-0.0636773248368059
300.980.9408185685215420.0391814314784582
311.021.02518372932378-0.00518372932378131
321.061.027601560044420.0323984399555795
331.061.11784165612741-0.0578416561274149
341.061.06053473495978-0.000534734959778849
351.061.004598389397420.0554016106025763
361.060.9640931867830260.0959068132169737
371.041.021425955494930.0185740445050708
381.020.9676975776747240.0523024223252759
391.011.010201972984-0.000201972984000598
4011.03373930406097-0.0337393040609708
411.041.07040711324789-0.0304071132478891
421.090.9918284325837960.0981715674162041
431.081.12010601808364-0.0401060180836366
441.061.10224633879243-0.042246338792427
451.061.12737485710197-0.0673748571019677
461.031.06974637423657-0.0397463742365749
470.970.991854741482205-0.0218547414822046
480.980.9032238090096620.0767761909903376
490.930.938657811286493-0.00865781128649246
500.880.8742719059868170.00572809401318297
510.860.875597507870825-0.0155975078708248
520.90.8799059719022270.0200940280977733
530.910.949210822775277-0.0392108227752772
540.930.8824919876970470.0475080123029529
550.890.950131155584487-0.0601311555844871
560.880.91391975302273-0.0339197530227293
570.830.931794663105861-0.101794663105861
580.810.851117320899683-0.0411173208996831
590.830.7823208318399620.0476791681600379
600.80.764874516141550.0351254838584500
610.760.763981764720434-0.00398176472043377
620.730.7138308033058640.0161691966941364
630.740.7201878057472370.0198121942527628
640.740.750916546259799-0.0109165462597992
650.750.780812834208565-0.0308128342085650
660.740.7338047520482930.00619524795170745
670.740.752581318434594-0.0125813184345943
680.730.751333491674163-0.0213334916741627
690.710.762536726688223-0.0525367266882226
700.710.723925320678525-0.0139253206785247
710.70.6880043538423620.0119956461576380
720.750.6497853941980460.100214605801954
730.810.6947687600246620.115231239975338
740.780.7343171822439260.0456828177560741
750.750.763043868236371-0.0130438682363715


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
760.7663005390258380.6844408754141170.848160202637559
770.8033301203922070.6924375947997850.91422264598463
780.7826853606314160.6525127353778660.912857985884966
790.7958482504838610.645003391154710.946693109813012
800.8039490794632820.6348751344033270.973023024523237
810.8300175459379360.6405531656660431.01948192620983
820.8368545348621690.6316198475420091.04208922218233
830.8117021589945560.5985012160269711.02490310196214
840.7687676395903250.5526552085503560.984880070630294
850.7388541730388810.5173181523396750.960390193738088
860.6879962814880510.4675751050298680.908417457946235
870.676634038171737-10.309184276063211.6624523524067
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/1h5iw1249561736.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/1h5iw1249561736.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/2x9381249561736.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/2x9381249561736.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/392z21249561736.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/06/t12495618716b00l7qbbo4lwyg/392z21249561736.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