Home » date » 2009 » Jun » 02 »

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: Tue, 02 Jun 2009 10:29:01 -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/02/t12439602115tjjqtk39vc23b1.htm/, Retrieved Tue, 02 Jun 2009 18:30:14 +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/02/t12439602115tjjqtk39vc23b1.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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.668837108850633
beta0
gamma0.703044343859426


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13532168499791.70847647532376.2915235246
14551102539103.86076577711998.1392342234
15593789590455.1048425133333.89515748725
16527106527271.974943384-165.974943384412
17547327546140.1259675711186.87403242872
18601305599384.5273075531920.47269244655
19610872608483.7321804492388.26781955070
20601325576989.85913815324335.140861847
21642143716926.628860752-74783.6288607515
22614216576047.11006657138168.8899334290
23657979651719.1370249636259.86297503684
24673098670713.5623947682384.437605232
25602297610728.630374213-8431.63037421345
26615381619039.750355153-3658.75035515311
27703671662212.63825827841458.361741722
28733852612127.883262676121724.116737324
29716596717293.380123523-697.38012352318
30745798784016.794608828-38218.7946088276
31742027.1766974.573905942-24947.4739059421
32679181.2714498.114775428-35316.9147754284
33739022.7804449.728749846-65427.0287498465
34645410.6683691.368821074-38280.7688210745
35729382.1703670.01493812225712.0850618776
36671052.7735545.105597858-64492.4055978581
37744954.8626277.833757071118676.966242929
38677639.3722358.702578015-44719.4025780149
39778207.2754405.33278448823801.8672155116
40763316.2701027.80850325562288.3914967446
41658531.6737651.945883853-79120.3458838535
42831700.1740543.71517665991156.3848233406
43664156.3813401.07946849-149244.779468491
44621402.1676910.5401654-55508.4401653998
45683588.7739212.716908837-55624.016908837
46600023.8635439.675750915-35415.8757509151
47643273.8668950.699031645-25676.8990316449
48653615.9645863.1922243827752.70777561842
49620177.5625701.958769171-5524.45876917127
50574128.8604329.101478896-30200.3014788956
51599828651597.175796715-51769.1757967147
52599369.4569440.11922199729929.2807780030
53596617.7559913.55092916636704.1490708342
54616114.6667475.504536375-51360.9045363754
55510226.9596686.845058719-86459.9450587189
56493960.1527542.88488512-33582.7848851199
57634503.3585770.02232874648733.2776712541
58588556.2563108.58212697625447.6178730238
59603239637365.210952478-34126.210952478
60617458.2616585.308318703872.891681296634
61646543.5590578.1075172155965.3924827899
62680125.6604004.44740074276121.152599258
63731595.8724242.2423730127353.55762698816
64759600.3693397.96640489566202.3335951052
65785031.7701432.91687980883598.7831201917
66849573.3834801.36021239814771.9397876016
67762342779240.207694494-16898.2076944942
68815346.6766455.35458378348891.2454162168
69929603.2955007.951241408-25404.7512414085
70784057.5844729.693556326-60672.1935563263
71944667.7861113.04651026283554.6534897379
721007258.3929447.66739931177810.6326006893
73664292.7955073.862868592-290781.162868592
74873207.4735038.697237401138168.702762599
751146510891699.382528233254810.617471767
761417266.81026218.64548934391048.154510665
771089387.91226540.72989738-137152.829897380
781373379.71221902.54560288151477.154397119
791009397.61206666.75808575-197269.158085752
80818175.11091436.31765757-273261.217657573
811003458.11063152.38644291-59694.2864429121
82961142.7910505.32247507750637.3775249226
831121906.61050042.7459777371863.8540222712
841141713.31108996.0242257632717.2757742386
851042352.6983653.03584016458699.5641598356
86992223.61124671.42382884-132447.823828837
87920525.31133535.55347793-213010.253477934
881076093.4971710.947012389104382.452987611
89967880.4901678.34960488466202.0503951164
901236416.11076801.59113149159614.508868511


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
911006991.05379214831150.7757842121182831.33180006
92993605.904937146776063.7169422581211148.09293203
931232034.45041535946012.3220013961518056.57882931
941124096.3014259829296.6547368941418895.94811490
951252228.08112224904878.5220846281599577.64015985
961253324.27861662883401.6548339151623246.90239933
971096810.67582455744412.4457430951449208.90590600
981154287.95037287764523.0356278181544052.86511792
991235607.78165482802492.4435931421668723.11971649
1001303159.64685823831648.8882217381774670.40549472
1011119269.30958045691194.065801291547344.55335962
1021292046.43721176819196.404880351764896.46954317
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/19k0i1243960138.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/19k0i1243960138.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/2dxmc1243960138.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/2dxmc1243960138.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/3zyst1243960138.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439602115tjjqtk39vc23b1/3zyst1243960138.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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=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