Home » date » 2008 » May » 25 »

Exponential Smoothing - Olieprijzen in constante dollar - Bram Op de Beeck

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 25 May 2008 10:43:42 -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/25/t1211733872inrq0sz5siz4r4v.htm/, Retrieved Sun, 25 May 2008 18:44:32 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
23.11 18.64 14.94 16.90 15.46 11.15 13.13 12.48 12.95 12.59 10.58 10.58 12.39 15.53 13.06 10.22 16.33 19.72 21.31 18.84 24.84 15.67 15.57 12.73 13.56 15.54 17.22 12.14 11.07 12.02 11.55 6.92 10.33 8.38 12.11 11.46 12.75 13.32 13.00 11.90 11.79 12.55 11.84 11.25 11.15 10.99 11.70 14.01 17.51 17.27 16.90 15.79 15.45 16.24 16.71 16.77 16.64 17.80 16.87 16.13 15.76 15.66 15.54 15.30 15.05 14.69 14.39 14.18 13.70 13.66 13.27 13.56 13.14 14.19 22.57 23.09 23.31 22.91 22.36 43.06 64.67 64.68 56.90 48.79 45.21 41.40 22.17 25.52 20.28 22.87 27.63 22.95 21.35 18.38 17.15 18.27 19.40 20.52
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.874143869308098
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1312.3912.4368674516908-0.0468674516908294
1415.5314.93006522279190.599934777208135
1513.0612.22407786360640.835922136393592
1610.229.49104407435380.728955925646206
1716.3315.90200642775320.427993572246763
1819.7219.3686343850360.351365614963981
1921.3121.12744514990910.182554850090881
2018.8418.76785768626190.0721423137381407
2124.8424.65717044753380.182829552466245
2215.6715.39365644661710.276343553382862
2315.5715.6743871362962-0.104387136296246
2412.7313.2831377610683-0.553137761068253
2513.5615.0128838888891-1.45288388888910
2615.5416.3584250371190-0.818425037118974
2717.2212.44228759768584.77771240231422
2812.1413.1414832500866-1.00148325008658
2911.0718.0019148495259-6.93191484952586
3012.0215.0252798830406-3.00527988304063
3111.5513.8286536947063-2.2786536947063
326.929.30371977593065-2.38371977593065
3310.3313.0601864152357-2.73018641523568
348.381.262046675276717.11795332472329
3512.117.475411311332764.63458868866724
3611.469.17023058301652.28976941698349
3712.7513.2718480252907-0.521848025290724
3813.3215.5110990019581-2.19109900195810
391311.09935523654911.90064476345090
4011.98.556232647530183.34376735246982
4111.7916.4686572473630-4.67865724736305
4212.5515.9558846833017-3.40588468330166
4311.8414.5005226253269-2.66052262532692
4411.259.628557111520151.62144288847985
4511.1516.8425071888646-5.69250718886455
4610.993.694321667898277.29567833210173
4711.79.75049686538581.94950313461420
4814.018.803055180720435.20694481927957
4917.5115.10084432433772.40915567566235
5017.2719.6921287480355-2.42212874803547
5116.915.59340278456221.30659721543778
5215.7912.71262299853813.07737700146188
5315.4519.3825127872921-3.93251278729207
5416.2419.6821640587835-3.44216405878350
5516.7118.2888969917302-1.57889699173023
5616.7714.90133950574241.86866049425762
5716.6421.4108878807541-4.77088788075414
5817.810.70297300218597.09702699781405
5916.8715.91264942931920.957350570680763
6016.1314.50789266985961.62210733014036
6115.7617.3198991837725-1.55989918377251
6215.6617.8336118713092-2.17361187130917
6315.5414.4214084342191.11859156578101
6415.311.59914815432863.70085184567144
6515.0517.9318070504269-2.88180705042688
6614.6919.2116396939056-4.52163969390565
6714.3917.1092592018479-2.71925920184786
6814.1813.15875732661941.02124267338062
6913.718.0919127407484-4.3919127407484
7013.669.208926503433854.45107349656615
7113.2711.33294298015771.93705701984229
7213.5610.86825432055112.69174567944886
7313.1414.2148036122114-1.07480361221137
7414.1915.0753201154468-0.885320115446817
7522.5713.20361300466669.36638699533338
7623.0917.91610582209315.17389417790685
7723.3124.7079476638188-1.39794766381879
7822.9127.0785039015258-4.16850390152578
7922.3625.5116555321751-3.15165553217508
8043.0621.653942148541821.4060578514582
8164.6743.725079982309820.9449200176902
8264.6858.10307480005916.57692519994091
8356.961.76898712409-4.86898712409003
8448.7955.4498188963999-6.65981889639988
8545.2150.1477120257345-4.93771202573446
8641.447.6553384813228-6.25533848132279
8722.1742.3797029278897-20.2097029278897
8825.5220.71078713687094.80921286312914
8920.2826.3567384573136-6.07673845731362
9022.8724.2886669191698-1.41866691916982
9127.6325.25354829080912.37645170919089
9222.9529.3189347461984-6.36893474619842
9321.3527.0526960571734-5.70269605717339
9418.3816.32854041784152.05145958215847
9517.1514.59800647898212.55199352101793
9618.2714.54045582888413.72954417111595
9719.418.53688469708350.863115302916533
9820.5220.9494374315293-0.429437431529294


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9919.01023524845928.6064615467365429.4140089501819
10018.15629130795724.3379510445597131.9746315713548
10118.22823497580671.6857276678618134.7707422837516
10222.05835396578923.1807861025345140.9359218290439
10324.74099327349323.7869819909210345.6950045560654
10425.62835853590592.785884737550848.470832334261
10529.01333533281154.4270255318894353.5996451337336
10624.2500645159343-1.9643332460836650.4644622779523
10720.7892550250225-6.957865013346748.5363750633917
10818.6490968525277-10.550401273673847.8485949787293
10919.0246099019773-11.558370842554949.6075906465094
11020.52-11.386531174961652.4265311749616
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211733872inrq0sz5siz4r4v/14c2z1211733813.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211733872inrq0sz5siz4r4v/14c2z1211733813.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211733872inrq0sz5siz4r4v/2l3ty1211733813.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211733872inrq0sz5siz4r4v/2l3ty1211733813.ps (open in new window)


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