Home » date » 2008 » May » 27 »

inschrijvingsgeld studenten-exponential smoothing-Natalie Van Nylen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 05:53:50 -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/27/t1211889334bmvt3eogty6w8b6.htm/, Retrieved Tue, 27 May 2008 13:55:34 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
513,13 513,13 513,13 513,13 513,13 513,13 513,13 513,13 513,13 527,96 527,96 527,96 527,96 527,96 527,96 527,96 527,96 527,96 527,96 527,96 527,96 536,61 536,61 536,61 536,61 536,61 536,61 536,61 536,61 536,61 536,61 536,61 536,61 545,06 545,06 545,06 545,06 545,06 545,06 545,06 545,06 545,06 545,06 545,06 545,06 564,24 564,24 564,24 564,24 564,24 564,24 564,24 564,24 564,24 564,24 564,24 564,24 573,68 573,68 573,68 573,68 573,68 573,68 573,68 573,68 573,68 573,68 573,68 573,68 576,3 576,29 576,29 576,29 576,29 576,29 576,29 576,29 576,3 576,29 576,3 576,29 589,85 589,85 589,85 589,85 589,85 589,85 589,85 589,85 589,85 589,85 589,85 589,85 599,12 599,12 599,12
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.826917432391495
beta0.00124120623207274
gamma0.000613968311953702


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13527.96521.9920833333345.9679166666665
14527.96526.5803659519641.37963404803634
15527.96527.3759337105030.584066289496946
16527.96527.7717320919370.188267908063494
17527.96528.097931125538-0.137931125537875
18527.96528.154248922756-0.194248922756174
19527.96528.163797179449-0.203797179448998
20527.96528.165240643889-0.205240643889169
21527.96528.16527982854-0.205279828540256
22536.61536.815075916622-0.205075916622036
23536.61536.814830138215-0.204830138215243
24536.61536.81457736571-0.204577365709952
25536.61538.102457835952-1.49245783595245
26536.61536.5202138951320.0897861048678124
27536.61536.2468502467250.36314975327457
28536.61536.4574509747990.152549025200983
29536.61536.751566258199-0.141566258199418
30536.61536.802355866071-0.192355866071466
31536.61536.810954202613-0.20095420261282
32536.61536.812237031668-0.20223703166846
33536.61536.812251645196-0.202251645196384
34545.06545.46204661433-0.402046614329947
35545.06545.29621499441-0.236214994409806
36545.06545.267269987405-0.207269987405084
37545.06546.550044682062-1.49004468206192
38545.06544.9672244974140.0927755025863917
39545.06544.6936250884290.366374911570574
40545.06544.9041368911340.155863108865901
41545.06545.198231309737-0.138231309737193
42545.06545.249046586726-0.189046586725681
43545.06545.257657246254-0.197657246254039
44545.06545.258946369516-0.198946369516420
45545.06545.258965584685-0.198965584685197
46564.24553.90874349291210.3312565070883
47564.24562.6267882184731.61321178152718
48564.24564.1373709986390.102629001360697
49564.24565.686789795405-1.44678979540538
50564.24564.1504699711030.0895300288967746
51564.24563.8847765055680.35522349443238
52564.24564.0965937985790.143406201421499
53564.24564.390892507245-0.150892507245089
54564.24564.441756000741-0.201756000740943
55564.24564.450366446048-0.210366446047601
56564.24564.451643265865-0.211643265865177
57564.24564.451647454694-0.211647454693662
58573.68573.1025287651520.577471234848417
59573.68573.754532177217-0.0745321772166108
60573.68573.868057474968-0.188057474967650
61573.68575.175367495233-1.49536749523281
62573.68573.5974209161530.0825790838468947
63573.68573.3243804248220.355619575177798
64573.68573.5348757385350.145124261465298
65573.68573.828938633934-0.148938633933767
66573.68573.879789186852-0.199789186852172
67573.68573.888403901173-0.208403901172915
68573.68573.889684253513-0.209684253513387
69573.68573.88969119968-0.209691199680606
70576.3582.540658853125-6.24065885312518
71576.29577.545949217969-1.25594921796858
72576.29576.672702394204-0.382702394203648
73576.29577.808892723166-1.51889272316566
74576.29576.2016107710140.0883892289864434
75576.29575.9233601326460.366639867354024
76576.29576.1329135876830.157086412317085
77576.29576.426816860924-0.136816860923773
78576.3576.477678073012-0.177678073012316
79576.29576.494590989154-0.204590989154212
80576.3576.489043134129-0.189043134128838
81576.29576.496158731808-0.206158731808500
82589.85585.1394503268434.71054967315717
83589.85589.2022994628860.647700537114133
84589.85589.906544286791-0.0565442867909951
85589.85591.31589214378-1.46589214377946
86589.85589.7562349375630.0937650624367734
87589.85589.4860915976730.363908402326615
88589.85589.6969936436590.153006356341280
89589.85589.991117183196-0.141117183195547
90589.85590.042038995871-0.192038995871144
91589.85590.050679969148-0.200679969147586
92589.85590.051978085697-0.201978085696965
93589.85590.051992680225-0.201992680224748
94599.12598.7028529693770.417147030622914
95599.12599.214175455488-0.0941754554883119
96599.12599.303308394385-0.183308394384994


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97600.605986070096597.366650388677603.845321751516
98600.258473963714596.052959150077604.463988777351
99599.910534720117594.92081938788604.900250052353
100599.819829999531594.151847067988605.487812931074
101599.986579465223593.711813238305606.261345692142
102600.153513769703593.324365706026606.98266183338
103600.320476966478592.977468806333607.663485126623
104600.487449431184592.663113676393608.311785185974
105600.65441925074592.375610829532608.933227671949
106609.472519949444600.76188808015618.183151818737
107609.638557144742600.515533075183618.7615812143
108609.80536779441600.286855682872619.323879905947
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/1o8nl1211889224.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/1o8nl1211889224.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/2qe4k1211889224.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/2qe4k1211889224.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/3g9vw1211889224.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211889334bmvt3eogty6w8b6/3g9vw1211889224.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=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