Home » date » 2011 » May » 18 »

Exponential Smoothing Australische chocoladeproductie

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 18 May 2011 14:38:47 +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/18/t1305729338xwigcsb4uebf70m.htm/, Retrieved Wed, 18 May 2011 16:35:41 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7992 6114 5965 8460 8323 6333 5675 10090 9035 6976 6459 10896 9978 7466 7199 10977 9412 6341 7784 11911 10079 7721 8197 12038 11963 8033 8618 13625 11734 8895 8727 13974 12583 9525 9662 15490 13839 10047 9788 14978 13045 9489 8741 13149 14106 9998 10034 15081 13266 9997 9027 14324 13149 11209 10332 15354 13800 11786 10550 16114 13255 11403 10269 14009 15847 12967 11328 15814 18626 13219 13818 18062 15722 12111 11702 15589 14852 13612 12380 15501 16322 12157 11124 14621 14035 11159 10944 15824 14378 11816 12233 17344 16812 12181 13275 18458 17375 14609 13323 18327 16053 15070 13806 18245 17461 14999 16022 20564 16372 15854 15115 18207 19488 16644 18631 21093 22212 19762 19403 21227 23176 20823 20647 21336 23458 22003 21647 26416 25226 24723 19945 24040 25034 24885 21168 23541 26019 24657 20599 24534 28717 26138 22968 26577 28660 30430 27356 25454 30194
 
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' @ www.wessa.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.287307754775613
beta0.027589438558662
gamma0.712133275623715


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1399789386.09748931624591.902510683758
1474666998.52798744672467.472012553277
1571996868.28913007211330.710869927892
161097710791.2125017103185.787498289668
1794129302.05427242776109.945727572243
1863416269.4359499776871.5640500223217
1977847019.77420446043764.225795539574
201191111648.677307642262.32269235799
211007910696.7924331671-617.792433167131
2277218434.6049610162-713.6049610162
2381977687.27496962728509.72503037272
241203812353.9992549104-315.999254910381
251196311683.8911152053279.108884794712
2680339153.87106686948-1120.87106686948
2786188495.85796346025122.142036539752
281362512281.63108433591343.36891566409
291173411092.0650330551641.93496694486
3088958202.53049305412692.469506945883
3187279497.4483855628-770.448385562791
321397413433.1718175674540.828182432624
331258312119.3008181279463.699181872054
34952510132.4625362716-607.462536271631
35966210050.6045645543-388.604564554298
361549014047.12718121261442.87281878738
371383914205.3117263854-366.311726385366
381004710795.1256242294-748.125624229424
39978810893.8312855813-1105.83128558134
401497814955.633327305122.3666726949014
411304513029.085499249215.9145007507577
4294899978.9285532754-489.9285532754
43874110175.8746426824-1434.87464268243
441314914565.1689897207-1416.16898972072
451410612613.33074236091492.66925763915
46999810350.0697768555-352.069776855466
471003410426.2848676984-392.284867698396
481508115324.8734089377-243.873408937714
491326614040.4437919933-774.443791993306
50999710276.2002518646-279.200251864599
51902710288.7865885669-1261.78658856691
521432414837.8434696582-513.843469658186
531314912709.1788669694439.821133030637
54112099482.657520001421726.34247999858
55103329812.9082447306519.091755269395
561535414764.7174620363589.28253796366
571380014872.9170739222-1072.9170739222
581178610923.470879416862.529120583973
591055011325.0583832429-775.058383242913
601611416182.7817247224-68.7817247224102
611325514674.5488790263-1419.54887902626
621140310966.3729404933436.627059506718
631026910681.6616793044-412.661679304374
641400915856.7479589871-1847.74795898709
651584713820.74828082492026.25171917507
661296711707.43727099211259.56272900793
671132811291.626290892136.3737091079402
681581416137.3105341784-323.310534178414
691862615129.4016042333496.59839576697
701321913501.0400372728-282.040037272765
711381812759.51028370411058.48971629593
721806218533.8722073789-471.872207378889
731572216252.4638947119-530.463894711938
741211113777.0377982419-1666.03779824192
751170212475.7468122093-773.746812209287
761558916834.4496112836-1245.44961128355
771485216958.1584988835-2106.15849888353
781361213256.1839920238355.816007976216
791238011940.4775718912439.52242810879
801550116703.1993805035-1202.1993805035
811632217358.2987389232-1036.29873892317
821215712450.6849102469-293.684910246871
831112412326.9423933936-1202.94239339356
841462116597.715629711-1976.71562971105
851403513765.1343352184269.86566478157
861115910860.5704800092298.429519990841
871094410509.3852502924434.614749707562
881582414918.2667222788905.733277721189
891437815182.6528711644-804.652871164444
901181613073.9210451995-1257.92104519953
911223311294.0470992906938.952900709393
921734415327.97981121032016.02018878971
931681216978.3549851478-166.354985147769
941218112690.9351862109-509.935186210945
951327512035.22326432931239.77673567068
961845816626.09480075991831.90519924012
971737516069.16176031211305.83823968788
981460913526.14009314631082.8599068537
991332313525.0662196025-202.066219602486
1001832718040.7053022856286.294697714413
1011605317304.709722194-1251.70972219404
1021507014879.6065351839190.39346481611
1031380614684.4279822451-878.427982245119
1041824518782.0531569268-537.053156926835
1051746118610.2423950517-1149.24239505168
1061499913877.21928057821121.78071942182
1071602214602.4463591791419.55364082098
1082056419571.0181028372992.981897162761
1091637218524.9351343924-2152.93513439244
1101585414866.4709132621987.52908673793
1111511514176.5696170696938.430382930368
1121820719267.4840847362-1060.48408473621
1131948817353.02995130072134.97004869934
1141664416648.7721840988-4.77218409878697
1151863115869.42581613382761.57418386615
1162109321229.3292296624-136.329229662362
1172221220908.3392052141303.66079478602
1181976218098.50931026571663.49068973432
1191940319200.6355792502202.364420749836
1202122723663.4848939663-2436.48489396629
1212317620068.73639828413107.26360171587
1222082319590.44953671191232.5504632881
1232064719022.9636403811624.03635961902
1242133623378.7178180538-2042.71781805381
1252345822878.4418534809579.558146519143
1262200320703.57234982221299.4276501778
1272164721775.5371092259-128.537109225865
1282641624883.99736404011532.00263595991
1292522625836.0836874781-610.08368747808
1302472322706.78654333132016.21345666872
1311994523219.2218185703-3274.22181857028
1322404025366.9002791367-1326.90027913674
1332503424936.347791756397.6522082436677
1342488522649.81816215192235.1818378481
1352116822584.953695019-1416.95369501903
1362354124197.7744690695-656.774469069544
1372601925429.3264840353589.673515964714
1382465723625.54719775991031.45280224012
1392059923896.4862279825-3297.48622798252
1402453426912.8436135164-2378.8436135164
1412871725598.72042832443118.27957167564
1422613824847.67791962531290.32208037466
1432296822434.8780834207533.121916579283
1442657726663.3267530722-86.326753072226
1452866027320.60314212771339.39685787234
1463043026493.94036639093936.05963360905
1472735625095.89799922042260.10200077961
1482545428211.8492078771-2757.84920787708
1493019429516.5723603997677.427639600257


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
15028007.132310946625448.77962170430565.4850001893
15125821.386218169623153.865392435428488.9070439039
15230314.249173975627536.26217284433092.2361751073
15332555.279469974529665.534802720335445.0241372287
15430037.594938430427034.808359716133040.3815171446
15526916.554959424823799.450011595730033.6599072539
15630720.000361735727487.308791461133952.6919320102
15732168.92027065528819.382343311235518.4581979988
15832307.951558052928840.316288661335775.5868274446
15928929.87110064925342.89641658132516.845784717
16028833.216558311325125.669406117632540.763710505
16132679.173371769628849.829778215936508.5169653234
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305729338xwigcsb4uebf70m/10q831305729524.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305729338xwigcsb4uebf70m/10q831305729524.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305729338xwigcsb4uebf70m/2vza11305729524.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305729338xwigcsb4uebf70m/2vza11305729524.ps (open in new window)


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