Home » date » 2008 » May » 23 »

Prijzen van sigaretten: Luk Glorie

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 23 May 2008 08:30:52 -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/23/t1211553173oq5b925wnti9vn6.htm/, Retrieved Fri, 23 May 2008 16:32:56 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3.42 3.42 3.43 3.47 3.51 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.58 3.6 3.61 3.61 3.61 3.63 3.68 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.78 3.79 3.79 3.8 3.8 3.8 3.8 3.81 3.95 3.99 4 4.06 4.16 4.19 4.2 4.2 4.2 4.2 4.2 4.23 4.38 4.43 4.44 4.44 4.44 4.44 4.44 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.46 4.46 4.46 4.48 4.58 4.67 4.68 4.68
 
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
alpha1
beta0.0663859853102358
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
33.433.420.0100000000000002
43.473.43066385985310.0393361401468977
53.513.473275228275060.0367247717249439
63.523.515713238431310.00428676156869079
73.523.52599781932184-0.0059978193218373
83.523.52559964817644-0.00559964817644421
93.523.52522791001486-0.00522791001486045
103.523.52488085005741-0.00488085005741068
113.523.5245568300172-0.00455683001719764
123.523.52425432036662-0.00425432036661499
133.523.52397189311725-0.00397189311725166
143.523.52370821507912-0.00370821507911590
153.583.523462041567350.0565379584326533
163.63.587215369645330.0127846303546724
173.613.608064089928250.00193591007174998
183.613.61819260722583-0.0081926072258347
193.613.61764873292289-0.00764873292288781
203.633.617140964251430.0128590357485727
213.683.637994624009740.0420053759902643
223.693.69078319228318-0.000783192283176692
233.693.70073119929177-0.0107311992917705
243.693.70001879805323-0.0100187980532258
253.693.69935369027284-0.00935369027283794
263.693.69873273632779-0.0087327363277887
273.693.69815300502221-0.00815300502221428
283.693.69761175975058-0.00761175975057515
293.693.69710644557959-0.00710644557958862
303.783.696634677187730.083365322812266
313.793.79216896628333-0.00216896628333174
323.793.80202497731951-0.0120249773195082
333.83.80122668735182-0.00122668735181986
343.83.8111452525033-0.0111452525033013
353.83.81040536393434-0.0104053639343382
363.83.80971459359705-0.00971459359704552
373.813.809069680729220.00093031927078302
383.953.819131440890660.130868559109339
393.993.967819279133270.0221807208667344
4044.00929176814290-0.00929176814289523
414.064.018674924959450.0413250750405449
424.164.081418330784040.0785816692159598
434.194.186635052322270.00336494767773488
444.24.21685843768937-0.0168584376893692
454.24.22573927369257-0.0257392736925688
464.24.22403054664732-0.0240305466473183
474.24.22243525513059-0.0224352551305920
484.24.22094586861306-0.0209458686130617
494.234.219555356487000.0104446435129955
504.384.250248734437830.129751265562170
514.434.408862400047420.0211375999525760
524.444.46026564044737-0.0202656404473682
534.444.46892028593833-0.0289202859383275
544.444.46700038426086-0.0270003842608579
554.444.46520793714795-0.0252079371479459
564.444.46353448340274-0.0235344834027407
574.454.46197212353328-0.0119721235332833
584.454.47117734231627-0.0211773423162702
594.454.46977146358035-0.0197714635803523
604.454.46845891548955-0.0184589154895454
614.454.46723350219701-0.0172335021970129
624.454.46608943917332-0.0160894391733182
634.454.46502132590071-0.0150213259007081
644.454.46402412038012-0.0140241203801237
654.464.46309311533058-0.00309311533058043
664.464.47288777582168-0.0128877758216808
674.464.4720322081253-0.0120322081253015
684.484.471233438133450.00876656186655467
694.584.491815414980740.0881845850192597
704.674.597669635546420.072330364453582
714.684.69247135805852-0.0124713580585176
724.684.70164343466565-0.0216434346656458


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
734.700206613929874.633372149384764.76704107847498
744.720413227859744.622707296449144.81811915927034
754.740619841789614.617014899300424.8642247842788
764.760826455719484.613512452181894.90814045925706
774.781033069649354.611163937118534.95090220218016
784.801239683579214.609458889140184.99302047801824
794.821446297509084.608106568233535.03478602678464
804.841652911438954.606925847033755.07637997584415
814.861859525368824.605796820531075.11792223020658
824.882066139298694.604636591695325.15949568690206
834.902272753228564.603385982610585.20115952384655
844.922479367158434.602001717746895.24295701656997
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/168me1211553047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/168me1211553047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/2oph61211553047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/2oph61211553047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/3bm6i1211553047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/23/t1211553173oq5b925wnti9vn6/3bm6i1211553047.ps (open in new window)


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