Home » date » 2009 » Aug » 19 »

exponential smoothing- ihuur nietsociale woning-olivier bosiers

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 19 Aug 2009 03:43:33 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36.htm/, Retrieved Wed, 19 Aug 2009 11:44:34 +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/2009/Aug/19/t1250675074yjmqar8uey12t36.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
102,2 102,4 102,4 102,5 102,5 102,6 102,8 102,9 102,9 103,1 103,2 103,3 103,6 103,7 103,8 104 104 104,1 104,2 104,3 104,4 104,5 104,7 104,7 104,9 105 105,2 105,3 105,4 105,5 105,7 105,8 105,9 106 106,1 106,2 106,6 106,8 107 107,1 107,3 107,4 107,6 107,7 107,9 108,2 108,3 108,5 108,92 109,23 109,41 109,65 109,91 110,01 110,2 110,49 110,57 110,72 110,94 111,09 111,28 111,41 111,62 111,76 111,89 112,04 112,12 112,3 112,47 112,59 112,78 112,73 112,99 113,1 113,33 113,38 113,68 113,65 113,81 113,88 114,02 114,25 114,28 114,38 114,73 114,97 115,05 115,29 115,37 115,54 115,76 115,92 116,02 116,21 116,26 116,51
 
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
alpha0.846107257208812
beta0.0470191847945091
gamma0.383076569353457


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13103.6102.8692840195060.730715980494367
14103.7103.6203586681990.0796413318009428
15103.8103.819530923376-0.0195309233760952
16104104.034039230561-0.0340392305605519
17104104.03487490211-0.0348749021100048
18104.1104.133615423051-0.0336154230506907
19104.2104.269707049563-0.0697070495629362
20104.3104.343029328404-0.0430293284039323
21104.4104.3358137448860.0641862551144357
22104.5104.616246080153-0.116246080152990
23104.7104.6337297492520.0662702507485022
24104.7104.808257117621-0.108257117620596
25104.9105.081542298681-0.181542298680569
26105105.004477949696-0.00447794969601034
27105.2105.1058098787780.0941901212221126
28105.3105.400754181454-0.100754181454008
29105.4105.3249637946770.0750362053225473
30105.5105.502270990402-0.00227099040216672
31105.7105.6499678031230.0500321968774102
32105.8105.817798259421-0.0177982594209283
33105.9105.8294970068140.0705029931860253
34106106.098669181665-0.0986691816651302
35106.1106.135313429479-0.0353134294793875
36106.2106.202818306406-0.00281830640589931
37106.6106.5580065183960.0419934816037824
38106.8106.6825644411410.117435558859199
39107106.9001229735720.099877026428345
40107.1107.197390404024-0.0973904040235993
41107.3107.1408646870140.159135312986479
42107.4107.3956364151190.00436358488083499
43107.6107.5639397135980.0360602864022752
44107.7107.726706048313-0.0267060483128603
45107.9107.7448677514820.155132248518456
46108.2108.0908456016550.109154398344955
47108.3108.329145797695-0.0291457976945964
48108.5108.4256212443960.074378755604215
49108.92108.8793204761310.0406795238688886
50109.23109.0319078708800.198092129119829
51109.41109.3449684998890.0650315001114166
52109.65109.6298460227940.0201539772058084
53109.91109.7176279096340.19237209036622
54110.01110.023941713478-0.0139417134775499
55110.2110.211787012894-0.0117870128943025
56110.49110.3606673967630.129332603237160
57110.57110.5560581350530.0139418649465171
58110.72110.812667543877-0.092667543876857
59110.94110.8949008233380.0450991766624469
60111.09111.0858503805360.00414961946357550
61111.28111.507141263227-0.227141263227026
62111.41111.454498797205-0.0444987972049233
63111.62111.5570241013640.062975898636239
64111.76111.841759096411-0.08175909641065
65111.89111.8507438850630.0392561149365918
66112.04112.0074416135730.0325583864265582
67112.12112.229960908603-0.109960908603099
68112.3112.2948043611040.00519563889550057
69112.47112.3626297461860.107370253813556
70112.59112.682630414063-0.0926304140631515
71112.78112.7625231237650.0174768762346247
72112.73112.915768525520-0.185768525519819
73112.99113.147052434465-0.157052434464575
74113.1113.147926783101-0.0479267831010048
75113.33113.2371750538300.092824946170424
76113.38113.524224418429-0.144224418428891
77113.68113.4686198292360.211380170763562
78113.65113.759015207191-0.109015207191050
79113.81113.837127504860-0.0271275048595072
80113.88113.965671097104-0.0856710971041537
81114.02113.9445089972330.075491002767464
82114.25114.2083628931740.041637106826002
83114.28114.395636229815-0.115636229814953
84114.38114.405734508492-0.0257345084923486
85114.73114.765810354900-0.0358103548997093
86114.97114.8686781915320.101321808467731
87115.05115.091395109796-0.0413951097961984
88115.29115.2452736647010.0447263352987477
89115.37115.370738575217-0.0007385752172695
90115.54115.4546438266530.0853561733471082
91115.76115.7029843959190.0570156040805614
92115.92115.9031239987710.0168760012288089
93116.02115.9846579426680.0353420573318886
94116.21116.219760167804-0.00976016780424516
95116.26116.358445224737-0.0984452247368353
96116.51116.3928131584780.117186841522269


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97116.888266642542116.675873826554117.10065945853
98117.041579647035116.744386770874117.338772523197
99117.177890715279116.809827050053117.545954380504
100117.382485556277116.950166844580117.814804267973
101117.474233041144116.981978573018117.966487509271
102117.570750089386117.021068314577118.120431864195
103117.750192749921117.144380703015118.356004796827
104117.901975676058117.241257461976118.56269389014
105117.970499911358117.256058984311118.684940838404
106118.174075675467117.405600602066118.942550748868
107118.316191837995117.494319792615119.138063883375
108118.450737262555116.895360912129120.00611361298
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/1oicr1250675008.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/1oicr1250675008.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/2buh01250675008.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/2buh01250675008.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/3iacw1250675008.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250675074yjmqar8uey12t36/3iacw1250675008.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