Home » date » 2010 » Jun » 06 »

Jeroen Cornelissen - aantal liter rose wijn australie - opgave 10

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 06 Jun 2010 19:36: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/2010/Jun/06/t1275853150fz9430ezsvirhou.htm/, Retrieved Sun, 06 Jun 2010 21:39:11 +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/2010/Jun/06/t1275853150fz9430ezsvirhou.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:
KDGP2W62
 
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
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.108626533512383
beta0.0443274768222541
gamma0.509445657854061


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13126130.144329985792-4.1443299857923
14129126.4993507083932.50064929160706
15124122.3539059983961.64609400160394
169798.6534914049896-1.65349140498957
17102103.969081120937-1.96908112093722
18127130.956560413493-3.95656041349349
19222124.11871993271497.8812800672863
20214147.22548008147466.7745199185265
21118247.091306508711-129.091306508711
22141168.457612580986-27.4576125809861
23154170.506386760306-16.5063867603065
24226306.518830078138-80.518830078138
2589136.515306433849-47.5153064338487
2677130.979637840337-53.9796378403368
2782119.99308717122-37.9930871712199
289791.54227522582815.45772477417189
2912796.718447505504830.2815524944952
30121125.17546301954-4.17546301954009
31117159.414068500372-42.4140685003724
32117150.982093862743-33.982093862743
33106145.852715403994-39.8527154039943
34112125.13574711416-13.1357471141602
35134130.4698177622513.53018223774916
36169216.267655581326-47.2676555813257
377591.3833731286713-16.3833731286713
3810885.235504507527522.7644954924725
3911588.579655485512626.4203445144874
408587.000067773792-2.00006777379201
41101100.6650606590820.334939340918126
42108108.693814580134-0.693814580133548
43109122.963372933244-13.9633729332437
44124120.7257907847153.2742092152849
45105116.587918876876-11.5879188768756
4695111.180723765643-16.180723765643
47135122.58639260309512.4136073969049
48164181.632752454893-17.6327524548934
498879.38573060265528.61426939734481
508593.27617160819-8.27617160819004
5111294.360154057379317.6398459426207
528780.03643672098156.96356327901849
539194.8042923777285-3.80429237772853
5487101.359918943627-14.3599189436274
5587107.235546805581-20.2355468055815
56142111.304688060330.6953119396997
5795104.007214887084-9.00721488708395
5810897.029831151298610.9701688487014
59139123.42793692950215.5720630704977
60159167.740598016765-8.74059801676458
616180.9671572713862-19.9671572713862
628283.650412217381-1.65041221738105
6312496.243361930684727.7566380693153
649379.176118792421213.8238812075788
6510889.495911297737218.5040887022628
667593.735469703547-18.7354697035471
678796.3595655879282-9.35956558792824
68103124.456413412998-21.4564134129979
699094.8507884972093-4.85078849720929
7010897.198695949122210.8013040508778
71123124.301709942004-1.30170994200428
72129153.693016243385-24.6930162433847
735766.3657330346879-9.36573303468786
746577.6301027164011-12.6301027164011
756799.8318070731925-32.8318070731925
767173.066001855823-2.06600185582302
777681.3460315251906-5.34603152519055
786768.2132018611001-1.21320186110015
7911074.821759913643335.1782400863567
8011898.497707328111119.5022926718889
819982.785497725281516.2145022747185
828593.608001161439-8.60800116143893
83107110.829270887726-3.82927088772593
84141126.90837643705614.0916235629441
855856.98838834819951.01161165180054
866567.1337198501299-2.13371985012989
877080.1455610066491-10.1455610066491
888670.255815542224415.7441844577756
899379.287753882876313.7122461171237
907470.14644164789413.85355835210588
918794.6207707691822-7.6207707691822
9273106.536757051462-33.5367570514619
9310184.589163260495516.4108367395045
9410084.258256648361615.7417433516384
9596105.809380582357-9.80938058235658
96157128.5708133634828.4291866365201
976356.19389866403766.80610133596241
9811565.598409782669949.4015902173301
997081.7385300934878-11.7385300934878
1006684.0114648703145-18.0114648703145
1016788.926084861005-21.926084861005
1028371.635902940453211.3640970595468
1037992.0445101526066-13.0445101526066
1047791.2526370269216-14.2526370269216
10510294.30967723491357.69032276508651
10611692.772591421999423.2274085780006
107100103.960138512117-3.96013851211661
108135146.181013095457-11.1810130954566
1097159.495581056712411.5044189432876
1106087.5332581511854-27.5332581511854
1118968.850394655884620.1496053441154
1127471.42610976608912.57389023391092
1137376.3830176289111-3.38301762891111
1149176.215318441270514.7846815587295
1158685.90019760165330.0998023983467107
1167486.0419338854185-12.0419338854185
1178799.7408559627166-12.7408559627166
11887102.851090482-15.8510904819999
11910997.50134769256611.4986523074339
120137136.8908541559090.109145844090847
1214363.2410913608103-20.2410913608103
1226968.84216962300880.157830376991228
1237374.2204821720876-1.22048217208759
1247766.901395653839210.0986043461608
1256969.7004023325345-0.700402332534523
1267677.2606959534877-1.26069595348767
1277878.193196932778-0.193196932777923
1287072.994965168685-2.99496516868504
1298385.8614307729271-2.86143077292714
1306588.1199321684824-23.1199321684824
13111093.32520274471916.674797255281
132132125.0289262811396.97107371886148
1335449.244190685854.75580931414999
1345566.15440499204-11.15440499204
1356669.3587362360089-3.35873623600891
1366566.9494609232758-1.94946092327578
1376063.6802317161635-3.68023171616355
1386569.8758745470156-4.87587454701564
1399670.586311185214825.4136888147852
1405567.2511047857573-12.2511047857573
1417178.0693430549239-7.06934305492388
1426370.8236381507021-7.82363815070211
1437493.7911522141888-19.7911522141888
144106114.027701754812-8.02770175481167
1453444.921607802382-10.921607802382
1464751.0879139381878-4.08791393818777
1475657.0612293037141-1.0612293037141
1485355.4655056047716-2.46550560477162
1495351.68444092881121.31555907118882
1505556.6164283593204-1.61642835932037
1516768.3431795382831-1.34317953828311
1525249.12027501129362.8797249887064
1534660.9275607944337-14.9275607944337
1545153.4380160602442-2.43801606024417
1555867.2627852423019-9.26278524230189
1569187.87873407501513.12126592498485
1573331.88783933253841.11216066746162
1584040.4399316160069-0.439931616006881
1594646.6411462022361-0.641146202236115
1604544.62361084141070.376389158589269
1614142.9994463968815-1.99944639688147
1625545.38589404400489.61410595599518
1635756.26491988631830.735080113681725
1645441.897813523252312.1021864767477
1654645.87260192594330.127398074056664
1665245.694999402656.30500059735003
1674856.1587551112398-8.15875511123978
1687779.6008903112322-2.60089031123218
1693028.6738099557361.32619004426398
1703535.6824320351885-0.682432035188498
1714241.08071773496210.919282265037879
1724839.88511806952528.1148819304748
1734438.34112366275995.65887633724012
1744546.3411261013661-1.34112610136611


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
17551.561923500914127.347979934657875.7758670671703
17643.036348647446418.473208624844767.5994886700481
17740.579421276220315.580379036757265.5784635156834
17842.84703523837517.125668472996268.5684020037539
17945.54583992420818.925711020983172.165968827433
18069.255267280953838.3158393108681100.194695251039
18125.94959929145950.50253482918483251.3966637537341
18231.1951208769254.3668139666218358.0234277872281
18336.67276199237777.9561734151589265.3893505695965
18438.33502527168198.3080577390495168.3619928043143
18535.19544430782915.177249799904265.213638815754
18638.66581106238060.16906206766335477.1625600570979
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/1pe0a1275853003.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/1pe0a1275853003.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/2znhv1275853003.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/2znhv1275853003.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/3znhv1275853003.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275853150fz9430ezsvirhou/3znhv1275853003.ps (open in new window)


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