Home » date » 2009 » Jun » 04 »

double exponential smoothing: cijferreeks jurk: birgit teugels

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 04 Jun 2009 01:26:31 -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/04/t1244100436u3j4bba85x0ktdu.htm/, Retrieved Thu, 04 Jun 2009 09:27:16 +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/04/t1244100436u3j4bba85x0ktdu.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 «
20,73 20,73 20,74 20,74 20,75 20,75 20,77 20,78 20,78 20,8 20,84 20,85 20,86 20,86 20,86 20,86 20,9 20,92 20,95 20,95 20,95 20,96 21,1 21,18 21,19 21,19 21,19 21,19 21,19 21,21 21,22 21,22 21,22 21,23 21,41 21,42 21,43 21,44 21,44 21,44 21,48 21,53 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,57 21,6 21,61 21,6 21,6 21,71 21,75 21,84 21,85 21,92 21,92 21,93 22 22 21,99 22,01 22,01 22,06 22,03 22,05 22,05 22,06 22,06 22,13 22,06 22,25 22,28 22,18
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.909175725154546
beta0.0452112664258505
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
320.7420.730.00999999999999801
420.7420.73950280711090.000497192889074682
520.7520.74038632978250.00961367021751869
620.7520.74995350211914.64978809162631e-05
720.7720.75082434490360.0191756550963795
820.7820.76987516810420.0101248318957943
920.7820.7811133836309-0.00111338363085522
1020.820.78208832078810.0179116792118705
1120.8420.80109664257370.0389033574263209
1220.8520.8407892105820.00921078941799536
1320.8620.85386462590920.00613537409083165
1420.8620.8643961427418-0.00439614274183242
1520.8620.8651719567356-0.00517195673559456
1620.8620.8650298262701-0.00502982627010695
1720.920.86481016643550.0351898335644556
1820.9220.90260372261040.0173962773896434
1920.9520.92493488318430.0250651168156644
2020.9520.9552686676788-0.00526866767879497
2120.9520.9578071431480-0.00780714314797493
2220.9620.95771678583240.00228321416763677
2321.120.96689418793250.133105812067502
2421.1821.10048363287810.0795163671218688
2521.1921.18861937450710.00138062549294204
2621.1921.2057727471715-0.0157727471714928
2721.1921.2066823512542-0.0166823512542074
2821.1921.2060792375717-0.0160792375717023
2921.1921.2053635233746-0.0153635233745639
3021.2121.20466700173930.00533299826065559
3121.2221.2230064679885-0.00300646798851290
3221.2221.2336403131388-0.0136403131388008
3321.2221.2340454395336-0.0140454395336356
3421.2321.2335048972501-0.00350489725014569
3521.4121.24240349138860.167596508611410
3621.4221.41375238240590.0062476175941164
3721.4321.438663586663-0.00866358666300115
3821.4421.4496617693688-0.00966176936876906
3921.4421.4593552816951-0.0193552816951481
4021.4421.459440089341-0.0194400893409963
4121.4821.45864870733490.0213512926650594
4221.5321.49582150422900.0341784957709557
4321.5421.5460613893967-0.00606138939670231
4421.5421.559466994461-0.0194669944610020
4521.5421.5598843582863-0.0198843582862587
4621.5421.5591049187853-0.0191049187852954
4721.5421.5582488193398-0.0182488193398171
4821.5421.5574209472661-0.0174209472661424
4921.5421.556629668593-0.0166296685929872
5021.5421.5558742389876-0.0158742389876316
5121.5421.5551531172712-0.0151531172711650
5221.5421.5544647532418-0.0144647532418496
5321.5721.55380765959950.0161923404005471
5421.621.5816888372250.0183111627750208
5521.6121.6122490768077-0.00224907680766506
5621.621.6240239973879-0.0240239973878538
5721.621.6150141826846-0.015014182684574
5821.7121.61357871502950.0964212849704609
5921.7521.71742106505050.0325789349494734
6021.8421.76455865685860.0754413431414171
6121.8521.8537667250654-0.00376672506537901
6221.9221.87080590924130.0491940907586716
6321.9221.9380179039577-0.0180179039577446
6421.9321.9433817589500-0.0133817589499685
652221.95241062742810.0475893725719025
662222.0188291291115-0.0188291291114773
6721.9922.0240875702758-0.0340875702758439
6822.0122.014072238033-0.00407223803301804
6922.0122.0311787279607-0.0211787279607378
7022.0622.03186186118860.0281381388114283
7122.0322.0785393103265-0.0485393103264933
7222.0522.0535082763730-0.00350827637304363
7322.0522.0692741577177-0.0192741577176996
7422.0622.0699138184762-0.00991381847617845
7522.0622.0786561650832-0.018656165083204
7622.1322.07868332097080.0513166790291635
7722.0622.1444374595153-0.0844374595153283
7822.2522.08329643011990.166703569880106
7922.2822.25733907613680.022660923863171
8022.1822.3013531219649-0.121353121964873


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8122.209444874872922.12505791306822.2938318366778
8222.227867940443122.111455723513422.3442801573727
8322.246291006013322.102935488646022.3896465233805
8422.264714071583422.096957629815522.4324705133514
8522.283137137153622.092480045651322.4737942286559
8622.301560202723822.088960633531922.5141597719157
8722.31998326829422.086078076601622.5538884599864
8822.338406333864222.083625297904222.5931873698241
8922.356829399434422.081460821565222.6321979773036
9022.375252465004622.079483746266722.6710211837425
9122.393675530574822.077619705904822.7097313552447
9222.412098596145022.075812459418822.7483847328711
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/1p8i11244100385.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/1p8i11244100385.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/2jeow1244100385.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/2jeow1244100385.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/3r8g71244100385.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244100436u3j4bba85x0ktdu/3r8g71244100385.ps (open in new window)


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