Home » date » 2010 » Dec » 29 »

exponential smoothing consumptieprijs van rundsvlees in Denemarken

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 29 Dec 2010 14:15:21 +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/29/t1293631995nuc7pvnv4xaxiht.htm/, Retrieved Wed, 29 Dec 2010 15:13:19 +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/29/t1293631995nuc7pvnv4xaxiht.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,4 96,5 97,4 99,2 100,8 101,8 102,7 100 100,8 101,7 99 101,7 100,2 101,2 99,5 100,8 100,7 99,5 99,4 101,1 97,2 98,1 97,8 95,5 96,3 93,6 96,7 95,1 97,7 96,5 98,1 97,3 97 93,7 95,6 94,6 95,1 94,5 93,6 92,1 95,9 98,1 98,2 96,2 94,1 95 93,4 95,4 93,5 94,5 94,3 95,7 98,4 99,4 99,2 99 99,4 99,3 98,6 98,7 96 98,7 100,1 100 101,5 101,5 103,8 104,1 101 104,9 104,4 105,6 103,4 101,7 103,5 101,2 105,4 105,4 108,6 110,6 110,2 106,2 108,6 107,5 106,9 108,4 109,9 108,6 106,5 105,7 105,6 104,2 105,1 102,7 108,3 104,2 105,4 104,6 106,4 111 111,7 113,8 115,9 117,3 113,6 113,6 114,6 113,2 112,8 109,6 111,1 109,7 113 111 113,3 111,8 107,2 106,4 110 108,2
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.611306563466685
beta0.0042163536530995
gamma0.543456035858712


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13100.2100.0737589538430.126241046156537
14101.2101.1759252431100.0240747568902009
1599.599.5283757246126-0.0283757246126015
16100.8101.046690931865-0.246690931865302
17100.7100.930184121145-0.23018412114466
1899.599.8294268455624-0.329426845562381
1999.4102.179676415538-2.77967641553784
20101.197.49959180152343.60040819847657
2197.2100.148989056564-2.94898905656382
2298.198.9982205173613-0.898220517361324
2397.895.70146829911332.09853170088667
2495.599.657109506434-4.15710950643403
2596.395.85027358021020.449726419789755
2693.697.071631778231-3.47163177823107
2796.793.35295407301923.34704592698077
2895.196.8104298262166-1.71042982621664
2997.795.77961338467521.92038661532484
3096.595.99477527094510.505224729054873
3198.198.2492440286075-0.149244028607541
3297.396.53218346037460.767816539625358
339796.07490072276740.925099277232562
3493.797.7110975407261-4.01109754072614
3595.693.19260326286812.40739673713188
3694.695.9451895832956-1.34518958329562
3795.194.83198693964780.268013060352189
3894.595.0941185939793-0.594118593979275
3993.694.565470387543-0.965470387542936
4092.194.3001392730265-2.20013927302651
4195.993.70358627436882.19641372563119
4298.193.81066602783944.28933397216062
4398.298.244842798676-0.0448427986759441
4496.296.787783873408-0.587783873407929
4594.195.5410816366926-1.44108163669259
469594.6593801196310.340619880368934
4793.494.1519502448447-0.751950244844693
4895.494.16707480980991.23292519019013
4993.594.975099943669-1.47509994366891
5094.593.98902484776880.510975152231239
5194.394.05949900431680.240500995683206
5295.794.27039711013421.42960288986579
5398.496.88097701393621.51902298606376
5499.496.98742524848052.41257475151946
5599.299.378768702455-0.178768702455059
569997.71709171346421.28290828653577
5799.497.42114984339221.97885015660785
5899.399.04877234508860.251227654911446
5998.698.23754269128020.362457308719769
6098.799.4269186556882-0.726918655688209
619698.4635609572362-2.46356095723618
6298.797.32353019843071.3764698015693
63100.197.87626916056352.22373083943647
6410099.59296020118380.4070397988162
65101.5101.700645751741-0.200645751740836
66101.5100.9345624475500.565437552450476
67103.8101.6722972419712.12770275802882
68104.1101.7012656454882.39873435451166
69101102.211569308638-1.21156930863759
70104.9101.5395384257653.3604615742352
71104.4102.6344561007911.76554389920912
72105.6104.517035145631.08296485436995
73103.4104.260427157478-0.860427157478412
74101.7105.036388879648-3.33638887964821
75103.5102.8995080261720.600491973828412
76101.2103.258139899006-2.05813989900570
77105.4103.7784831044341.62151689556634
78105.4104.2897853944181.11021460558186
79108.6105.7291928171192.87080718288090
80110.6106.235255340154.36474465984992
81110.2107.1217083313753.07829166862504
82106.2110.140696798502-3.94069679850176
83108.6106.4058798185062.19412018149447
84107.5108.446111311381-0.946111311380974
85106.9106.5189700807700.381029919229732
86108.4107.5564354612980.843564538702381
87109.9108.8755431916521.02445680834801
88108.6108.921457356521-0.321457356521464
89106.5111.492630245337-4.99263024533687
90105.7107.848689090801-2.14868909080069
91105.6107.679225310936-2.07922531093588
92104.2105.460587537077-1.2605875370773
93105.1102.7006536135812.39934638641905
94102.7103.798984124562-1.09898412456202
95108.3103.0772156412225.22278435877813
96104.2106.296582556833-2.09658255683333
97105.4103.9623451179451.43765488205467
98104.6105.718258520970-1.11825852097039
99106.4105.8373042034830.562695796516635
100111105.3305559838805.66944401612011
101111.7110.5518439961941.14815600380638
102113.8111.2756534158632.52434658413654
103115.9114.0775120891271.82248791087328
104117.3114.3902829120532.90971708794734
105113.6114.862338528902-1.26233852890235
106113.6112.9249481154770.675051884523157
107114.6114.765763632705-0.165763632704582
108113.2113.0681712689600.131828731039647
109112.8112.853419018552-0.0534190185519066
110109.6113.215172458439-3.61517245843929
111111.1112.259090562465-1.15909056246477
112109.7111.773061443891-2.07306144389112
113113111.3104507633331.68954923666658
114111112.654376695229-1.65437669522946
115113.3112.7255846605950.574415339404823
116111.8112.497641376262-0.697641376262212
117107.2109.950594114005-2.75059411400534
118106.4107.526184557959-1.12618455795938
119110107.9873792066162.01262079338409
120108.2107.7347885143160.465211485684023


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121107.678970249798104.382891224621110.975049274975
122107.301999061144103.194149464670111.409848657618
123109.013790636026104.179692190779113.847889081273
124109.028504522773103.594000894275114.463008151271
125110.605636955157104.566435622978116.644838287335
126110.206291469366103.685986693286116.726596245445
127111.739955480428104.675813666229118.804097294628
128110.896951325895103.440055521015118.353847130775
129108.353520173819100.625732315036116.081308032602
130107.95320617757699.8427946084802116.063617746673
131109.790700220231101.164772523165118.416627917297
132107.979427658106-174.529727147312390.488582463524
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/18rnk1293632112.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/18rnk1293632112.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/28rnk1293632112.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/28rnk1293632112.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/38rnk1293632112.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293631995nuc7pvnv4xaxiht/38rnk1293632112.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
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