Home » date » 2009 » Jun » 07 »

exponential smoothing -- eigen reeks -- triple additief

*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 14:58:04 -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/07/t1244408319eqif0m8hy1v2lvq.htm/, Retrieved Sun, 07 Jun 2009 22:58:43 +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/07/t1244408319eqif0m8hy1v2lvq.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 «
517 540 454 292 445 483 545 355 370 372 422 445 471 413 307 308 389 377 521 420 413 384 466 434 263 334 334 416 309 334 350 337 277 439 433 455 372 409 471 382 417 405 410 357 360 329 359 393 448 593 535 449 742 631 513 526 677 631 547 533 433 427 470 418 485 464 439 452 423 537 384 380
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.475951406937993
beta0
gamma0.691257448858544


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13471508.236912393163-37.2369123931626
14413428.665321013479-15.6653210134794
15307308.569092234181-1.56909223418131
16308304.3903167082433.60968329175660
17389382.6347200134256.36527998657505
18377370.1489867757926.85101322420769
19521513.5611056226747.43889437732582
20420332.16969399816287.8303060018383
21413398.249021175414.7509788245996
22384410.587806431217-26.5878064312172
23466447.45967201675418.5403279832462
24434483.893670002675-49.8936700026745
25263475.933912666138-212.933912666138
26334320.55344957818813.4465504218119
27334219.419450991615114.580549008385
28416272.398284978060143.601715021940
29309418.270314519158-109.270314519158
30334350.923615460928-16.9236154609276
31350483.2331277493-133.233127749300
32337264.01065859521572.9893414047847
33277296.553239297600-19.5532392976005
34439277.589805636326161.410194363674
35433420.28736342117312.7126365788266
36455429.15727707215825.8427229278421
37372398.182628058698-26.1826280586980
38409413.693588864495-4.69358886449515
39471340.56180862998130.438191370020
40382411.601099562374-29.6010995623738
41417383.4334825742433.5665174257604
42405417.522996644755-12.5229966447546
43410509.793578803763-99.7935788037627
44357381.191313688174-24.1913136881745
45360333.95684425588526.0431557441154
46329402.249534045382-73.2495340453822
47359379.394402854661-20.3944028546613
48393377.26338102776215.7366189722375
49448322.63240449695125.367595503050
50593418.058365460134174.941634539866
51535479.37604688401855.6239531159819
52449456.832763659304-7.83276365930368
53742461.908443534473280.091556465527
54631596.63585538433434.3641446156662
55513679.608452395675-166.608452395675
56526546.592663243359-20.5926632433593
57677519.268538365756157.731461634244
58631614.26943815659116.7305618434092
59547653.387363269613-106.387363269613
60533623.4164236966-90.4164236966004
61433557.975851771901-124.975851771901
62427552.208816041707-125.208816041707
63470427.44634060163742.5536593983634
64418375.69487881061942.3051211893809
65485508.935058430096-23.9350584300960
66464409.94520750546554.0547924945351
67439429.4867716821389.51322831786217
68452433.19092797113218.8090720288681
69423489.218473323462-66.2184733234618
70537426.55215895110.447841050000
71384465.675179586851-81.6751795868508
72380453.251551290307-73.2515512903074


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73383.461385542462210.240425497985556.682345586939
74437.092390408741245.252250209825628.932530607657
75432.695602171671223.890004104116641.501200239226
76360.600632733704136.108057851685585.093207615722
77449.70996016418210.557175171054688.862745157306
78390.364051941037137.399246162096643.328857719979
79368.042868890005101.982102606085634.103635173926
80370.58663334025692.0449492992551649.128317381256
81386.86053407565696.3736873145569677.347380836754
82419.708808148194117.748965563099721.66865073329
83336.66698015613423.6543846798093649.679575632458
84366.16824885075642.4800913293010689.856406372212
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/1lb4p1244408282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/1lb4p1244408282.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/29qb91244408282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/29qb91244408282.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/3uvmh1244408282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244408319eqif0m8hy1v2lvq/3uvmh1244408282.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