Home » date » 2011 » May » 18 »

gemiddelde temperatuur Nederland

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 18 May 2011 14:40:51 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g.htm/, Retrieved Wed, 18 May 2011 16:36:46 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
17 16,7 15,4 15,1 16,1 17 16,1 14,3 16,1 14,8 15,9 17,6 15,9 14,8 16,5 15,6 14,6 17,1 15,2 14,8 15,4 16,6 15,1 15,4 15,2 16,6 16,1 15,7 15,8 15,7 16,9 15,9 17,1 17 16,6 17,1 16,6 16,6 16,5 17 15,9 17 16,1 16,1 16,8 16,7 15,7 18,7 16,1 16,3 17,2 16,1 16,5 16,5 15,1 16,7 14,4 16,2 15,9 17,3 15,6 15,6 14,7 15,8 15,8 14,8 16,1 16,3 16,1 17,4 16,7 16,1 15,4 16,9 15,5 17,6 18,4 15,9 15,2 15,5 15,9 15,8 17,6 18,2 15,9 15,7 16,4 15,6 15,8 17 16,8 16,6 17,7 15,7 18 18,2 16,4 18 16,3
 
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'Gwilym Jenkins' @ www.wessa.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.171048148072183
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
216.717-0.300000000000001
315.416.9486855555783-1.54868555557834
415.116.6837857593505-1.58378575935053
516.116.4128821382705-0.31288213827052
61716.35936422795450.640635772045517
716.116.4689437903517-0.368943790351661
814.316.4058366382693-2.10583663826928
916.116.04563718115080.0543628188492349
1014.816.0549358406389-1.25493584063891
1115.915.84028138914820.0597186108517835
1217.615.85049614693991.74950385306014
1315.916.1497455410509-0.249745541050943
1414.816.1070270287649-1.3070270287649
1516.515.88346247601440.616537523985627
1615.615.9889200777091-0.388920077709125
1714.615.9223960186689-1.32239601866889
1817.115.69620262865751.40379737134245
1915.215.9363195692943-0.736319569294274
2014.815.8103734705772-1.01037347057718
2115.415.6375509595737-0.237550959573687
2216.615.59691830786581.00308169213416
2315.115.7684935736705-0.668493573670498
2415.415.654148985896-0.254148985896004
2515.215.6106772725241-0.410677272524071
2616.615.54043168560351.05956831439651
2716.115.7216688835370.378331116463023
2815.715.7863817203661-0.0863817203660613
2915.815.77160628707020.0283937129298444
3015.715.7764629790837-0.0764629790837006
3116.915.76338412811541.13661587188465
3215.915.9578001680707-0.0578001680706688
3317.115.94791355636391.15208644363608
341716.14497580896690.85502419103306
3516.616.29122611340010.308773886599941
3617.116.3440413148760.755958685123971
3716.616.47334664798560.126653352014433
3816.616.49501046929480.104989530705229
3916.516.5129687340889-0.0129687340888687
401716.51075045614010.489249543859874
4115.916.5944356845625-0.694435684562519
421716.47565374676290.524346253237137
4316.116.5653422023277-0.465342202327662
4416.116.4857462803997-0.385746280399683
4516.816.41976509351160.380234906488415
4616.716.48480357009880.215196429901169
4715.716.5216125209052-0.821612520905173
4818.716.38107722077142.31892277922858
4916.116.7777246676809-0.67772466768087
5016.316.6618011183712-0.361801118371222
5117.216.59991570710340.600084292896618
5216.116.7025590140906-0.602559014090552
5316.516.5994924106262-0.099492410626162
5416.516.5824744180413-0.0824744180413184
5515.116.568367321572-1.46836732157202
5616.716.31720581052740.382794189472587
5714.416.3826820477295-1.98268204772949
5816.216.04354795524940.156452044750605
5915.916.0703087877661-0.170308787766091
6017.316.04117778501831.25882221498172
6115.616.256496993643-0.65649699364303
6215.616.1442043986654-0.544204398665434
6314.716.051119244101-1.35111924410097
6415.815.8200127995728-0.0200127995728145
6515.815.8165896472681-0.0165896472681446
6614.815.8137520188258-1.01375201882576
6716.115.64035161340120.459648386598825
6816.315.71897361869330.581026381306728
6916.115.81835710519690.281642894803131
7017.415.86653160077061.53346839922936
7116.716.1288285305860.571171469413969
7216.116.226526352661-0.126526352660957
7315.416.204884254356-0.804884254355974
7416.916.06721029323590.832789706764075
7515.516.2096574303115-0.709657430311495
7617.616.0882718410911.51172815890895
7718.416.3468501430612.053149856939
7815.916.6980376238051-0.798037623805081
7915.216.5615347661613-1.3615347661613
8015.516.3286467658735-0.828646765873515
8115.916.1869082711648-0.286908271164846
8215.816.1378331427155-0.337833142715507
8317.616.08004740929661.51995259070339
8418.216.34003248509391.85996751490605
8515.916.658176483993-0.758176483993045
8615.716.5284918004942-0.828491800494156
8716.416.38677981232660.0132201876733582
8815.616.3890411009453-0.789041100945335
8915.816.2540770818758-0.454077081875798
901716.17640803793890.823591962061077
9116.816.31728191781660.482718082183393
9216.616.3998499518150.20015004818497
9317.716.43408524689361.26591475310637
9415.716.6506176210297-0.950617621029732
951816.48801623742781.51198376257219
9618.216.7466382599311.453361740069
9716.416.9952330940488-0.595233094048766
981816.89341957564041.10658042435955
9916.317.0826981079201-0.78269810792008


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
10016.948819046060715.138989048653318.7586490434682
10116.948819046060715.11270439574718.7849336963745
10216.948819046060715.086790743730818.8108473483907
10316.948819046060715.061232812730318.8364052793912
10416.948819046060715.036016343783418.8616217483381
10516.948819046060715.011128005822318.8865100862992
10616.948819046060714.986555313276218.9110827788452
10716.948819046060714.9622865528518.9353515392715
10816.948819046060714.938310718258318.9593273738632
10916.948819046060714.914617451885718.9830206402358
11016.948819046060714.891196992493819.0064410996277
11116.948819046060714.868040128225919.0295979638956
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/1404k1305729648.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/1404k1305729648.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/2ovkl1305729648.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/2ovkl1305729648.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/3agd51305729648.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305729403zi7klyeqjdaiu7g/3agd51305729648.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; 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