Home » date » 2009 » Jun » 08 »

opgave 10 oef 2 exponential smoothing inschrijving personenwagens. umran celik

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 07 Jun 2009 18:00:12 -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/08/t12444192660ptoqdxd84v6wem.htm/, Retrieved Mon, 08 Jun 2009 02:01:06 +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/08/t12444192660ptoqdxd84v6wem.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 «
580 579 572 560 551 537 541 588 607 599 578 563 566 561 554 540 526 512 505 554 584 569 540 522 526 527 516 503 489 479 475 524 552 532 511 492 492 493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
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.562890117745326
beta0.154656619933915
gamma0.776809761193287


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13566577.284722222222-11.2847222222224
14561565.620730231435-4.62073023143523
15554554.763910604782-0.7639106047817
16540538.8448879696881.15511203031224
17526524.7316221232521.26837787674833
18512511.2508640697760.749135930223645
19505512.709712313483-7.70971231348324
20554552.6109919117921.38900808820767
21584569.92143763381714.0785623661826
22569568.6836461747910.316353825209148
23540547.018450278338-7.0184502783377
24522526.821910005568-4.8219100055685
25526522.0686027973063.93139720269426
26527521.0542001181925.94579988180806
27516518.196449047451-2.19644904745087
28503502.7396473370860.260352662914386
29489488.7002730228050.299726977195405
30479474.9527192964324.04728070356828
31475476.137724903373-1.13772490337323
32524524.141791723735-0.141791723734968
33552546.0800545571325.9199454428682
34532536.047373222968-4.04737322296751
35511509.5259436241731.47405637582733
36492495.685508668418-3.68550866841815
37492495.472915080809-3.47291508080895
38493491.2589593918481.74104060815216
39481483.187904618284-2.18790461828382
40462468.489090665015-6.4890906650146
41457449.9952885046887.00471149531182
42442441.2094885639070.790511436093254
43439438.4322967305430.567703269456729
44488487.5145488468350.485451153164888
45521511.6988014983169.30119850168381
46501500.3139834955620.686016504438442
47485478.8728087588836.12719124111743
48464466.845786380568-2.84578638056831
49460468.19729790819-8.19729790818974
50467463.7024065209973.29759347900307
51460455.916914710814.08308528919019
52448444.5768979522113.42310204778857
53443438.3967028702934.60329712970696
54436428.0923716418747.90762835812563
55431431.808498521782-0.808498521782383
56484482.5311853489271.46881465107339
57510512.790981695035-2.79098169503459
58513493.15023876146419.8497612385362
59503487.4879372049615.5120627950404
60471481.658010883794-10.6580108837944
61471480.076125558585-9.0761255585847
62476482.194288543984-6.19428854398382
63475471.7109454091853.28905459081528
64470462.009074969537.99092503047007
65461461.507645838878-0.507645838877579
66455451.7103203626953.28967963730537
67456451.7273792682864.27262073171414
68517508.3856788787548.61432112124561
69525544.145477438642-19.1454774386422
70523524.487193281545-1.48719328154527
71519504.98472911118614.0152708888141
72509488.93895918344320.0610408165567
73512507.3726591879994.62734081200085
74519521.562853780641-2.56285378064138
75517520.039778076327-3.03977807632668
76510511.517129536238-1.51712953623803
77509505.0954230455663.90457695443445
78501501.772598073284-0.772598073283518
79507502.1846769384044.81532306159608
80569563.017809872155.98219012784955
81580590.03611688648-10.0361168864803
82578584.460288781853-6.46028878185257
83565569.948462752511-4.94846275251086
84547546.1562250965480.843774903451617
85555547.7344132800257.26558671997498
86562560.4001116816261.59988831837416
87561560.8525489619440.147451038056374
88555554.7127274102850.287272589715030
89544551.376479813433-7.37647981343298
90537539.362281843572-2.36228184357162
91543539.8853023409173.11469765908271
92594599.117707236083-5.11770723608333
93611612.44298398353-1.44298398352976
94613611.6604227467481.33957725325195
95611601.4735219403199.5264780596807
96594588.4770735222515.52292647774937
97595595.958212719471-0.958212719470794
98591602.443669385527-11.4436693855271
99589594.297985819751-5.29798581975149
100584583.9035532143490.0964467856509827
101573576.604137836547-3.60413783654667
102567567.490813657033-0.490813657033186
103569570.164782978349-1.16478297834851
104621623.058241317121-2.05824131712086
105629638.485012763114-9.48501276311413
106628632.551993596952-4.55199359695166
107612619.747267657183-7.74726765718276
108595592.0830368767642.91696312323563
109597592.0846142334134.91538576658729
110593595.015223981243-2.01522398124337
111590591.783596033258-1.78359603325805
112580583.025111488851-3.02511148885139
113574570.2663640954653.73363590453494
114573564.5336211658788.46637883412166
115573570.9935119599472.00648804005334
116620624.61759998127-4.61759998127036
117626635.108087678417-9.10808767841718
118620630.12118498376-10.1211849837600
119588611.670769216-23.6707692159998
120566575.852306177444-9.85230617744355
121557565.421026998575-8.4210269985748
122561553.4066797028367.59332029716415
123549551.413999630308-2.41399963030847
124532537.575973156142-5.5759731561418
125526521.1511115465674.84888845343323
126511513.225029526732-2.2250295267321
127499506.114518842905-7.11451884290454
128555546.2023891268848.79761087311567
129565557.7343968707657.26560312923539
130542558.060471976212-16.0604719762122
131527527.589457089726-0.589457089726466
132510507.3879936266572.61200637334269
133514503.47650322793510.5234967720652
134517508.2304996982428.76950030175811
135508504.2712413179753.72875868202453
136493494.121376006402-1.12137600640199
137490485.4356463569364.56435364306395
138469476.614583647384-7.61458364738417
139478466.00806685263211.9919331473678
140528525.1150120990642.8849879009357
141534535.145205022292-1.14520502229232
142518524.430859087689-6.43085908768876
143506507.086100147311-1.08610014731079
144502490.10154693003811.8984530699624
145516497.32149540172118.6785045982786


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
146509.998058714981496.139657338332523.856460091631
147502.555284399856486.026979372301519.08358942741
148491.499401708899472.069960130277510.928843287521
149488.312834222588465.775725346407510.849943098768
150475.327174772423449.494054843463501.160294701384
151478.867139664298449.563545768332508.170733560265
152530.290606951614497.353031824949563.22818207828
153539.236197152081502.510037617764575.962356686397
154529.379206357434488.717277962108570.04113475276
155520.036451135329475.297880258004564.775022012653
156510.734041243188461.783416191436559.68466629494
157515.184694152273461.891398925546568.477989378999
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/1e73p1244419206.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/1e73p1244419206.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/2ai7h1244419206.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/2ai7h1244419206.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/31uec1244419206.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/08/t12444192660ptoqdxd84v6wem/31uec1244419206.ps (open in new window)


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