Home » date » 2010 » Dec » 07 »

Paper Triple 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, 07 Dec 2010 17:44:26 +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/Dec/07/t12917437465j7t1qir1iq2mgf.htm/, Retrieved Tue, 07 Dec 2010 18:42:30 +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/Dec/07/t12917437465j7t1qir1iq2mgf.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 «
17.848 19.592 21.092 20.899 25.890 24.965 22.225 20.977 22.897 22.785 22.769 19.637 20.203 20.450 23.083 21.738 26.766 25.280 22.574 22.729 21.378 22.902 24.989 21.116 15.169 15.846 20.927 18.273 22.538 15.596 14.034 11.366 14.861 15.149 13.577 13.026 13.190 13.196 15.826 14.733 16.307 15.703 14.589 12.043 15.057 14.053 12.698 10.888 10.045 11.549 13.767 12.434 13.116 14.211 12.266 12.602 15.714 13.742 12.745 10.491 10.057 10.900 11.771 11.992 11.933 14.504 11.727 11.477 13.578 11.555 11.846 11.397 10.066 10.269 14.279 13.870 13.695 14.420 11.424 9.704 12.464 14.301 13.464 9.893 11.572 12.380 16.692 16.052 16.459 14.761 13.654 13.480 18.068 16.560 14.530 10.650 11.651 13.735 13.360 17.818 20.613 16.231 13.862 12.004 17.734 15.034 12.609 12.320 10.833 11.350 13.648 14.890 16.325 18.045 15.616 11.926 16.855 15.083 12.520 12.355
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.473971450972799
beta0.0065615366876307
gamma0.328170676425391


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1320.20319.75205021367520.450949786324788
1420.4520.18780332850030.262196671499719
1523.08322.99874161563290.0842583843670681
1621.73821.8157292766096-0.0777292766096025
1726.76626.7729060076284-0.00690600762840177
1825.2825.19287946865590.0871205313440981
1922.57423.0523981013263-0.478398101326281
2022.72921.5059309047481.22306909525199
2121.37823.9528809725080-2.57488097250796
2222.90222.56049497152850.341505028471538
2324.98922.69391308253532.29508691746474
2421.11620.66624424625030.449755753749734
2515.16921.5631443600254-6.39414436002542
2615.84618.7070404533627-2.86104045336273
2720.92719.98232941630290.944670583697079
2818.27319.1572331801393-0.884233180139319
2922.53823.7199366443331-1.18193664433310
3015.59621.5711168793076-5.97511687930761
3114.03416.4127369567014-2.37873695670139
3211.36614.2064255749357-2.84042557493574
3314.86114.00627126565170.854728734348273
3415.14914.68804112721390.46095887278606
3513.57715.1608610980324-1.58386109803237
3613.02610.90960682215842.11639317784157
3713.1911.35366519876901.83633480123103
3813.19612.97274235654620.223257643453822
3915.82616.340720977083-0.514720977083002
4014.73314.47750907375170.255490926248314
4116.30719.5018747509537-3.19487475095367
4215.70315.53814379676950.164856203230496
4314.58913.89646084674480.69253915325517
4412.04313.0613905059975-1.01839050599748
4515.05714.36362306923430.693376930765746
4614.05314.9013499437283-0.84834994372828
4712.69814.3969400845724-1.69894008457240
4810.88810.72588469416540.162115305834634
4910.04510.1852264162700-0.140226416269973
5011.54910.57276295589040.976237044109611
5113.76714.1563327990870-0.389332799086965
5212.43412.4719963747322-0.0379963747322165
5313.11616.7472035154773-3.63120351547726
5414.21113.14086181187641.07013818812356
5512.26612.00638035504540.259619644954562
5612.60210.65645052964721.94554947035279
5715.71413.65390625116712.06009374883288
5813.74214.5724271360866-0.830427136086591
5912.74513.9288861337279-1.1838861337279
6010.49110.8240310030629-0.333031003062949
6110.0579.995765939881310.0612340601186876
6210.910.67141824887540.228581751124628
6311.77113.6624585669115-1.89145856691147
6411.99211.31970819580250.672291804197467
6511.93315.3063961280774-3.37339612807743
6614.50412.62973829881721.87426170118276
6711.72711.7348830753153-0.00788307531533405
6811.47710.54678206802980.930217931970176
6913.57813.07719563553270.500804364467331
7011.55512.7472486974918-1.19224869749179
7111.84611.8596459251731-0.0136459251731296
7211.3979.448419298881161.94858070111884
7310.0669.76881702994870.297182970051301
7410.26910.5851080689890-0.316108068989035
7514.27912.95022740953531.32877259046466
7613.8712.58458539064731.28541460935272
7713.69516.1736250841754-2.47862508417542
7814.4214.8398787055740-0.419878705573966
7911.42412.5385497457272-1.11454974572725
809.70410.9902129166719-1.28621291667189
8112.46412.39143093018730.0725690698126975
8214.30111.56037179792252.7406282020775
8313.46412.74665642600350.71734357399654
849.89311.0292620950649-1.13626209506491
8511.5729.601493094083381.97050690591662
8612.3811.10926199098361.27073800901636
8716.69214.51962794755162.17237205244843
8816.05214.55814262982841.49385737017159
8916.45917.6086504737641-1.14965047376408
9014.76117.2767763721974-2.51577637219739
9113.65413.8721952174728-0.218195217472841
9213.4812.73192130877740.748078691222647
9318.06815.35107491751412.71692508248591
9416.5616.26134516408430.298654835915684
9514.5315.9607364858548-1.43073648585482
9610.6512.9183565913382-2.26835659133818
9711.65111.49992470226470.151075297735261
9813.73512.02848237627841.70651762372159
9913.3615.8063437290606-2.44634372906059
10017.81813.52952660924544.28847339075461
10120.61317.44789032581883.16510967418117
10216.23118.9383066349928-2.70730663499282
10313.86215.8520225188341-1.99002251883408
10412.00414.0456998503392-2.04169985033923
10517.73415.68071993957482.05328006042518
10615.03415.8551839135026-0.821183913502637
10712.60914.7179826843134-2.10898268431336
10812.3211.20014708696071.11985291303927
10910.83311.8064362583755-0.97343625837554
11011.3512.0681687829837-0.71816878298368
11113.64813.9700103316430-0.322010331642952
11214.8913.85939440912621.03060559087377
11316.32516.02628238417790.298717615822106
11418.04515.12204146269112.92295853730894
11515.61614.82334425918500.792655740815043
11611.92614.3308440601420-2.40484406014198
11716.85516.50335280686800.351647193131967
11815.08315.3724927828561-0.289492782856074
11912.5214.2640544045649-1.74405440456491
12012.35511.47676944261250.878230557387475


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
12111.60662692087448.1445437707280815.0687100710206
12212.37628284319778.5403842456087716.2121814407867
12314.691613392090310.510955555354118.8722712288265
12414.972830642170910.469765321047719.4758959632940
12516.527403338478711.719759224836321.3350474521211
12615.936171086437610.838557358778521.0337848140966
12713.87681362277488.5014531211549719.2521741243946
12812.44666355492646.8039533728907318.0893737369621
12916.232345548060610.331249836094722.1334412600265
13014.82054361740458.668878022664120.9722092121449
13113.59552703805667.2001703616247519.9908837144884
13212.09028291892645.4573382676628418.7232275701900
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/155fr1291743862.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/155fr1291743862.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/2yxxu1291743862.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/2yxxu1291743862.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/3yxxu1291743862.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t12917437465j7t1qir1iq2mgf/3yxxu1291743862.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