Home » date » 2009 » Jun » 05 »

Eigen reeks: prijs Exponential Smoothing

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 05 Jun 2009 13:53:01 -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/Jun/05/t1244231641pcqa8wvhfjtngpl.htm/, Retrieved Fri, 05 Jun 2009 21:54:01 +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/Jun/05/t1244231641pcqa8wvhfjtngpl.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.58 0.58 0.59 0.6 0.6 0.61 0.62 0.61 0.62 0.62 0.62 0.63 0.63 0.63 0.63 0.63 0.63 0.63 0.63 0.64 0.63 0.63 0.63 0.63 0.63 0.64 0.65 0.65 0.65 0.65 0.65 0.66 0.65 0.66 0.66 0.66 0.66 0.68 0.69 0.7 0.71 0.71 0.7 0.7 0.7 0.7 0.71 0.7 0.7 0.7 0.69 0.7 0.69 0.69 0.69 0.7 0.7 0.71 0.71 0.71 0.72 0.73 0.74 0.74 0.74 0.74 0.75 0.75 0.76 0.76 0.76 0.76 0.76 0.77 0.77 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.8 0.8 0.8 0.81 0.81 0.81 0.8 0.81 0.81 0.81 0.8 0.82 0.83 0.83
 
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.886472179761465
beta0.0337932685980229
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
30.590.580.01
40.60.5891642897223680.0108357102776319
50.60.5993940164803080.00060598351969221
60.610.6005735283833150.00942647161668464
70.620.609854544450220.0101454555497803
80.610.620076845077982-0.0100768450779816
90.620.6120707688316520.00792923116834776
100.620.620264112576957-0.000264112576957021
110.620.621186373067169-0.00118637306716851
120.630.6212555353585430.00874446464145717
130.630.630390065112912-0.000390065112912064
140.630.63141540326519-0.00141540326519018
150.630.631489406728742-0.00148940672874154
160.630.631453190332364-0.00145319033236435
170.630.631405545842613-0.00140554584261288
180.630.631358031222423-0.00135803122242328
190.630.631311954731659-0.00131195473165857
200.640.6312674218124640.00873257818753559
210.630.640388687917373-0.0103886879173729
220.630.632248271810432-0.00224827181043219
230.630.631256757101923-0.00125675710192319
240.630.631106544186638-0.00110654418663758
250.630.63105634232723-0.00105634232722962
260.640.6310189983916790.00898100160832072
270.650.6401485226150930.009851477384907
280.650.650344818061202-0.000344818061202123
290.650.651492051614606-0.00149205161460575
300.650.651577597458647-0.00157759745864694
310.650.651540049532173-0.00154004953217313
320.660.6514896518536890.00851034814631113
330.650.660603594846032-0.0106035948460322
340.660.6524559094398210.0075440905601788
350.660.660621639028606-0.000621639028606125
360.660.661530054198104-0.00153005419810348
370.660.66158734907608-0.00158734907607960
380.680.6615463017518290.018453698248171
390.690.6798238989426330.0101761010573672
400.70.6910684798561010.00893152014389886
410.710.7014773341097580.00852266589024209
420.710.711779062175382-0.00177906217538160
430.70.712895299910973-0.0128952999109733
440.70.703771000327008-0.00377100032700795
450.70.702622171409816-0.00262217140981624
460.70.702413195522262-0.00241319552226182
470.710.7023171793478020.0076828206521975
480.70.711401153302326-0.0114011533023264
490.70.703226173283415-0.00322617328341501
500.70.702201439817833-0.00220143981783349
510.690.702019155985391-0.0120191559853908
520.70.6927736845400310.00722631545996899
530.690.700805265349972-0.0108052653499719
540.690.692528660323049-0.00252866032304933
550.690.691513284842829-0.00151328484282931
560.70.6913526783178440.00864732168215643
570.70.70045821282786-0.000458212827860405
580.710.7014782177262960.00852178227370437
590.710.710714023719756-0.000714023719755819
600.710.711741154781944-0.00174115478194403
610.720.7118056033200630.0081943966799366
620.730.720923119660530.00907688033947007
630.740.731094847434920.00890515256507995
640.740.741381113122175-0.00138111312217459
650.740.742507516724857-0.00250751672485694
660.740.742560277712423-0.0025602777124234
670.750.7424895698442250.00751043015577502
680.750.751571252729267-0.00157125272926661
690.760.7525552066993660.00744479330063397
700.760.76175465677435-0.00175465677435016
710.760.762746486399902-0.00274648639990160
720.760.76277681073222-0.00277681073222025
730.760.76269706904472-0.00269706904472
740.770.7626072206070920.00739277939290839
750.770.77168320606552-0.00168320606551986
760.780.7726631594563340.00733684054366612
770.780.781858921435934-0.00185892143593436
780.780.782847208925227-0.00284720892522661
790.780.782874113802748-0.00287411380274794
800.780.782791069024107-0.00279106902410720
810.780.782698029655867-0.00269802965586652
820.780.7826066427847-0.00260664278470057
830.80.782518181175460.0174818188245400
840.80.800761281135636-0.000761281135635894
850.80.802809574967513-0.00280957496751277
860.810.8029579474472080.007042052552792
870.810.81205047095595-0.00205047095595046
880.810.813021299797461-0.00302129979746135
890.80.813041007428625-0.0130410074286245
900.810.8037878562422090.006212143757791
910.810.811788183856672-0.00178818385667145
920.810.812642875359234-0.00264287535923347
930.80.812660734553821-0.0126607345538209
940.820.8034187652740250.0165812347259753
950.830.8205957088498780.00940429115012165
960.830.831692214008382-0.00169221400838204


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
970.832901282747420.8195255526749470.846277012819892
980.835610452127090.8174675078157440.853753396438437
990.8383196215067610.8161970855819570.860442157431566
1000.8410287908864320.8153392644473210.866718317325543
1010.8437379602661030.8147358386477740.872740081884432
1020.8464471296457740.8143030543572370.87859120493431
1030.8491562990254450.8139905709176230.884322027133266
1040.8518654684051160.8137655374173320.8899653993929
1050.8545746377847860.8136052393118740.895544036257699
1060.8572838071644570.8134932813107580.901074333018157
1070.8599929765441280.8134174305728480.906568522515408
1080.8627021459237990.8133683166938950.912035975153703
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/1wy9s1244231576.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/1wy9s1244231576.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/2u5qn1244231576.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/2u5qn1244231576.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/35kgh1244231576.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244231641pcqa8wvhfjtngpl/35kgh1244231576.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
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