Home » date » 2010 » Aug » 16 »

exponential Smoothing - maandelijkse bezoekers - mattias debbaut

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 16 Aug 2010 19:19:58 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz.htm/, Retrieved Mon, 16 Aug 2010 21:21:17 +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/2010/Aug/16/t1281986473kj0hff1h37nkuiz.htm/},
    year = {2010},
}
@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 = {2010},
    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:
mattias debbaut
 
Dataseries X:
» Textbox « » Textfile « » CSV «
900 899 898 896 916 915 900 890 891 891 892 894 896 889 878 883 901 897 881 866 867 866 862 871 865 856 847 859 870 872 856 839 829 825 822 827 822 812 810 816 820 823 810 793 777 772 765 765 753 742 736 740 742 742 728 707 699 696 689 692 673 653 642 648 654 653 630 609 598 601 592 591 568 538 523 530 529 534 513 491 480 478 462 461 437 411 400 405 395 407 385 366 349 343 332 327 306 276 269 268 260 274 247 226 212 199 188 179 155 124 117 116 105 112 86 64 53 42 32 24
 
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.474509737981929
beta0.109980424057153
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13896903.770888491585-7.77088849158486
14889892.83650764698-3.83650764697927
15878879.78255457044-1.78255457043906
16883883.677270637965-0.67727063796508
17901901.309957990233-0.309957990232760
18897897.00751071256-0.00751071256001978
19881879.9808478864781.01915211352241
20866868.959308324936-2.95930832493616
21867867.292335495294-0.292335495294196
22866866.018077851283-0.0180778512832376
23862865.638398416371-3.63839841637139
24871864.5083038618166.49169613818378
25865864.7479704950670.252029504932693
26856859.49110324043-3.49110324042977
27847847.675768997403-0.675768997402656
28859852.183016587226.8169834127807
29870873.09086321796-3.09086321795951
30872867.7021826935354.29781730646539
31856853.9299246018142.07007539818596
32839841.943201446102-2.94320144610219
33829841.875940892999-12.8759408929988
34825834.360315607434-9.36031560743447
35822826.784407948278-4.78440794827816
36827829.129726468095-2.12972646809533
37822820.82228929731.17771070270044
38812812.980619331017-0.98061933101701
39810802.982719714997.01728028501054
40816813.7445455213682.25545447863203
41820825.489205821766-5.48920582176584
42823821.5502354602971.44976453970332
43810804.812899675235.18710032477054
44793791.3343954758851.66560452411511
45777787.418860610278-10.4188606102782
46772781.961988489794-9.96198848979361
47765775.565519365578-10.5655193655775
48765774.860936287358-9.8609362873583
49753763.250970817308-10.2509708173083
50742747.229430873978-5.22943087397778
51736737.245218203866-1.24521820386576
52740738.0771593873581.92284061264218
53742741.847279925470.152720074530293
54742741.1388202161920.861179783808097
55728724.7425280877083.25747191229209
56707707.43442221544-0.434422215440236
57699694.3515142890714.64848571092864
58696694.0295097921661.97049020783356
59689691.465648497205-2.46564849720528
60692693.16948672136-1.16948672135993
61673685.220962762477-12.2209627624771
62653670.655439264295-17.6554392642953
63642655.642040473916-13.6420404739156
64648649.334880788702-1.33488078870209
65654647.6148260812176.38517391878338
66653647.818782676935.18121732306997
67630634.439669594048-4.43966959404827
68609611.689698128818-2.68969812881812
69598598.880552017984-0.880552017983973
70601592.0761177764838.92388222351747
71592588.6800004423683.31999955763217
72591590.9185397143580.0814602856419242
73568577.322600841805-9.3226008418053
74538560.646388107491-22.6463881074912
75523543.286387955832-20.2863879558323
76530535.807350992743-5.80735099274261
77529531.738635342179-2.73863534217855
78534523.3453726630110.6546273369898
79513507.6111869168385.38881308316201
80491490.8555126286050.144487371395201
81480479.1638990907390.83610090926146
82478475.3288742643892.67112573561121
83462464.709057863621-2.70905786362118
84461458.7227478915832.27725210841652
85437441.589932636353-4.5899326363529
86411420.786323599084-9.78632359908397
87400408.6521977364-8.65219773639961
88405409.14032888495-4.14032888494961
89395404.366251105912-9.36625110591217
90407396.22254422560110.7774557743990
91385380.1870051958874.81299480411258
92366362.6491256849183.35087431508248
93349352.563721873452-3.56372187345175
94343344.895839178019-1.89583917801906
95332329.5568471730162.44315282698352
96327325.5123861460911.48761385390941
97306307.07581436036-1.0758143603598
98276288.009108495393-12.0091084953934
99269273.570104211447-4.57010421144713
100268271.955898722831-3.95589872283085
101260261.930948891483-1.93094889148279
102274261.06124060616912.9387593938314
103247247.179743554591-0.179743554591198
104226229.589440102179-3.58944010217937
105212213.634612075621-1.63461207562054
106199204.857537420710-5.85753742071049
107188189.584014525368-1.58401452536751
108179179.806136301810-0.80613630181034
109155162.297327857733-7.29732785773254
110124139.9346030249-15.9346030249000
111117122.761255042656-5.76125504265616
112116112.2284388462793.77156115372080
113105102.7322101767032.26778982329726
11411297.809218749405814.1907812505942
1158685.95493565760720.0450643423927772
1166470.8606110124776-6.86061101247756
1175354.5112363119745-1.51123631197454
1184241.45977952976620.540220470233834
1193229.37697362302442.62302637697558
1202418.46655428853285.53344571146723


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1218.25680434010511-4.3887295257542720.9023382059645
122-3.16451383997611-17.198054711519410.8690270315672
123-14.7319763741312-30.86820555401821.40425280575568
124-28.4686487311091-47.3327159661397-9.60458149607852
125-41.3210877826505-62.3723405562992-20.2698350090018
126-61.510553324487-87.0604936165888-35.9606130323852
127-66.7573082191459-92.0681891928197-41.4464272454722
128-72.5503927618333-98.293345006633-46.8074405170336
129-86.623910827988-115.29354711593-57.9542745400462
130-101.048454177377-132.755180217567-69.3417281371869
131-118.243073530658-153.736302072643-82.749844988674
132-144.966165330087-184.780290439648-105.152040220525
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/1s31b1281986396.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/1s31b1281986396.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/2s31b1281986396.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/2s31b1281986396.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/3lu1e1281986396.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281986473kj0hff1h37nkuiz/3lu1e1281986396.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
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