Home » date » 2010 » May » 19 »

The total generation of electricity by the U.S. electric industry

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 19 May 2010 17:14:12 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q.htm/, Retrieved Wed, 19 May 2010 19:16:04 +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/2010/May/19/t1274289364a4t5jmrk16xsi1q.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
227.86 198.24 194.97 184.88 196.79 205.36 226.72 226.05 202.50 194.79 192.43 219.25 217.47 192.34 196.83 186.07 197.31 215.02 242.67 225.17 206.69 197.75 196.43 213.55 222.75 194.03 201.85 189.50 206.07 225.59 247.91 247.64 213.01 203.01 200.26 220.50 237.90 216.94 214.01 196.00 208.37 232.75 257.46 267.69 220.18 210.61 209.59 232.75 232.75 219.82 226.74 208.04 220.12 235.69 257.05 258.69 227.15 219.91 219.30 259.04 237.29 212.88 226.03 211.07 222.91 249.18 266.38 268.53 238.02 224.69 213.75 237.43 248.46 210.82 221.40 209.00 234.37 248.43 271.98 268.11 233.88 223.43 221.38 233.76 243.97 217.76 224.66 210.84 220.35 236.84 266.15 255.20 234.76 221.29 221.26 244.13 245.78 224.62 234.80 211.37 222.39 249.63 282.29 279.13 236.60 223.62 225.86 246.41 261.70 225.01 231.54 214.82 227.70 263.86 278.15 274.64 237.66 227.97 224.75 242.91 253.08 228.13 233.68 217.38 236.38 256.08 292.83 304.71 etc...
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.157425919892856
beta0.00100068806935944
gamma0.331614444942928


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13217.47215.9367467948721.53325320512815
14192.34190.7267187743531.61328122564734
15196.83195.6395433856121.19045661438764
16186.07185.0759919811690.994008018830982
17197.31196.4895877328230.820412267177204
18215.02214.7068175899390.313182410060762
19242.67228.88882899048813.7811710095118
20225.17231.376555225045-6.20655522504481
21206.69207.326300858934-0.636300858933566
22197.75199.697432004606-1.94743200460579
23196.43197.267683669683-0.837683669683344
24213.55223.839589856709-10.2895898567087
25222.75220.1073892612272.64261073877270
26194.03195.094589944037-1.06458994403715
27201.85199.4675115187202.38248848128035
28189.5189.0367195717240.463280428276391
29206.07200.3181694877945.75183051220611
30225.59219.1706930920136.41930690798688
31247.91238.0787014738799.83129852612092
32247.64234.3608754283213.2791245716799
33213.01214.938650429462-1.92865042946178
34203.01206.743880857919-3.73388085791916
35200.26204.346583641123-4.08658364112284
36220.5227.769172320094-7.26917232009401
37237.9228.1294204759589.77057952404166
38216.94203.20761712641613.7323828735841
39214.01210.8801409492093.12985905079128
40196200.037904741079-4.03790474107907
41208.37212.094860387389-3.72486038738919
42232.75229.6469502732653.10304972673504
43257.46248.9906587312288.46934126877167
44267.69246.02598815803521.6640118419648
45220.18223.680088942723-3.50008894272295
46210.61214.738815293542-4.12881529354232
47209.59212.186014385837-2.59601438583667
48232.75234.959463671838-2.20946367183788
49232.75240.883563389053-8.13356338905348
50219.82214.2535794940275.56642050597267
51226.74217.6802635743639.05973642563697
52208.04205.7718777137332.26812228626736
53220.12218.9131034560331.20689654396665
54235.69239.154211545971-3.46421154597053
55257.05258.967269661633-1.91726966163304
56258.69258.0563731836310.633626816368974
57227.15225.3675149552461.78248504475442
58219.91217.0818787477322.82812125226818
59219.3216.0533510638243.24664893617597
60259.04239.85630504198319.1836949580169
61237.29247.498073464635-10.2080734646354
62212.88224.374172154321-11.4941721543213
63226.03226.093210951990-0.0632109519897313
64211.07210.8516241509940.218375849005525
65222.91223.373957520926-0.463957520925590
66249.18242.0469212286537.1330787713473
67266.38263.9622120140402.41778798595959
68268.53264.4489080750304.08109192497045
69238.02232.6267122704465.39328772955446
70224.69225.205179642385-0.515179642384908
71213.75223.770252473579-10.0202524735795
72237.43249.938510146204-12.5085101462037
73248.46244.3746571999684.08534280003207
74210.82223.139712726399-12.3197127263990
75221.4227.920732967889-6.52073296788913
76209211.738246713375-2.73824671337476
77234.37223.60101849703610.7689815029638
78248.43246.1633314673172.26666853268256
79271.98265.9925659646285.98743403537179
80268.11267.5040634677810.605936532219403
81233.88235.49898427079-1.61898427078981
82223.43225.319106150504-1.88910615050349
83221.38221.0083121932920.371687806708223
84233.76248.115159036725-14.3551590367254
85243.97246.894660680857-2.92466068085702
86217.76219.968904334693-2.20890433469313
87224.66227.959988695294-3.29998869529413
88210.84213.339971337928-2.49997133792812
89220.35229.012919228812-8.66291922881243
90236.84246.136071458282-9.29607145828174
91266.15265.1783806837260.971619316273689
92255.2264.38955758331-9.18955758331015
93234.76230.2121474933844.54785250661592
94221.29220.9199844434530.37001555654723
95221.26217.5892483315633.67075166843742
96244.13241.0938743565323.03612564346798
97245.78245.800992644622-0.0209926446220834
98224.62219.5287807571765.0912192428238
99234.8228.3618267690816.43817323091881
100211.37215.497507818307-4.12750781830667
101222.39229.191121915097-6.80112191509701
102249.63246.4296239749713.20037602502859
103282.29270.30922289968411.9807771003163
104279.13268.41726134725710.7127386527433
105236.6241.217356479046-4.61735647904592
106223.62229.319581624087-5.69958162408747
107225.86225.959193197966-0.0991931979657181
108246.41248.696019398983-2.28601939898348
109261.7251.7132749790229.98672502097759
110225.01228.448685067177-3.43868506717686
111231.54236.317657395310-4.77765739531026
112214.82218.736157252688-3.91615725268821
113227.7231.71667830636-4.01667830636009
114263.86252.18914721431911.6708527856812
115278.15279.857990024204-1.70799002420438
116274.64275.457044721404-0.817044721403818
117237.66242.157144225776-4.49714422577645
118227.97229.974397549448-2.00439754944776
119224.75228.759599940568-4.00959994056765
120242.91250.26826022279-7.35826022279008
121253.08255.913792841841-2.83379284184124
122228.13226.8753660938421.25463390615843
123233.68235.105441201518-1.42544120151803
124217.38218.289281020433-0.909281020433156
125236.38231.7124521720984.66754782790176
126256.08257.934036752268-1.85403675226792
127292.83279.73214628101713.0978537189833
128304.71277.90990960032726.8000903996727
129245.57247.932703279028-2.36270327902824
130234.41236.786103773907-2.37610377390689
131234.12234.956091494944-0.836091494943815
132258.17256.0327705094362.13722949056375
133268.66264.4428899631874.21711003681264
134245.31237.6634854792097.6465145207909
135247.47246.1586572888981.31134271110247
136226.25229.925677244287-3.6756772442871
137251.67244.4792496307647.19075036923641
138268.79269.283938387169-0.493938387169294
139288.94295.482161602271-6.54216160227134
140290.16294.401816982538-4.24181698253756
141250.69251.389752400718-0.699752400718126
142240.8240.5017732544860.298226745513631


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
143239.524058656281226.403768810319252.644348502243
144261.564261002314248.282065033786274.846456970841
145270.219853352328256.777383158911283.662323545745
146243.734900444157230.13372991917257.336070969144
147249.255124402856235.4967726652263.013476140512
148231.420996929259217.506931308208245.335062550310
149249.588694734073235.520333532305263.657055935841
150271.11235623088256.89107128645285.333641175310
151295.696643599861281.323762665518310.069524534204
152296.288211985674281.765020941902310.811403029446
153254.933543419649240.261288336053269.605798503244
154244.434615509401229.614504567526259.254726451277
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/1vma91274289247.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/1vma91274289247.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/2vma91274289247.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/2vma91274289247.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/36d9u1274289247.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/19/t1274289364a4t5jmrk16xsi1q/36d9u1274289247.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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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