Home » date » 2011 » May » 20 »

Exonential Smoothing - Verkoop australische rosewijn- Sophie Rousseau

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 May 2011 05:27:09 +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/20/t13058690932ond23u942xt926.htm/, Retrieved Fri, 20 May 2011 07:24:56 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
112 118 129 99 116 168 118 129 205 147 150 267 126 129 124 97 102 127 222 214 118 141 154 226 89 77 82 97 127 121 117 117 106 112 134 169 75 108 115 85 101 108 109 124 105 95 135 164 88 85 112 87 91 87 87 142 95 108 139 159 61 82 124 93 108 75 87 103 90 108 123 129 57 65 67 71 76 67 110 118 99 85 107 141 58 65 70 86 93 74 87 73 101 100 96 157 63 115 70 66 67 83 79 77 102 116 100 135 71 60 89 74 73 91 86 74 87 87 109 137 43 69 73 77 69 76 78 70 83 65 110 132 54 55 66 65 60 65 96 55 71 63 74 106 34 47 56 53 53 55 67 52 46 51 58 91 33 40 46 45 41 55 57 54 46 52 48 77 30 35 42 48 44 45 0 0 46 51 63 84 30 39 45 52 28 40 62
 
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.155095379150641
beta0.13725398518357
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31291245
499130.881914190113-31.8819141901131
5116131.364928978027-15.3649289780271
6168134.08257155614433.9174284438556
7118145.165695907088-27.1656959070881
8129146.196821292765-17.1968212927654
9205148.40799644045856.5920035595423
10147163.268177303956-16.2681773039558
11150166.481772636165-16.4817726361653
12267169.31138526221197.6886147377888
13126191.927839774288-65.9278397742877
14129187.764702060816-58.7647020608163
15124183.46158272868-59.46158272868
1697177.784594428339-80.784594428339
17102167.080806812423-65.0808068124227
18127157.427199092523-30.4271990925232
19222152.50048805160769.4995119483926
20214164.55141614908349.4485838509167
21118174.545172645963-56.545172645963
22141166.896084254248-25.8960842542484
23154163.449266018761-9.44926601876057
24226162.35212243158363.6478775684174
2589173.946909619913-84.9469096199135
2677160.687028104626-83.6870281046255
2782145.84106422174-63.8410642217403
2897132.714103602917-35.7141036029173
29127123.1892420940293.81075790597107
30121119.8756253189331.12437468106735
31117116.1692979988060.83070200119407
32117112.4351069377334.56489306226665
33106109.377246628417-3.37724662841678
34112105.0157041538036.98429584619664
35134102.40986694845131.5901330515488
36169104.29275505187764.7072449481226
3775112.689406996829-37.6894069968294
38108104.4024996832683.59750031673163
39115102.59558255349612.4044174465042
4085102.418636101337-17.418636101337
4110197.24547335213273.75452664786731
4210895.436094638934612.5639053610654
4310995.260463475986813.7395365240132
4412495.559647092672728.4403529073273
4510598.7442822429726.25571775702798
469598.6213513277845-3.6213513277845
4713596.889443270539738.1105567294603
48164102.4412382250861.5587617749203
4988112.940171041041-24.9401710410411
5085109.492606210489-24.4926062104887
51112105.5930712696526.40692873034806
5287106.622298647886-19.6222986478857
5391103.196804261453-12.1968042614535
5487100.663330773181-13.6633307731806
558797.6115482076485-10.6115482076485
5614294.807190120164647.1928098798354
5795101.972635866189-6.97263586618871
58108100.5888415681397.41115843186108
59139101.59367203068237.406327969318
60159108.04690035352350.9530996464766
6161117.685832379025-56.6858323790253
6282109.423766105269-27.4237661052693
63124105.11632880189218.8836711981081
6493108.392946418558-15.3929464185582
65108106.0257423161621.97425768383771
6675106.394138248061-31.3941382480615
6787100.918948734477-13.9189487344771
6810397.8577813155055.14221868449495
699097.8623776531892-7.86237765318921
7010895.68265115025112.3173488497491
7112396.89491203749326.105087962507
72129100.8012985364128.1987014635903
7357105.632673512721-48.6326735127214
746597.5125912191803-32.5125912191803
756791.2005487524956-24.2005487524956
767185.6624974774495-14.6624974774495
777681.2916265692531-5.29162656925311
786778.2614891545763-11.2614891545763
7911074.065725151536335.9342748484637
8011877.954755458783140.0452445412169
819983.333839665393915.6661603346061
828585.2653333074398-0.265333307439761
8310784.72027763076722.279722369233
8414188.146134585854452.8538654141456
855897.4390243349273-39.4390243349273
866591.5781567469786-26.5781567469786
877087.1461688751446-17.1461688751446
888683.81204037369522.18795962630483
899383.52312196328389.47687803671619
907484.5664197687747-10.5664197687747
918782.27616247544184.72383752455816
927382.4579119313513-9.45791193135126
9310180.238802667123520.7611973328765
9410083.148490746182616.8515092538174
959685.810530080430710.1894699195693
9615787.656225820057369.3437741799427
9763100.152633548222-37.1526335482224
9811595.341055382962919.6589446170371
997099.7591794483923-29.7591794483923
1006695.879283516409-29.8792835164089
1016791.3447059794791-24.3447059794791
1028387.1502789167894-4.15027891678942
1037985.9995652843691-6.99956528436913
1047784.2579375443475-7.25793754434754
10510282.321734413731919.6782655862681
10611684.982112189877431.0178878101226
10710090.06150498531039.93849501468965
10813592.08314666674542.916853333255
10971100.13317008561-29.1331700856098
1106096.3883966445052-36.3883966445052
1118990.7437545924378-1.74375459243777
1127490.4352163308046-16.4352163308046
1137387.4982362488881-14.4982362488881
1149184.55304221931926.44695778068076
1158684.99359034775571.00640965224426
1167484.6117585055056-10.6117585055056
1178782.2021050950484.79789490495205
1188782.28455271332654.71544728667352
11910982.45459297716626.5454070228339
12013786.575443383367350.4245566166327
1214395.4732502247282-52.4732502247282
1226987.2950605442206-18.2950605442206
1237384.0282948019983-11.0282948019983
1247781.6538064757393-4.65380647573929
1256980.1689041193823-11.1689041193823
1267677.4357826366945-1.43578263669451
1277876.18165915685571.81834084314427
1287075.4709430478392-5.47094304783924
1298373.51323021489229.48676978510784
1306574.0773387466259-9.07733874662586
13111071.569006351800838.4309936481992
13213277.247094979261354.7529050207387
1335486.6221868532595-32.6221868532595
1345581.751362263785-26.751362263785
1356677.221606915982-11.2216069159821
1366574.8615653662618-9.8615653662618
1376072.5025323092084-12.5025323092084
1386569.4677503404864-4.46775034048645
1399667.584018875972828.4159811240272
1405571.4053062403205-16.4053062403205
1417167.92579176500183.07420823499822
1426367.5329020542694-4.53290205426944
1437465.86369072293148.1363092770686
14410666.332616875672239.6673831243278
1453472.5362846685988-38.5362846685988
1464765.7905853792488-18.7905853792488
1475661.7073489943339-5.70734899433391
1485359.5317671600699-6.53176716006992
1495357.0892771530311-4.08927715303106
1505554.93855574049430.0614442595057341
1516753.432900031330713.5670999686693
1525254.310718197653-2.310718197653
1534652.6767708167873-6.67677081678733
1545150.22353736540540.776462634594637
1555848.94279489846339.05720510153672
1569149.139162205174541.8608377948255
1573355.3143322248737-22.3143322248737
1584051.0612144888181-11.0612144888181
1594648.317938166158-2.31793816615794
1604546.8813605863997-1.88136058639971
1614145.4724447857964-4.4724447857964
1625543.566456814441611.4335431855584
1635744.370805158593212.6291948414068
1645445.62943701541348.37056298458665
1654646.4057627650067-0.405762765006742
1665245.81228328674566.18771671325445
1674846.37314277313211.62685722686787
1687746.261265684532330.7387343154677
1693051.3188557532931-21.3188557532931
1703547.8487298876248-12.8487298876248
1714245.4187645955059-3.41876459550591
1724844.37856653502583.6214334649742
1734444.5073617779747-0.507361777974722
1744543.98499951430131.01500048569874
175043.7203553842112-43.7203553842112
176035.5867690069288-35.5867690069288
1774627.957112411063718.0428875889363
1785129.029254966134321.9707450338657
1796331.178291392171131.8217086078289
1808435.532570061936348.4674299380637
1813043.5002716140874-13.5002716140874
1823941.5696825221683-2.56968252216831
1834541.27967527879563.72032472120442
1845242.04441535318719.95558464681292
1852843.9881445285592-15.9881445285592
1864041.5677742218044-1.56777422180443
1876241.350562786001220.6494372139988


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
18845.0187122269264-13.6151969793061103.652621433159
18945.4842293738992-14.054771201188105.023229948986
19045.9497465208719-14.7068682367719106.606361278516
19146.4152636678446-15.5851244221473108.415651757837
19246.8807808148173-16.699704078044110.461265707679
19347.3462979617901-18.0572995152328112.749895438813
19447.8118151087628-19.6613015812104115.284931798736
19548.2773322557355-21.5121127868512118.066777298322
19648.7428494027083-23.6075610646198121.093259870036
19749.208366549681-25.9433671864647124.360100285827
19849.6738836966537-28.5136219995843127.861389392892
19950.1394008436264-31.311238359003131.590040046256
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t13058690932ond23u942xt926/1631w1305869226.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058690932ond23u942xt926/1631w1305869226.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058690932ond23u942xt926/24feq1305869226.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058690932ond23u942xt926/24feq1305869226.ps (open in new window)


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