Home » date » 2010 » Aug » 19 »

tijdreeks A-Stap 32

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 Aug 2010 17:07:59 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq.htm/, Retrieved Thu, 19 Aug 2010 19:08:17 +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/2010/Aug/19/t1282237697ezl2ws6j50ei0vq.htm/},
    year = {2010},
}
@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 = {2010},
    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:
gilian keirsebelik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
668 667 666 664 684 683 668 658 659 659 660 662 659 655 655 655 674 674 665 644 638 648 641 637 651 649 652 650 661 666 652 624 613 623 615 613 621 612 611 609 631 632 624 596 584 587 581 574 593 582 571 572 594 588 571 546 535 537 527 515 545 538 520 523 541 529 504 473 455 458 450 442 469 455 439 443 461 451 425 393 366 359 351 343 366 355 344 351 367 364 353 313 278 274 261 255 274 262 265 274 291 289 277 238 203 198 190 187 201 181 181 196 207 202 186 154 120 107 99 100
 
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.410159378916772
beta0.0621038460609066
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13659663.780715811966-4.78071581196593
14655657.445024279532-2.44502427953159
15655656.755057715721-1.75505771572114
16655656.178381745534-1.17838174553435
17674674.724885200313-0.724885200312883
18674675.022263229662-1.02226322966226
19665656.0049626300368.9950373699644
20644649.533811019997-5.53381101999696
21638648.045889448822-10.0458894488220
22648643.3264029245354.67359707546484
23641645.721633268688-4.72163326868827
24637645.143050085044-8.14305008504437
25651634.84219001543516.1578099845648
26649638.3260144900910.6739855099097
27652643.6117743147978.38822568520277
28650647.9818537838062.01814621619417
29661668.63460303119-7.63460303119052
30666666.274151416039-0.274151416038649
31652653.843024530955-1.84302453095540
32624634.451480795414-10.4514807954143
33613628.25450405094-15.2545040509395
34623629.917510515415-6.91751051541473
35615621.558300715687-6.55830071568744
36613617.702965915233-4.70296591523311
37621622.72901586869-1.72901586868954
38612614.768479643678-2.76847964367835
39611611.976710575761-0.976710575761217
40609607.2940521304461.70594786955371
41631620.66292437849710.3370756215032
42632629.0107594955282.98924050447249
43624616.0714258158657.92857418413473
44596594.9377520486621.06224795133801
45584590.251078380621-6.25107838062115
46587600.374618770544-13.3746187705436
47581589.26456046195-8.26456046194949
48574585.445994867391-11.4459948673914
49593588.9309789730864.06902102691436
50582582.353628527687-0.353628527687079
51571581.288888234256-10.2888882342560
52572573.811586256488-1.81158625648811
53594590.1815908948843.81840910511585
54588590.708527852677-2.70852785267698
55571577.387330105693-6.38733010569263
56546545.0088637014340.991136298566403
57535534.6545624912430.345437508756618
58537542.125238354085-5.12523835408547
59527536.466258996523-9.46625899652327
60515529.3010542324-14.3010542324005
61545539.7164581459535.2835418540468
62538530.009595872467.9904041275397
63520525.700561661114-5.70056166111408
64523524.415880544631-1.41588054463057
65541543.589485776745-2.58948577674505
66529536.795585282875-7.79558528287532
67504518.245669553395-14.2456695533951
68473485.823672713266-12.8236727132661
69455467.897863252303-12.8978632523032
70458464.848133213476-6.84813321347644
71450454.016380624446-4.01638062444562
72442444.467956419912-2.46795641991201
73469469.823245445614-0.823245445613793
74455457.587328167737-2.58732816773681
75439438.9738928201470.0261071798527723
76443440.8208527744472.17914722555275
77461459.1238417445161.87615825548397
78451449.5516384924671.44836150753252
79425429.684999153194-4.6849991531945
80393400.962993010947-7.96299301094672
81366384.050730431177-18.050730431177
82359381.388277941086-22.3882779410861
83351364.389423828184-13.3894238281839
84343350.207678811148-7.20767881114836
85366372.766108399427-6.76610839942651
86355355.077827879593-0.0778278795927463
87344337.1248065079626.87519349203808
88351341.3150056751599.6849943248414
89367360.9731372766556.02686272334518
90364351.41204545642212.5879545435781
91353331.34145538579521.6585446142055
92313311.0067880878811.99321191211931
93278291.997389437932-13.9973894379323
94274288.311630089255-14.3116300892552
95261280.011749786204-19.0117497862039
96255267.105356053602-12.1053560536021
97274287.725814278332-13.7258142783319
98262270.761084446498-8.76108444649827
99265252.75965415639612.2403458436038
100274260.35635501474813.6436449852524
101291279.12988579283611.8701142071636
102289275.63373501941513.3662649805847
103277261.05068242130315.9493175786973
104238226.44758557729711.5524144227035
105203201.8432493302031.15675066979736
106198204.489936299126-6.48993629912613
107190197.127298964809-7.12729896480883
108187193.973245567061-6.97324556706093
109201216.677752309969-15.6777523099687
110181202.725972776541-21.7259727765409
111181192.349277495900-11.3492774958997
112196191.0522187133094.94778128669063
113207204.9454765515422.05452344845781
114202197.7883498902964.21165010970421
115186180.2233350135395.7766649864605
116154137.84453409613516.1554659038653
117120108.10382581868211.8961741813175
118107110.026049167775-3.02604916777503
11999103.177436709157-4.17743670915672
120100100.868525698083-0.868525698082635


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121120.642532975459103.13276033637138.152305614547
122109.65285971650890.5537577689906128.751961664026
123114.96050186289394.224965754181135.696037971606
124128.872846687314106.455213266732151.290480107895
125139.845856114932115.701766789424163.989945440441
126133.881766013898107.968051420728159.795480607068
127116.16848923119088.4430710211985143.893907441181
12878.051103956258848.4729102177818107.629297694736
12939.26918742867617.7980791463627270.7402957109895
13027.3047357634337-6.098557678118260.7080292049856
13120.8896174586161-14.484320352599756.2635552698318
13222.2237279204456-15.158552773353459.6060086142446
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/12anu1282237674.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/12anu1282237674.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/2v1nf1282237674.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/2v1nf1282237674.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/3v1nf1282237674.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282237697ezl2ws6j50ei0vq/3v1nf1282237674.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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