Home » date » 2009 » Jun » 02 »

exponential smoothing - nietwerkende werkzoekenden - Lize Geunes

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 07:48:47 -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/Jun/02/t1243950566idl0oshicz8ealm.htm/, Retrieved Tue, 02 Jun 2009 15:49:30 +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/Jun/02/t1243950566idl0oshicz8ealm.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 «
220206 220115 218444 214912 210705 209673 237041 242081 241878 242621 238545 240337 244752 244576 241572 240541 236089 236997 264579 270349 269645 267037 258113 262813 267413 267366 264777 258863 254844 254868 277267 285351 286602 283042 276687 277915 277128 277103 275037 270150 267140 264993 287259 291186 292300 288186 281477 282656 280190 280408 276836 275216 274352 271311 289802 290726 292300 278506 269826 265861 269034 264176 255198 253353 246057 235372 258556 260993 254663 250643 243422 247105 248541 245039 237080 237085 225554 226839 247934 248333 246969 245098 246263 255765 264319
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.921339261357122
beta0.180937138360347
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13244752232009.03445512812742.9655448717
14244576245522.595096673-946.595096672943
15241572243428.082729499-1856.08272949874
16240541242319.706374761-1778.70637476142
17236089237906.726555531-1817.72655553120
18236997238595.606067781-1598.60606778093
19264579263190.5417467341388.45825326623
20270349270640.247618376-291.247618376219
21269645271309.905570763-1664.90557076276
22267037271333.744620185-4296.74462018523
23258113263303.480405773-5190.48040577321
24262813259381.8809369873431.11906301271
25267413267511.303588251-98.3035882508848
26267366265663.0075641421702.99243585835
27264777263925.961088967851.038911032956
28258863263756.975839852-4893.97583985189
29254844254390.50436265453.495637350221
30254868255487.606934048-619.606934048032
31277267279681.121890495-2414.12189049466
32285351281322.9515482484028.04845175165
33286602284411.856719852190.14328014990
34283042286970.898294348-3928.89829434769
35276687278460.982126856-1773.98212685587
36277915278186.602344273-271.602344273007
37277128281830.95941776-4702.95941775985
38277103274318.311691052784.68830895005
39275037272127.5895796622909.41042033804
40270150272363.026264794-2213.02626479388
41267140265294.0518272051845.94817279465
42264993267228.589519252-2235.58951925213
43287259289161.611821614-1902.61182161386
44291186291236.266110164-50.2661101644044
45292300289198.0200748343101.97992516571
46288186291042.782580104-2856.78258010407
47281477282795.820872853-1318.82087285299
48282656282240.519614241415.480385759322
49280190285465.421224797-5275.4212247968
50280408277214.9759699503193.02403005044
51276836274679.0018309592156.99816904112
52275216272961.5679220902254.43207791046
53274352270215.9565506304136.04344936967
54271311274209.197696483-2898.19769648334
55289802295717.271116954-5915.27111695439
56290726293731.029192182-3005.02919218160
57292300288216.2471080304083.75289196969
58278506289658.346079567-11152.3460795669
59269826271667.936697812-1841.93669781188
60265861268458.487421693-2597.48742169334
61269034265648.8954260953385.10457390529
62264176264676.737756064-500.737756063812
63255198256673.165612966-1475.16561296556
64253353249028.5471335864324.45286641447
65246057246094.824187623-37.8241876228421
66235372242750.084191101-7378.08419110082
67258556256207.4054707872348.59452921333
68260993259755.6010958531237.39890414698
69254663257106.067124817-2443.06712481679
70250643248647.1412752421995.85872475817
71243422243005.791154965416.208845035406
72247105241696.6091268915408.39087310899
73248541247947.539364303593.460635697207
74245039244846.084858005192.915141995181
75237080238269.005756521-1189.00575652113
76237085232255.9966019574829.00339804275
77225554230439.863514258-4885.8635142576
78226839222238.7219305894600.27806941132
79247934249681.810803709-1747.81080370874
80248333250870.055160424-2537.05516042383
81246969245325.8771194361643.12288056378
82245098242534.4907820822563.50921791792
83246263238940.1158519617322.88414803939
84255765247186.6203820748578.37961792576
85264319259307.497804615011.50219538985


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
86264309.616669019256899.23533014271719.998007898
87261478.499962085250527.572899378272429.427024793
88261264.967743390246899.083236489275630.852250292
89257661.107284032239847.253046961275474.961521103
90258947.787527314237597.395313867280298.179740760
91285126.324277284260127.357876168310125.290678400
92291627.390747517262857.392973076320397.388521957
93292937.033554246260269.239797812325604.827310679
94292617.772331913255924.225203949329311.319459877
95290522.163631672249675.378244173331368.949019171
96294386.059999668249259.9331474339512.186851937
97299158.206183333249628.509089475348687.90327719
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/1lav41243950525.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/1lav41243950525.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/23mq81243950525.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/23mq81243950525.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/3mru81243950525.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243950566idl0oshicz8ealm/3mru81243950525.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