Home » date » 2010 » Dec » 16 »

index huishoudconsumptie elektriciteit en brandstof

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 16 Dec 2010 18:46:42 +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/Dec/16/t1292525097bt7078a20hymx0p.htm/, Retrieved Thu, 16 Dec 2010 19:44:58 +0100
 
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/Dec/16/t1292525097bt7078a20hymx0p.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
132,1 125 127,1 101,5 85,7 79,3 70,9 77,1 83,9 96,2 111,7 127,2 143,6 134,9 135,6 105,3 86,4 74,6 67,6 73,4 78,5 98,2 118,6 136,9 137,9 115,6 119,3 98,5 84,3 73,5 60,7 69,5 77,9 113,9 126,3 135,1 130,5 113,1 110 90,8 85,4 72,5 64,7 67,2 77,9 105,2 107,2 120,7 121,3 107,9 105,6 81,3 71,7 64,8 57,3 61,9 70,1 88,8 106,8 110,7 114,1 108 111,5 86,8 78,4 68 57,3 65,3 73,3 88,6 101,3 122,9 126,6 114,1 124,7 93,3 77,2 66,5 57,9 63,7 65,8 85 101 105,3 121 117,9 106 86,6 79,9 65,2 61,2 67,6 78,9 95,5 113,1 124,4 122 110,3 114 93,3 75,5 65,4 59,2 63,8 74,2 91,7 107 120,7 127,4 119,7 112,7 84,4 75,6 66,5 59,9 64,8 74,3 100,4 105,9 131,1
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.264786991916332
beta0
gamma0.560459608377657


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13143.6142.1739800445411.42601995545917
14134.9134.3650283044880.534971695512496
15135.6135.774958166406-0.174958166405872
16105.3105.601841065423-0.301841065422948
1786.486.31807002680430.0819299731956988
1874.674.09245544236240.507544557637559
1967.672.0429399868427-4.44293998684273
2073.476.4372287961622-3.03722879616215
2178.581.7397668170721-3.23976681707212
2298.292.33449575968965.86550424031039
23118.6108.8787608646919.72123913530852
24136.9127.1897079219169.71029207808361
25137.9147.644612757203-9.74461275720321
26115.6136.394400516438-20.7944005164376
27119.3131.838319286585-12.5383192865845
2898.599.9301808323502-1.43018083235017
2984.381.56475570483652.73524429516351
3073.570.78948461406152.71051538593845
3160.767.4218853677964-6.72188536779643
3269.571.479012348698-1.97901234869806
3377.976.68936041482531.21063958517473
34113.991.692446985093622.2075530149064
35126.3114.27644462248212.0235553775177
36135.1133.3833692240231.71663077597671
37130.5143.639214465184-13.1392144651844
38113.1126.662594057663-13.5625940576634
39110127.315401397604-17.3154013976038
4090.898.8385397337297-8.03853973372972
4185.480.80135396790644.59864603209361
4272.570.69172472419641.80827527580355
4364.763.28521704684521.41478295315484
4467.271.5421602325398-4.34216023253977
4577.977.46426496458220.435735035417849
46105.2100.3833973534054.8166026465951
47107.2113.447698272686-6.24769827268567
48120.7122.46044767874-1.7604476787396
49121.3125.215775187045-3.91577518704493
50107.9111.433937939176-3.53393793917628
51105.6112.788691259977-7.18869125997661
5281.391.5659419822415-10.2659419822415
5371.778.6431468994277-6.94314689942767
5464.865.3835692010754-0.583569201075392
5557.357.9301120758796-0.630112075879637
5661.962.6953672047879-0.795367204787887
5770.170.722838696787-0.622838696787028
5888.892.8706743370042-4.07067433700423
59106.898.16941267801398.63058732198614
60110.7111.969466595427-1.26946659542683
61114.1113.7745555765110.325444423489216
62108102.1601534214085.83984657859156
63111.5104.4074004043957.09259959560545
6486.885.88387421192370.916125788076286
6578.477.06303612352641.33696387647359
666868.200525200477-0.200525200477031
6757.360.4710569561418-3.17105695614182
6865.364.6727860035420.627213996457925
6973.373.5039877680701-0.203987768070078
7088.695.2545830564975-6.65458305649746
71101.3105.451498128919-4.15149812891936
72122.9111.81021991297211.0897800870277
73126.6117.6342125767518.96578742324911
74114.1110.041321226444.0586787735599
75124.7112.33333425336212.3666657466375
7693.391.31232977406551.98767022593447
7777.282.394821327376-5.19482132737605
7866.570.782085782487-4.282085782487
7957.960.5211339888723-2.62113398887232
8063.766.6020547613356-2.90205476133561
8165.874.249820023212-8.44982002321204
828590.7560925869753-5.75609258697534
83101101.988318606604-0.988318606603556
84105.3115.227173674076-9.92717367407599
85121114.4328266193696.56717338063099
86117.9104.90154025675412.998459743246
87106112.665242402336-6.66524240233562
8886.684.64864041251421.95135958748584
8979.973.73515173410596.16484826589411
9065.265.9196959853728-0.719695985372752
9161.257.54337550802283.65662449197723
9267.665.13037612724832.46962387275165
9378.971.91237730897546.98762269102458
9495.595.08421212792580.415787872074205
95113.1111.3204619144161.77953808558435
96124.4122.5109971872221.8890028127783
97122132.739630759354-10.7396307593545
98110.3120.284440230791-9.98444023079098
99114113.681388322780.318611677219891
10093.389.87874987707353.42125012292649
10175.580.4869532874741-4.9869532874741
10265.466.6818333484786-1.2818333484786
10359.259.8454344490295-0.645434449029501
10463.865.7592486826884-1.95924868268835
10574.272.9739545667821.22604543321805
10691.791.10245160681090.597548393189143
107107107.230251561379-0.230251561378807
108120.7117.4217261900313.27827380996926
109127.4122.5241349591654.87586504083508
110119.7114.5472587980185.15274120198201
111112.7116.202276472486-3.50227647248602
11284.492.3779805670601-7.97798056706013
11375.676.7584937295897-1.15849372958974
11466.565.58524333612420.91475666387582
11559.959.59068361620790.309316383792051
11664.865.2339501219855-0.433950121985546
11774.374.25862141177380.041378588226209
118100.491.92440850361758.4755914963825
119105.9110.249785506968-4.34978550696826
120131.1121.00581345775810.0941865422421


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121128.712263377168120.049377636982137.375149117355
122119.321170256173110.106796928996128.535543583349
123115.997286361633106.24053656276125.754036160505
12490.706043426252280.9917962838517100.420290568653
12579.546609143009269.611275444399289.4819428416193
12669.06033270645558.985160102257979.135505310652
12762.292552707240752.002479422980572.582625991501
12867.764737194755456.580982191500778.9484921980102
12977.504277035961965.037395450132689.9711586217911
13099.460416775105884.4219638472468114.498869702965
131110.43526106934493.8438942830944127.026627855593
132128.72102132047-75.5544682539183332.996510894858
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/1k3ug1292525197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/1k3ug1292525197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/2dcu11292525197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/2dcu11292525197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/3dcu11292525197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292525097bt7078a20hymx0p/3dcu11292525197.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=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