Home » date » 2008 » May » 28 »

aankoopprijs nieuwe wagens Lode Merckx

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 14:16:37 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk.htm/, Retrieved Wed, 28 May 2008 22:18:31 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101,6 101,8 102,1 102,1 101,9 102,1 102 102,1 102,2 102,3 102,7 102,8 103,1 103,1 103,3 103,5 103,3 103,5 103,8 103,9 103,9 104,2 104,6 104,9 105,2 105,2 105,6 105,6 106,2 106,3 106,4 106,9 107,2 107,3 107,3 107,4 107,55 107,87 108,37 108,38 107,92 108,03 108,14 108,3 108,64 108,66 109,04 109,03 109,03 109,54 109,75 109,83 109,65 109,82 109,95 110,12 110,15 110,2 109,99 110,14 110,14 110,81 110,97 110,99 109,73 109,81 110,02 110,18 110,21 110,25 110,36 110,51 110,64 110,95 111,18 111,19 111,69 111,7 111,83 111,77 111,73 112,01 111,86 112,04
 
Text written by user:
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.963580582065361
beta0.0293940647936531
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13103.1101.9027222222221.19727777777773
14103.1103.267319678465-0.167319678465049
15103.3103.312278436247-0.0122784362469446
16103.5103.506284155546-0.00628415554575668
17103.3103.705887857737-0.405887857737483
18103.5103.508945006917-0.00894500691718747
19103.8103.6942352249860.105764775014251
20103.9103.993053195396-0.0930531953964362
21103.9104.097658433315-0.197658433315397
22104.2104.0958697066620.104130293338088
23104.6104.3878280764740.212171923525588
24104.9104.7899027252880.110097274711791
25105.2105.0967385702560.103261429743966
26105.2105.399912258026-0.199912258025790
27105.6105.4052914424190.194708557580952
28105.6105.796434419588-0.196434419588115
29106.2105.8051158990290.394884100971495
30106.3106.394764942299-0.0947649422987666
31106.4106.509913595859-0.109913595859467
32106.9106.6073521577700.292647842230295
33107.2107.1009799303220.0990200696781613
34107.3107.410836340995-0.110836340994950
35107.3107.515339910669-0.215339910668519
36107.4107.513046679108-0.113046679107711
37107.55107.606119335880-0.056119335880453
38107.87107.7524565763560.117543423643795
39108.37108.0694611267820.3005388732184
40108.38108.571308866845-0.191308866844935
41107.92108.593803128983-0.673803128982883
42108.03108.132290792510-0.102290792510303
43108.14108.218579407491-0.0785794074908495
44108.3108.325490204868-0.0254902048680208
45108.64108.4828347539160.157165246083821
46108.66108.820634026426-0.160634026425569
47109.04108.8476583650610.192341634938913
48109.03109.220250994856-0.190250994855532
49109.03109.218796212161-0.188796212161364
50109.54109.2133958508560.326604149144458
51109.75109.7138758586630.0361241413373961
52109.83109.935478135394-0.105478135394250
53109.65110.017647692643-0.367647692642620
54109.82109.836782667490-0.0167826674896503
55109.95109.993529022777-0.0435290227770935
56110.12110.123270213013-0.00327021301272623
57110.15110.291711386552-0.141711386552387
58110.2110.322739563959-0.122739563959357
59109.99110.368572201039-0.378572201038821
60110.14110.157166968081-0.0171669680812983
61110.14110.293518570379-0.15351857037858
62110.81110.2941362254550.515863774545039
63110.97110.9543688035210.0156311964787932
64110.99111.133029713822-0.143029713822330
65109.73111.154756942565-1.4247569425645
66109.81109.901082527596-0.0910825275957592
67110.02109.9299311011580.0900688988419489
68110.18110.1358847426150.0441152573853856
69110.21110.298807848190-0.0888078481895747
70110.25110.331133476790-0.0811334767904697
71110.36110.368555992559-0.00855599255943673
72110.51110.4756704267450.0343295732550217
73110.64110.6250808947870.0149191052130391
74110.95110.7562103747580.193789625241720
75111.18111.0651848246850.114815175314590
76111.19111.301313001550-0.111313001549519
77111.69111.3163956787570.373604321242553
78111.7111.809317072811-0.10931707281145
79111.83111.833808541307-0.0038085413065545
80111.77111.959858110592-0.189858110591643
81111.73111.901256471912-0.171256471911761
82112.01111.8557284198030.154271580197417
83111.86112.128242396448-0.268242396448429
84112.04111.9860325326020.0539674673977686


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85112.155826387173NANA
86112.273618238096NANA
87112.391410089018NANA
88112.509201939941NANA
89112.626993790864NANA
90112.744785641787NANA
91112.862577492710NANA
92112.980369343633NANA
93113.098161194555NANA
94113.215953045478NANA
95113.333744896401NANA
96113.451536747324NANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/1jj851212005791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/1jj851212005791.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/2jv981212005791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/2jv981212005791.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/34hei1212005791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212005911bbc02srrbhmkwjk/34hei1212005791.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