Home » date » 2008 » May » 28 »

Exponential Smoothing Kwartz Uurwerken Danielle Versmissen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 11:53:44 -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/28/t121199729318sslpgerfot80t.htm/, Retrieved Wed, 28 May 2008 19:54:56 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
120,05 120,05 120,08 120,12 120,18 120,2 120,25 120,25 120,24 120,29 120,25 120,26 120,32 120,31 120,36 120,4 120,4 120,39 120,44 120,5 120,53 120,64 120,78 120,94 121 121,05 121,15 121,07 121,18 121,46 121,71 121,71 121,74 121,76 121,76 121,82 121,82 121,82 121,94 121,99 122,18 122,41 122,48 122,52 122,62 122,63 122,74 122,58 122,59 122,61 122,63 122,37 122,36 122,47 122,46 122,45 122,49 122,5 122,37 122,37 122,51 122,51 122,55 122,56 122,72 122,97 123,03 123,05 123,08 123,08 123,12 123,07 123,04 123,06 123,39 124,02 124,05 123,99 124,46 124,46 124,6 124,84 124,84 124,99
 
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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.109959999025065
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3120.08120.050.0300000000000011
4120.12120.0832987999710.0367012000292561
5120.18120.1273344638900.0526655361098136
6120.2120.1931255661890.00687443381052333
7120.25120.2138814789250.0361185210754229
8120.25120.267853071467-0.0178530714668170
9120.24120.265889947746-0.0258899477457391
10120.29120.2530430891170.0369569108831627
11120.25120.307106871002-0.0571068710015368
12120.26120.260827399522-0.000827399521881489
13120.32120.2707364186710.0492635813287308
14120.31120.336153442026-0.0261534420261285
15120.36120.3232776095660.0367223904335532
16120.4120.3773156035830.0226843964172900
17120.4120.419809979791-0.0198099797906508
18120.39120.417631674432-0.0276316744321861
19120.44120.4045932955390.0354067044614368
20120.5120.4584866167270.0415133832733829
21120.53120.5230514283110.00694857168912222
22120.64120.5538154932470.0861845067529572
23120.78120.6732923415260.10670765847442
24120.94120.8250259155470.114974084452612
25121120.9976684657620.00233153423829435
26121.05121.057924841264-0.00792484126428405
27121.15121.1070534257270.0429465742734294
28121.07121.211775830992-0.141775830991833
29121.18121.1161861607540.0638138392458387
30121.46121.2332031304550.226796869544543
31121.71121.5381417140090.171858285990552
32121.71121.807039250969-0.0970392509694165
33121.74121.796368815027-0.056368815027426
34121.76121.820170500182-0.0601705001819539
35121.76121.833554152041-0.0735541520406144
36121.82121.825466137554-0.00546613755395242
37121.82121.884865081074-0.0648650810738332
38121.82121.877732516822-0.0577325168221989
39121.94121.8713842493290.0686157506712846
40121.99121.998929237206-0.00892923720563488
41122.18122.0479473782910.132052621708809
42122.41122.2524678844460.157532115554417
43122.48122.499790115718-0.0197901157183367
44122.52122.567613994613-0.0476139946132577
45122.62122.6023783598120.0176216401880112
46122.63122.70431603535-0.0743160353498951
47122.74122.7061442441750.0338557558247317
48122.58122.819867023053-0.239867023052753
49122.59122.633491245432-0.0434912454317242
50122.61122.638708948126-0.0287089481264644
51122.63122.655552112218-0.0255521122184632
52122.37122.672742401984-0.302742401983821
53122.36122.379452847757-0.0194528477568525
54122.47122.3673138126360.102686187363531
55122.46122.488605185699-0.0286051856988507
56122.45122.475459759507-0.0254597595072852
57122.49122.4626602043770.0273397956233055
58122.5122.505666488277-0.00566648827677341
59122.37122.515043401231-0.145043401231376
60122.37122.3690944289730.000905571026606822
61122.51122.3691940055630.140805994437414
62122.51122.524677032574-0.0146770325736583
63122.55122.5230631460860.0269368539138242
64122.56122.566025122516-0.00602512251626308
65122.72122.5753626000500.144637399949744
66122.97122.7512669284080.218733071592283
67123.03123.0253188167470.00468118325325406
68123.05123.085833559653-0.0358335596527155
69123.08123.101893301468-0.0218933014682392
70123.08123.12948591406-0.0494859140601278
71123.12123.124044442998-0.00404444299832107
72123.07123.163599716050-0.0935997160501927
73123.04123.103307491365-0.0633074913645402
74123.06123.066346199676-0.00634619967583205
75123.39123.0856483715660.304351628434333
76124.02123.4491148763320.570885123668418
77124.05124.141889403974-0.0918894039735818
78123.99124.161785245202-0.17178524520223
79124.46124.0828957398070.377104260192723
80124.46124.594362123890-0.134362123890412
81124.6124.5795876648780.0204123351215770
82124.84124.7218322052280.118167794771523
83124.84124.974825935826-0.134825935826356
84124.99124.9600004760540.0299995239456479


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85125.113299223678124.877300129219125.349298318137
86125.236598447356124.884017759046125.589179135667
87125.359897671034124.904705886924125.815089455145
88125.483196894713124.930293936672126.036099852753
89125.606496118391124.957522808768126.255469428014
90125.729795342069124.984852095995126.474738588143
91125.853094565747125.011446905748126.694742225746
92125.976393789425125.036817161095126.915970417755
93126.099693013103125.060660933037127.138725093170
94126.222992236782125.082787033733127.363197439830
95126.346291460460125.103073129582127.589509791337
96126.469590684138125.121441487762127.817739880513
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/1hqtp1211997218.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/1hqtp1211997218.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/2kniv1211997218.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/2kniv1211997218.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/39s8x1211997218.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121199729318sslpgerfot80t/39s8x1211997218.ps (open in new window)


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