Home » date » 2009 » Jun » 01 »

Datareeks - Aardolie - Silke van den Berg

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 01 Jun 2009 09:25:49 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj.htm/, Retrieved Mon, 01 Jun 2009 17:26:35 +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/2009/Jun/01/t1243869991wd0it4hwgesshmj.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
493395.00 487190.00 519493.00 519453.00 538588.00 438224.00 542034.00 512027.00 619880.00 533737.00 573789.00 589213.00 532168.00 551102.00 593789.00 527106.00 547327.00 601305.00 610872.00 601325.00 642143.00 614216.00 657979.00 673098.00 602297.00 615381.00 703671.00 733852.00 716596.00 745798.00 742027.10 679181.20 739022.70 645410.60 729382.10 671052.70 744954.80 677639.30 778207.20 763316.20 658531.60 831700.10 664156.30 621402.10 683588.70 600023.80 643273.80 653615.90 620177.50 574128.80 599828.00 599369.40 596617.70 616114.60 510226.90 493960.10 634503.30 588556.20 603239.00 617458.20 646543.50 680125.60 731595.80 759600.30 785031.70 849573.30 762342.00 815346.60 929603.20 784057.50 944667.70 1007258.30 664292.70 873207.40 1146510.00 1417266.80 1089387.90 1373379.70 1009397.60 818175.10 1003458.10 961142.70 1121906.60 1141713.30 1042352.60 992223.60 920525.30 1076093.40 967880.40 1236416.10
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.496602762806755
beta0
gamma0.507424910716124


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13532168498335.78712606933832.2128739315
14551102533020.21464982418081.7853501763
15593789585576.5613498958212.43865010526
16527106524229.2215449462876.77845505386
17547327544555.886479072771.11352092994
18601305598445.161248312859.83875169035
19610872606472.4555456094399.54445439111
20601325579909.99694877921415.0030512213
21642143698177.337101558-56034.3371015583
22614216586331.24595690827884.7540430925
23657979645086.14899358912892.8510064112
24673098665291.8648958567806.13510414364
25602297616640.353841763-14343.3538417629
26615381623377.430933972-7996.43093397166
27703671660462.2739921643208.7260078394
28733852615131.265888698118720.734111302
29716596692959.36859656323636.6314034375
30745798757233.180838146-11435.1808381460
31742027.1758554.825637675-16527.7256376750
32679181.2725946.192650208-46764.9926502083
33739022.7790571.785827685-51549.0858276851
34645410.6702389.064842577-56978.4648425775
35729382.1715171.18270623414210.9172937659
36671052.7734732.122088612-63679.422088612
37744954.8644922.902369835100031.897630165
38677639.3710080.279831851-32440.9798318512
39778207.2748105.54810655630101.6518934442
40763316.2715554.03860045147762.1613995489
41658531.6733855.98684741-75324.3868474098
42831700.1740026.87012748891673.2298725117
43664156.3791251.615762852-127095.315762852
44621402.1696011.11649086-74609.0164908601
45683588.7745587.259450212-61998.5594502125
46600023.8650828.440517532-50804.6405175315
47643273.8684860.848837695-41587.0488376948
48653615.9656816.344127681-3200.44412768132
49620177.5638858.965428205-18681.4654282050
50574128.8611224.57739083-37095.7773908296
51599828662913.918661127-63085.9186611273
52599369.4588596.33932983510773.0606701651
53596617.7557088.62572611539529.0742738849
54616114.6662953.308129673-46838.7081296729
55510226.9589511.215225406-79284.3152254063
56493960.1531420.696901841-37460.5969018411
57634503.3602666.0161272931837.2838727098
58588556.2557365.6694528931190.53054711
59603239634471.613757007-31232.6137570074
60617458.2621374.482320561-3916.28232056089
61646543.5599107.20162438447436.2983756161
62680125.6599603.39408210880522.2059178918
63731595.8703063.3253451228532.4746548806
64759600.3693109.95752307466490.342476926
65785031.7696616.92966480188414.7703351992
66849573.3804696.91717862644876.3828213738
67762342768513.006064364-6171.00606436364
68815346.6757414.05485103557932.5451489652
69929603.2893733.06610555935870.1338944414
70784057.5850270.239618636-66212.7396186361
71944667.7863060.31395288381607.386047117
721007258.3912977.42075510294280.879244898
73664292.7952592.434904953-288299.734904953
74873207.4794812.52740488678394.8725951145
751146510883935.954567406262574.045432594
761417266.8999904.094646863417362.705353137
771089387.91183255.54627635-93867.6462763508
781373379.71189692.29755638183687.40244362
791009397.61209402.96624799-200005.366247988
80818175.11118419.71005999-300244.610059994
811003458.11071231.41580464-67773.3158046413
82961142.7950223.2945369110919.4054630904
831121906.61039076.0309102482830.569089763
841141713.31092837.8439777648875.4560222351
851042352.61012179.4236912130173.1763087875
86992223.61106221.15686581-113997.556865809
87920525.31146848.01811857-226322.718118569
881076093.41059567.3169750116526.0830249907
89967880.4913275.4060064354604.9939935703
901236416.11064341.71482013172074.385179875


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
91980276.266597313783146.7177526251177405.815442
92963011.486496802742912.6327076721183110.34028593
931124307.10194291883419.2611313221365194.94275449
941057056.37395933797036.3780696961317076.36984897
951158855.22484304881017.4220263171436693.02765976
961162809.78007093868229.92487781457389.63526405
971053102.43219356742682.1727110571363522.69167605
981095333.64426866769842.9625145431420824.32602278
991163880.08383610823986.5264974221503773.64117477
1001251024.2685674897313.8266351351604734.71049966
1011106252.19516516739244.6705236371473259.71980668
1021260207.45952770880368.0598400481640046.85921535
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/15t4r1243869947.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/15t4r1243869947.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/25xlz1243869947.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/25xlz1243869947.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/308u61243869947.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243869991wd0it4hwgesshmj/308u61243869947.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