Home » date » 2010 » Nov » 30 »

Personal Standards (Yt) - Single Exponential Smoothing

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 30 Nov 2010 12:15:29 +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/Nov/30/t1291119290sl31sp861zsq1fz.htm/, Retrieved Tue, 30 Nov 2010 13:14:54 +0100
 
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/Nov/30/t1291119290sl31sp861zsq1fz.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
24 25 30 19 22 22 25 23 17 21 19 19 15 16 23 27 22 14 22 23 23 21 19 18 20 23 25 19 24 22 25 26 29 32 25 29 28 17 28 29 26 25 14 25 26 20 18 32 25 25 23 21 20 15 30 24 26 24 22 14 24 24 24 24 19 31 22 27 19 25 20 21 27 23 25 20 21 22 23 25 25 17 19 25 19 20 26 23 27 17 17 19 17 22 21 32 21 21 18 18 23 19 20 21 20 17 18 19 22 15 14 18 24 35 29 21 25 20 22 13 26 17 25 20 19 21 22 24 21 26 24 16 23 18 16 26 19 21 21 22 23 29 21 21 23 27 25 21 10 20 26 24 29 19 24 19 24 22 17
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0482511366093053
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
225241
33024.04825113660935.9517488633907
41924.3354297840810-5.33542978408105
52224.0779892327-2.07798923269999
62223.9777238903603-1.97772389036032
72523.88229646475111.11770353524894
82323.9362269307191-0.936226930719062
91723.8910529171876-6.89105291718763
102123.5585517814985-2.55855178149845
111923.4350987499674-4.43509874996739
121923.2211001943070-4.22110019430695
131523.0174273121899-8.01742731218988
141622.6305773316942-6.63057733169423
152322.31064443906410.689355560935908
162722.34390662840724.65609337159281
172222.5685684257456-0.568568425745596
181422.5411343529632-8.54113435296321
192222.1290149125000-0.129014912499951
202322.12278979633230.877210203667723
212322.16511618570450.834883814295473
222122.205400278681-1.20540027868100
231922.1472383451655-3.14723834516547
241821.9953805178308-3.99538051783084
252021.8025988666588-1.80259886665883
262321.71562142249191.28437857750811
272521.77759414869333.22240585130670
281921.9330788936353-2.93307889363533
292421.79155450325272.20844549674734
302221.89811450861040.101885491389581
312521.90303059937403.09696940062604
322622.05246289299843.94753710700159
332922.24293604521866.75706395478135
343222.56897206117869.43102793882139
352523.02402987862091.97597012137914
362923.11937268288345.88062731711657
372823.40311963491004.59688036508997
381723.6249243373826-6.62492433738262
392823.30526420815334.69473579184674
402923.53179054619035.46820945380975
412623.79563786755432.20436213244568
422523.90200084594331.09799915405667
431423.9549805531226-9.95498055312262
442523.47464142651091.52535857348907
452623.54824171141852.45175828858147
462023.6665418355339-3.66654183553387
471823.4896270245438-5.48962702454379
483223.22474628104848.7752537189516
492523.64816224702281.35183775297716
502523.71338995511541.28661004488464
512323.775470352154-0.775470352153995
522123.7380530262557-2.73805302625575
532023.6059388556424-3.60593885564236
541523.4319482073140-8.43194820731396
553023.02509712248036.97490287751974
562423.36164411406010.638355885939895
572623.39244551111792.60755448888206
582423.51826297897720.481737021022802
592223.5415073377883-1.54150733778833
601423.4671278566485-9.46712785664846
612423.01032817713960.989671822860448
622423.05808096746280.941919032537228
632423.10352963137660.896470368623369
642423.14678534559930.853214654400727
651923.1879539224458-4.18795392244582
663122.98588038562048.01411961437958
672223.3725707659372-1.37257076593716
682723.3063426664043.69365733359601
691923.4845658309953-4.48456583099529
702523.26818043245051.73181956754949
712023.351742694987-3.35174269498701
722123.1900173003319-2.19001730033195
732723.08434647639693.91565352360311
742323.2732812094790-0.273281209478967
752523.26009508050761.73990491949236
762023.3440474704653-3.34404747046527
772123.1826933791399-2.18269337913985
782223.0773759427267-1.07737594272675
792323.0253913289347-0.0253913289346634
802523.02416616845351.97583383154645
812523.11950239657681.88049760342322
821723.2102385433330-6.21023854333303
831922.9105874750023-3.91058747500229
842522.72189718452332.27810281547668
851922.8318182346829-3.83181823468293
862022.6469286495792-2.64692864957922
872622.51921133371333.48078866628672
882322.68716334315840.312836656841597
892722.70225806742414.29774193257593
901722.9096290005243-5.90962900052433
911722.6244826843097-5.62448268430971
921922.3530950019524-3.35309500195241
931722.1913043569492-5.19130435694922
942221.94081802124160.0591819787584171
952121.9436736189835-0.943673618983464
963221.898140294279310.1018597057207
972122.3855665069481-1.38556650694806
982122.3187113481400-1.31871134814003
991822.2550820267327-4.25508202673268
1001822.049769482577-4.04976948257701
1012321.8543635020371.14563649796301
1021921.9096417652048-2.90964176520481
1032021.7692482429078-1.76924824290777
1042121.6838800042435-0.683880004243452
1052021.6508820167343-1.65088201673433
1061721.5712250830190-4.57122508301903
1071821.3506582770664-3.3506582770664
1081921.1889852068086-2.18898520680857
1092221.08336418255910.916635817440902
1101521.1275929026074-6.12759290260742
1111420.8319295803775-6.8319295803775
1121820.5022812128896-2.50228121288955
1132420.38154330025153.61845669974848
1143520.556137948785914.4438620512141
1152921.25307070978507.74692929021497
1162121.6268688532698-0.626868853269823
1172521.59662171859463.40337828140542
1182021.7608385889838-1.76083858898382
1192221.67587612567980.324123874320179
1201321.691515471018-8.69151547101798
1212621.2721399706844.72786002931599
1221721.5002645908282-4.50026459082821
1232521.28312170927813.71687829072187
1242021.4624653114439-1.46246531144392
1251921.3918996979151-2.39189969791506
1262121.2764878188352-0.276487818835207
1272221.26314696731780.73685303268222
1282421.29870096365872.70129903634129
1292121.4290417124838-0.429041712483798
1302621.40833996220374.59166003779635
1312421.62989277795092.37010722204915
1321621.7442531453006-5.74425314530065
1332321.46708640206831.53291359793169
1341821.5410512254924-3.54105122549237
1351621.3701914790706-5.37019147907059
1362621.11107363639584.88892636360417
1371921.3469698902389-2.34696989023892
1382121.2337259254471-0.233725925447079
1392121.2224483838892-0.222448383889194
1402221.21171499652960.788285003470364
1412321.24975064391921.75024935608085
1422921.33420216469987.66579783530024
1432121.7040856232701-0.70408562327015
1442121.6701126916771-0.670112691677094
1452321.63777899264741.36222100735265
1462721.70350770456525.29649229543481
1472521.95906947786233.04093052213765
1482122.1057978319054-1.10579783190542
1491022.0524418296559-12.0524418296559
1502021.4708978124574-1.47089781245744
1512621.39992532117024.60007467882977
1522421.62188415291142.37811584708855
1532921.73663094552217.26336905447793
1541922.0870967580135-3.08709675801349
1552421.93814083061642.06185916938357
1561922.0376278790675-3.03762787906751
1572421.89105888130642.10894111869361
1582221.99281768732550.00718231267454428
1591721.9931642420755-4.99316424207549


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
16021.752238392118413.397568720435930.1069080638009
16121.752238392118413.387848819779130.1166279644577
16221.752238392118413.378140201101830.126336583135
16321.752238392118413.368442825209830.1360339590270
16421.752238392118413.358756653135230.1457201311016
16521.752238392118413.349081646134730.1553951381022
16621.752238392118413.339417765687530.1650590185493
16721.752238392118413.329764973494430.1747118107425
16821.752238392118413.320123231474730.1843535527621
16921.752238392118413.310492501765830.193984282471
17021.752238392118413.300872746720430.2036040375164
17121.752238392118413.291263928905430.2132128553314
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/12msb1291119324.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/12msb1291119324.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/22msb1291119324.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/22msb1291119324.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/32msb1291119324.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291119290sl31sp861zsq1fz/32msb1291119324.ps (open in new window)


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