Home » date » 2008 » May » 29 »

exponential smoothing prijsindexcijfer ruwe aardolie_Jan De Cleermaecker

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 29 May 2008 12:48:37 -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/29/t1212086952qhywcwr7x14ti9f.htm/, Retrieved Thu, 29 May 2008 18:49:13 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
68.4 70.6 83.9 90.1 90.6 87.1 90.8 94.1 99.8 96.8 87 96.3 107.1 115.2 106.1 89.5 91.3 97.6 100.7 104.6 94.7 101.8 102.5 105.3 110.3 109.8 117.3 118.8 131.3 125.9 133.1 147 145.8 164.4 149.8 137.7 151.7 156.8 180 180.4 170.4 191.6 199.5 218.2 217.5 205 194 199.3 219.3 211.1 215.2 240.2 242.2 240.7 255.4 253 218.2 203.7 205.6 215.6 188.5 202.9 214 230.3 230 241 259.6 247.8 270.3 289.7 322.7 315 320.2
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.904548536281444
beta0.0104657928757387
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13107.197.7387638888899.36123611111108
14115.2114.9701335854250.229866414575199
15106.1107.368912292140-1.26891229213972
1689.591.1291270188985-1.6291270188985
1791.392.0897540601084-0.78975406010845
1897.698.1354915582625-0.535491558262478
19100.7101.718652429370-1.01865242936979
20104.6106.255127444955-1.6551274449546
2194.796.0668777938087-1.36687779380865
22101.8101.6805906265650.119409373435005
23102.5101.0398527677071.46014723229324
24105.3103.7673669908391.53263300916115
25110.3120.339334296878-10.0393342968784
26109.8119.008708675150-9.20870867515025
27117.3102.49578906009214.8042109399081
28118.8100.68171376484618.1182862351543
29131.3119.69307200565011.6069279943502
30125.9137.201955034841-11.3019550348411
31133.1131.1237597646651.9762402353349
32147138.4604112369818.53958876301857
33145.8137.7697057321898.03029426781109
34164.4152.36286106971112.0371389302891
35149.8163.080462386257-13.2804623862571
36137.7152.791950923431-15.0919509234309
37151.7153.374884340178-1.67488434017753
38156.8159.922049227953-3.12204922795291
39180151.49695324003128.5030467599689
40180.4162.81023396071017.5897660392897
41170.4181.136758741088-10.7367587410878
42191.6176.45123999789815.1487600021016
43199.5196.0200613440023.4799386559975
44218.2205.81123535625112.3887646437487
45217.5209.0579959119598.4420040880411
46205224.914232091180-19.9142320911795
47194204.519397750689-10.5193977506886
48199.3196.7873648616472.51263513835281
49219.3214.9737097137294.32629028627093
50211.1227.266436581910-16.1664365819098
51215.2210.3925742352944.80742576470561
52240.2199.33785835388240.862141646118
53242.2236.3394148126875.86058518731323
54240.7249.622780547128-8.92278054712844
55255.4246.5610088295418.83899117045928
56253262.357889386462-9.35788938646249
57218.2245.658973146754-27.4589731467545
58203.7226.096472012827-22.3964720128266
59205.6204.0916663055751.50833369442546
60215.6208.3356756764107.26432432358968
61188.5230.890702211273-42.3907022112734
62202.9198.4247520199924.47524798000759
63214201.87486305313112.1251369468687
64230.3200.60070491459229.6992950854079
65230223.7781558264456.22184417355459
66241235.5948046897045.40519531029636
67259.6246.94201074454012.6579892554604
68247.8264.245836377464-16.4458363774642
69270.3239.13004765290431.1699523470957
70289.7273.36080227771816.3391977222819
71322.7289.32006602315333.3799339768466
72315323.8886525337-8.88865253370011
73320.2327.885715270535-7.68571527053547


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
74332.40691228315303.392508708162361.421315858138
75333.618149569852294.310067092635372.926232047070
76324.017921375785276.446301416255371.589541335314
77318.773029229436264.03924131819373.506817140682
78325.507934552910264.324098612851386.69177049297
79333.231165731096266.102687117761400.359644344431
80336.760388909931264.067534979149409.453242840713
81331.674509827784253.715111503978409.633908151589
82336.608687879156253.622942983719419.594432774593
83339.574012689299251.760004064190427.388021314408
84339.75732381089247.281286679227432.233360942553
85351.836667044331254.840085940485448.833248148177
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212086952qhywcwr7x14ti9f/1dn6v1212086910.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212086952qhywcwr7x14ti9f/1dn6v1212086910.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212086952qhywcwr7x14ti9f/2bfaz1212086910.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t1212086952qhywcwr7x14ti9f/2bfaz1212086910.ps (open in new window)


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