Home » date » 2011 » Jan » 07 »

Katrien Monnens

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 07 Jan 2011 10:21:28 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c.htm/, Retrieved Fri, 07 Jan 2011 11:24:59 +0100
 
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/2011/Jan/07/t1294395895sib1reesfo9zs9c.htm/},
    year = {2011},
}
@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 = {2011},
    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 «
103,6 103,5 110,9 115,8 117,8 121,1 128,7 112,7 111,3 116,2 109,8 137,9 98,7 100,5 128,7 98,7 115 121 125,9 117,3 115 113,8 115,7 145,5 101,7 106,9 116,4 114,6 122,5 120,4 116,5 117 114,3 111,5 117,8 141,5 102,6 103,8 119,8 113,6 121,8 123,9 122,7 120 111,6 117,6 121,3 143,7 107,1 107,7 126,4 111,5 127,9 124,9 122 124,9 113,9 120,8 123,3 143,5 107,1 106,5 114,6 122,2 120,2 123,1 127,1 118,5 116,1 120,6 115,7 146,5 108 106,6 122,2 115,8 115,6 124,5 121,7 118,7 113,7 113,4 115,1 143,9 101 103,4 121,5 111,9 117,4 124,3 122 119,7 115 112,2 115,3 142,6 104,1 105,3 124,4 113,9 124,8 131,8 125,6 125 119,7 116,1 120 148,1 109,2 109,4 135,1 114,9 129 138,5 125,6 130,4 120,3 126,2 127,6 150,9 114,6 118,6 131,4 124,5 136,8 136,8 136,6 131 125,8 129,4 124,8 157,1 116,6 114,2 128,4 127,3 133,5 137,2 137,7 131,2 127,7 133,9 124,3 160,6
 
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' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.124782904318567
beta0.0179039618345825
gamma0.642046556523616


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1398.799.5514792359552-0.851479235955182
14100.5101.186626498397-0.686626498396592
15128.7129.071289161111-0.371289161111491
1698.798.894621967739-0.194621967738982
17115115.043003778345-0.0430037783449251
18121120.4421636377860.557836362214118
19125.9128.64681669265-2.74681669265038
20117.3112.6601358580134.63986414198695
21115111.2335427540043.76645724599564
22113.8116.59693691349-2.79693691349004
23115.7110.6356887457865.06431125421422
24145.5139.9028540933385.59714590666169
25101.7100.2725993214411.42740067855866
26106.9102.3396449472424.56035505275817
27116.4131.719787717374-15.319787717374
28114.699.55889567050615.0411043294939
29122.5118.1890157469144.31098425308571
30120.4124.722408429877-4.32240842987672
31116.5130.6914079712-14.1914079712002
32117117.249337309124-0.249337309124485
33114.3114.702800798375-0.402800798375239
34111.5115.871898419633-4.37189841963331
35117.8114.1150001154753.68499988452494
36141.5143.614551806-2.1145518059997
37102.6100.7854123150671.81458768493341
38103.8104.629414267297-0.829414267296826
39119.8121.857412789078-2.05741278907756
40113.6108.2137211712335.38627882876717
41121.8119.4769053621892.32309463781097
42123.9120.8587767340043.04122326599558
43122.7122.0749080449930.625091955007392
44120118.2951457974961.70485420250371
45111.6115.895519604463-4.29551960446308
46117.6114.3409822430723.2590177569281
47121.3118.1405908283973.15940917160302
48143.7144.766002801597-1.0660028015966
49107.1103.5987287872323.50127121276817
50107.7106.239902713521.46009728647982
51126.4123.4807527879332.91924721206662
52111.5114.410825733881-2.91082573388114
53127.9123.1157002337354.78429976626526
54124.9125.273425080016-0.373425080016062
55122124.72602874031-2.7260287403101
56124.9121.1053062272683.79469377273169
57113.9115.502693278039-1.60269327803894
58120.8118.6220610843782.17793891562235
59123.3122.3212723393870.978727660613458
60143.5146.752824609563-3.25282460956251
61107.1107.271661800121-0.17166180012147
62106.5108.328972168201-1.82897216820149
63114.6126.121282809906-11.5212828099064
64122.2112.02442892288810.1755710771124
65120.2126.782278955051-6.58227895505138
66123.1124.60708749814-1.50708749814044
67127.1122.5778188633494.52218113665064
68118.5123.511011359969-5.01101135996871
69116.1113.8112946491212.28870535087886
70120.6119.506453023231.09354697676989
71115.7122.365314346164-6.66531434616431
72146.5143.1571715127873.34282848721301
73108106.4533865082661.5466134917344
74106.6106.773525126446-0.173525126445867
75122.2119.1983750247673.001624975233
76115.8119.050635154009-3.25063515400946
77115.6122.663658891911-7.0636588919115
78124.5123.2553017944531.24469820554653
79121.7124.93180113119-3.23180113119049
80118.7119.544149057245-0.844149057245218
81113.7114.470922408307-0.770922408307456
82113.4119.044535840836-5.6445358408355
83115.1116.663351260973-1.56335126097279
84143.9143.3685264176070.531473582393147
85101105.800564697147-4.80056469714739
86103.4104.335173676482-0.935173676482023
87121.5118.0661952417683.4338047582316
88111.9114.494917880283-2.59491788028278
89117.4115.9268992151971.47310078480349
90124.3122.1296343269752.17036567302506
91122121.3831313632540.616868636745693
92119.7117.8322492167031.86775078329663
93115113.1601545903551.8398454096447
94112.2115.283096800987-3.08309680098731
95115.3115.507571867246-0.207571867245747
96142.6143.530933651912-0.93093365191217
97104.1102.8554384261741.24456157382554
98105.3104.3321219534690.967878046530643
99124.4120.8844124638253.51558753617505
100113.9113.8916062790260.00839372097395596
101124.8117.9972240790096.80277592099112
102131.8125.3942684536296.40573154637129
103125.6124.3079995253091.2920004746906
104125121.5228631710563.47713682894432
105119.7116.9624790256642.73752097433604
106116.1116.450764964515-0.350764964514937
107120118.7505597477771.24944025222312
108148.1147.4694024013540.630597598646062
109109.2106.9830316533512.2169683466487
110109.4108.5222928795910.877707120408928
111135.1127.1728998229967.9271001770043
112114.9118.459370337954-3.55937033795384
113129126.2627560827152.73724391728493
114138.5133.1685085086435.33149149135727
115125.6128.97991129073-3.37991129073023
116130.4126.8298265165943.57017348340644
117120.3121.755316356364-1.45531635636365
118126.2118.9567199914377.24328000856278
119127.6123.253367028444.34663297156024
120150.9153.067323096253-2.16732309625272
121114.6111.8528760791322.74712392086769
122118.6112.7694930320745.83050696792559
123131.4136.934545576043-5.53454557604331
124124.5119.6712888306934.82871116930671
125136.8132.545708970724.25429102928027
126136.8141.456402244201-4.65640224420054
127136.6130.8708872399335.72911276006693
128131133.900169820853-2.90016982085334
129125.8124.9608801531770.839119846823039
130129.4127.4342482649911.96575173500862
131124.8129.523521267203-4.72352126720308
132157.1155.1102300520311.98976994796917
133116.6116.240929778260.359070221740154
134114.2118.639110975567-4.43911097556681
135128.4135.305651392091-6.90565139209136
136127.3123.5666822805283.73331771947244
137133.5136.061330560736-2.56133056073585
138137.2139.083020496537-1.88302049653663
139137.7134.6231882461963.07681175380372
140131.2132.437914391599-1.23791439159888
141127.7125.7667408999791.93325910002123
142133.9128.9989944312384.90100556876195
143124.3127.657601896051-3.35760189605145
144160.6157.399412392843.20058760715978


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
145117.418455390456111.749787679765123.087123101147
146117.052279094637111.288247667941122.816310521332
147133.062275809172127.145566274249138.978985344096
148128.075932643284122.08422648088134.067638805688
149136.701686126751130.55228060113142.851091652373
150140.501162596636134.217157901978146.785167291293
151139.046247670726132.671093882388145.421401459063
152133.976352361688127.549644560669140.403060162706
153129.164861206277122.688499854547135.641222558007
154133.893570864278127.246643057547140.540498671008
155127.21420442533120.555704891543133.872703959117
156161.563355429668108.982952144954214.143758714383
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/1svl71294395685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/1svl71294395685.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/200r61294395685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/200r61294395685.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/3ky1j1294395685.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/07/t1294395895sib1reesfo9zs9c/3ky1j1294395685.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=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