Home » date » 2008 » May » 24 »

exponentiële smoothing - prijsindex ijzererts - Karen de maere

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 24 May 2008 11:10:53 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n.htm/, Retrieved Sat, 24 May 2008 19:12:01 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
229,7 231,5 226,4 242,1 228,3 209,9 209,3 220,8 239,6 241,1 241,9 240,8 179,9 190,8 174,2 170 170,3 159,3 147,9 154,2 164,5 173,9 163,6 149,7 128,2 124,7 125,1 120,9 117,5 114 113,4 118,9 121,7 121,9 120,3 115,6 105,7 105,1 104,6 105 104,9 105,1 103,9 101,9 99 97 95,8 94,7 97,6 97,9 99,3 99,7 99,7 100 99,1 98,2 98,1 98,6 100,2 101,9 97,5 97,1 98,1 98,5 98,3 99,3 100,9 100,4 101,7 102 103,2 103,1
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.72476947564924
beta0.0542023038794262
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13179.9209.963722222222-30.0637222222223
14190.8198.354490712747-7.55449071274671
15174.2175.833324517067-1.63332451706680
16170169.9644750335110.0355249664891630
17170.3169.9398856174360.360114382564149
18159.3159.860528832139-0.560528832139084
19147.9147.5835647005910.316435299408568
20154.2152.6129616359551.58703836404527
21164.5162.5172650482991.98273495170139
22173.9171.1779140431992.72208595680084
23163.6160.9355236471302.66447635287039
24149.7146.9977179915872.70228200841314
25128.2106.56068227699221.6393177230075
26124.7139.572563048663-14.8725630486633
27125.1114.04278218265411.0572178173459
28120.9118.9951213239681.90487867603244
29117.5121.652307942916-4.152307942916
30114109.109417902184.89058209782003
31113.4102.29908409852511.1009159014746
32118.9117.1925757795931.70742422040669
33121.7128.995891871199-7.29589187119883
34121.9132.473517036474-10.5735170364740
35120.3113.3950664122446.90493358775596
36115.6103.52364576258312.0763542374170
37105.776.44358019761829.2564198023820
38105.1106.577029999478-1.47702999947767
39104.6100.0689322909614.53106770903867
4010599.69228202341825.30771797658178
41104.9105.202265868580-0.302265868580420
42105.1100.1435397187044.95646028129627
43103.997.29770535868686.60229464131319
44101.9108.376112918518-6.47611291851804
4599113.479535063656-14.4795350636563
4697112.275640310766-15.2756403107663
4795.895.842186246003-0.0421862460029701
4894.783.328474989660511.3715250103395
4997.661.407797509693536.1922024903065
5097.989.323522233318.57647776669005
5199.393.36467056555255.93532943444754
5299.795.88386806262833.81613193737174
5399.7100.374485223279-0.67448522327885
5410098.08445361443121.91554638556885
5599.194.95928755578854.1407124442115
5698.2102.028983297469-3.82898329746858
5798.1108.327113211137-10.227113211137
5898.6111.632119530416-13.0321195304159
59100.2102.751535239396-2.55153523939578
60101.993.19607130110478.70392869889528
6197.577.704160335850319.7958396641497
6297.187.022244599884310.0777554001157
6398.192.37015817324855.72984182675145
6498.595.09469395341483.40530604658520
6598.398.9730004435915-0.673000443591505
6699.398.3183573546320.98164264536797
67100.996.01352899378854.88647100621154
68100.4102.344289750442-1.94428975044234
69101.7109.235531509680-7.53553150968033
70102114.813131437624-12.8131314376242
71103.2110.078283218645-6.87828321864468
72103.1101.4172424082861.68275759171392


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7384.546083245808564.034527826971105.057638664646
7476.721020345500650.9075886056059102.534452085395
7573.05129617553842.4269899708937103.675602380182
7670.241232472977735.0763766647834105.406088281172
7769.653226186945430.1084581384381109.197994235453
7869.092423364385825.2653600376298112.919486691142
7966.262957116414218.2115883028516114.314325929977
8066.092256776420413.8480711059262118.336442446915
8171.850297614007815.4262538407205128.274341387295
8280.729408925327220.1250696065826141.333748244072
8386.71047670724721.9154677690395151.505485645454
8485.456971114179716.4533987850128154.460543443347
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/13hp31211649047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/13hp31211649047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/25jth1211649047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/25jth1211649047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/3sy7m1211649047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211649117kazyfr7t17iqj1n/3sy7m1211649047.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