Home » date » 2010 » May » 26 »

Wisselkoers

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 26 May 2010 15:18:21 +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/26/t1274887242tjp1wwicwa4107q.htm/, Retrieved Wed, 26 May 2010 17:20:42 +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/26/t1274887242tjp1wwicwa4107q.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:
KDG2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,8833 0,87 0,8758 0,8858 0,917 0,9554 0,9922 0,9778 0,9808 0,9811 1,0014 1,0183 1,0622 1,0773 1,0807 1,0848 1,1582 1,1663 1,1372 1,1139 1,1222 1,1692 1,1702 1,2286 1,2613 1,2646 1,2262 1,1985 1,2007 1,2138 1,2266 1,2176 1,2218 1,249 1,2991 1,3408 1,3119 1,3014 1,3201 1,2938 1,2694 1,2165 1,2037 1,2292 1,2256 1,2015 1,1786 1,1856 1,2103 1,1938 1,202 1,2271 1,277 1,265 1,2684 1,2811 1,2727 1,2611 1,2881 1,3213 1,2999 1,3074 1,3242 1,3516 1,3511 1,3419 1,3716 1,3622 1,3896 1,4227 1,4684 1,457 1,4718 1,4748 1,5527 1,575 1,5557 1,5553 1,577 1,4975 1,4369 1,3322 1,2732 1,3449 1,3239 1,2785 1,305 1,319 1,365 1,4016 1,4088 1,4268 1,4562 1,4816 1,4914 1,4614 1,4272
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0.0784959467629734


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.06220.9411157512626270.121084248737373
141.07731.06558750.0117125000000002
151.08071.06913750.0115624999999997
161.08481.071070833333330.0137291666666668
171.15821.143329166666670.0148708333333334
181.16631.150504166666670.0157958333333332
191.13721.161975-0.024775
201.11391.106708333333330.00719166666666649
211.12221.0997250.0224750000000002
221.16921.105670833333330.0635291666666669
231.17021.17115833333333-0.000958333333333838
241.22861.16826250.0603375000000002
251.26131.257670833333330.00362916666666679
261.26461.2646875-8.7499999999796e-05
271.22621.2564375-0.0302375000000004
281.19851.21657083333333-0.0180708333333333
291.20071.25702916666667-0.0563291666666663
301.21381.193004166666670.0207958333333331
311.22661.2094750.0171249999999998
321.21761.196108333333330.0214916666666667
331.22181.2034250.0183750000000000
341.2491.205270833333330.043729166666667
351.29911.250958333333330.0481416666666661
361.34081.29716250.0436375000000002
371.31191.36987083333333-0.0579708333333333
381.30141.3152875-0.0138874999999998
391.32011.29323750.0268624999999998
401.29381.31047083333333-0.0166708333333332
411.26941.35232916666667-0.0829291666666665
421.21651.26170416666667-0.0452041666666669
431.20371.212175-0.00847500000000001
441.22921.173208333333330.0559916666666667
451.22561.2150250.010575
461.20151.20907083333333-0.00757083333333308
471.17861.20345833333333-0.0248583333333336
481.18561.17666250.00893750000000004
491.21031.21467083333333-0.00437083333333343
501.19381.2136875-0.0198874999999996
511.2021.18563750.0163624999999996
521.22711.192370833333330.0347291666666669
531.2771.28562916666667-0.00862916666666669
541.2651.26930416666667-0.00430416666666678
551.26841.2606750.00772499999999998
561.28111.237908333333330.0431916666666665
571.27271.2669250.00577500000000009
581.26111.256170833333330.0049291666666671
591.28811.263058333333330.0250416666666662
601.32131.28616250.0351375000000000
611.29991.35037083333333-0.0504708333333332
621.30741.30328750.00411250000000019
631.32421.29923750.0249624999999998
641.35161.314570833333330.0370291666666667
651.35111.41012916666667-0.0590291666666665
661.34191.34340416666667-0.00150416666666664
671.37161.3375750.0340249999999997
681.36221.341108333333330.0210916666666667
691.38961.3480250.0415749999999999
701.42271.373070833333330.0496291666666671
711.46841.424658333333330.0437416666666661
721.4571.4664625-0.0094624999999997
731.47181.48607083333333-0.0142708333333335
741.47481.4751875-0.000387499999999541
751.55271.46663750.0860624999999995
761.5751.543070833333330.0319291666666668
771.55571.63352916666667-0.0778291666666664
781.55531.548004166666670.00729583333333306
791.5771.5509750.0260250000000000
801.49751.54650833333333-0.0490083333333333
811.43691.483325-0.0464249999999999
821.33221.42037083333333-0.088170833333333
831.27321.33415833333333-0.0609583333333337
841.34491.27126250.0736375
851.32391.37397083333333-0.0500708333333333
861.27851.3272875-0.0487874999999998
871.3051.27033750.0346624999999996
881.3191.295370833333330.0236291666666668
891.3651.37752916666667-0.0125291666666665
901.40161.357304166666670.0442958333333332
911.40881.3972750.011525
921.42681.378308333333330.0484916666666666
931.45621.4126250.0435749999999999
941.48161.439670833333330.041929166666667
951.49141.483558333333330.0078416666666663
961.46141.4894625-0.0280624999999999
971.42721.49047083333333-0.0632708333333334


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
981.43058751.353598984827701.50757601517230
991.4224251.313546797696371.53130320230363
1001.412795833333331.279447813455631.54614385321104
1011.4713251.317347969655411.62530203034459
1021.463629166666671.291477613254641.63578072007869
1031.459304166666671.270721588440021.64788674489331
1041.42881251.225120035045981.63250496495402
1051.41463751.196881095392751.63239390460725
1061.398108333333331.167142787816451.62907387885022
1071.400066666666671.156607605047781.64352572828555
1081.398129166666671.142787148673581.65347118465976
1091.42721.160503960244591.69389603975541
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/1dmg81274887097.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/1dmg81274887097.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/2dmg81274887097.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/2dmg81274887097.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/36vft1274887097.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/26/t1274887242tjp1wwicwa4107q/36vft1274887097.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