Home » date » 2011 » May » 29 »

Exponential smoothing Eigen reeks

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 29 May 2011 13:56:00 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3.htm/, Retrieved Sun, 29 May 2011 15:52:51 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
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 577 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528 533 536 537 524 536 587 597 581 564 558 575 580 575 563 552 537 545 601 604 586 564 549 551 556
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.896019100477419
beta0.149965314457529
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13519495.15261712648723.8473828735126
14517517.285341877365-0.285341877364772
15510512.543885898163-2.54388589816313
16509511.77398259048-2.77398259047987
17501504.039839483569-3.03983948356949
18507509.798531759515-2.79853175951524
19569568.259671133850.74032886614998
20580579.6272287292630.372771270736848
21578579.810609693414-1.81060969341377
22565575.267047567444-10.2670475674438
23547555.059916434488-8.05991643448772
24555549.8074036399145.19259636008599
25562563.870693221883-1.87069322188279
26561556.0625142409954.93748575900509
27555551.9038921140553.09610788594466
28544553.618642200399-9.61864220039945
29537535.9692387993131.03076120068749
30543543.183176255541-0.183176255541412
31594606.001986407741-12.0019864077411
32611602.0892780513188.91072194868218
33613606.5044698514346.49553014856622
34611606.228267273014.77173272698951
35594598.804345495192-4.80434549519202
36595598.594921159887-3.59492115988689
37591603.94776852926-12.9477685292593
38589584.5231107928414.47688920715916
39584577.1981862077346.80181379226588
40573579.132619056229-6.13261905622869
41567564.1850691148772.81493088512309
42569572.34002679714-3.34002679713979
43621632.664381004718-11.6643810047181
44629630.341379251068-1.34137925106791
45628622.5474249390595.45257506094106
46612618.258537483585-6.25853748358486
47595595.884560743539-0.884560743539168
48597595.8146358103821.18536418961776
49593601.58976680362-8.58976680362014
50590585.5771878865044.42281211349575
51580576.2052941087983.7947058912016
52574571.5710389704952.42896102950533
53573563.7988116031779.20118839682266
54573576.500238726862-3.50023872686211
55620635.617675603752-15.6176756037519
56626629.6454873794-3.64548737939992
57620619.033258403120.966741596879956
58588607.604795019858-19.6047950198581
59566570.691464189829-4.69146418982916
60577563.1431821525913.8568178474098
61561576.565347258292-15.5653472582917
62549552.509894888093-3.50989488809262
63532532.45165269515-0.451652695150301
64526519.655930344026.34406965597975
65511512.607365407336-1.60736540733615
66499508.389266012661-9.38926601266144
67555546.1179856665768.88201433342363
68565558.2744713187326.72552868126752
69542555.404035729895-13.4040357298946
70527526.1488369563530.85116304364658
71510508.951774781211.04822521878958
72514507.2966562130746.7033437869265
73517509.34597718477.6540228153002
74508508.962377934173-0.962377934172878
75493493.950882115909-0.950882115908826
76490483.3912287904086.60877120959174
77469477.913011507385-8.91301150738468
78478466.79064670977611.2093532902241
79528526.077374270031.92262572996981
80534534.053007923467-0.0530079234665664
81518525.160939996395-7.1609399963952
82506505.9824128376250.0175871623750368
83502490.95133898467311.0486610153267
84516502.52555943169313.4744405683071
85528515.37920973847712.6207902615226
86533523.7120648858639.2879351141371
87536523.84772346449412.1522765355063
88537533.4612658466233.53873415337728
89524530.12959350431-6.12959350430958
90536531.811868849584.18813115042008
91587597.663629278294-10.6636292782937
92597601.212283981931-4.21228398193148
93581592.438111859684-11.4381118596835
94564573.873529788956-9.87352978895626
95558553.2343028233144.76569717668644
96575562.35024867671412.6497513232858
97580576.8472504050733.1527495949274
98575576.989648381008-1.98964838100778
99563566.087652129082-3.08765212908213
100552558.459977641041-6.45997764104072
101537541.206802761931-4.20680276193082
102545542.4363518804732.56364811952699
103601602.243509146296-1.24350914629565
104604612.4278443106-8.42784431060045
105586595.76513711945-9.76513711945017
106564575.800839572587-11.8008395725869
107549551.792750259015-2.79275025901529
108551550.6826099404560.317390059544437
109556547.3505191396238.64948086037668


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
110547.139995750804532.051174650631562.228816850977
111533.845816089555512.421395963215555.270236215894
112524.853108568665497.47066666358552.23555047375
113511.02146025158478.087713288261543.955207214899
114513.811713301297474.370722208903553.252704393691
115564.409407826634514.420059079258614.398756574011
116571.17868902913513.591608022507628.765770035754
117560.379162514143496.73682117116624.021503857127
118548.654016850196479.086521267024618.221512433369
119537.255806517171461.765465835619612.746147198723
120540.084730482562456.593869518811623.575591446313
121538.488961909698448.073347236991628.904576582405
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/1qxsa1306677356.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/1qxsa1306677356.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/236tz1306677356.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/236tz1306677356.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/3kzs11306677356.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/29/t1306677170mmvscje9jnycfb3/3kzs11306677356.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=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