Home » date » 2009 » Aug » 19 »

Exponential smoothing index benzine

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 18 Aug 2009 16:05:12 -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/t12506331903ny7hrp8w44el6s.htm/, Retrieved Wed, 19 Aug 2009 00:06: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/Aug/19/t12506331903ny7hrp8w44el6s.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 «
105.46 104.66 103.52 103.71 103.78 103.67 103.66 102.76 102 101.5 101.5 99.22 98.97 98.9 99.78 104.4 106.21 105.46 108.33 111.72 111.88 112.86 113.09 116.9 114.62 118.86 124.71 122.53 127.89 136.16 134.12 130.26 135.35 131.43 129.61 123.96 121.1 125.38 123.1 129.92 136.68 131.17 124.82 122.47 126.15 118.74 116.8 116.64 116.53 117.68 119.46 126.19 124.39 121.9 122.53 122.93 124.66 124.41 120.93 120.18 123.44 126.1 125.82 122.18 117.27 117.86 119.09 123.08 125.42 121.81 121.66 121.27 120.92 122.16 124.17 127.26 134.16 134.09 135.57 136.13 136.23 140.6 136.5 130.59 129.5 135.25 138.06 146.28 145.04 147.96 156.71 160.97 168.17 163.91 153.05 151.76 119.55 119.44 120.25 124.92 126.34 125.88 127.34 127.48 119.41 114.82 115.28 116.37 111.99 113.57 117.69 120.74 122.37 123.57 124.86 122.08 123.56 126.92 134.88 130.64 131.65 130.97 136.77 138.17 146.4 152.07 153.05 142.89 141.11 131.9 118.42 etc...
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3103.52104.66-1.14
4103.71103.520.189999999999998
5103.78103.710.0700000000000074
6103.67103.78-0.109999999999999
7103.66103.67-0.0100000000000051
8102.76103.66-0.899999999999991
9102102.76-0.760000000000005
10101.5102-0.5
11101.5101.50
1299.22101.5-2.28
1398.9799.22-0.25
1498.998.97-0.0699999999999932
1599.7898.90.879999999999995
16104.499.784.62
17106.21104.41.80999999999999
18105.46106.21-0.75
19108.33105.462.87000000000000
20111.72108.333.39
21111.88111.720.159999999999997
22112.86111.880.980000000000004
23113.09112.860.230000000000004
24116.9113.093.81
25114.62116.9-2.28
26118.86114.624.23999999999999
27124.71118.865.85
28122.53124.71-2.17999999999999
29127.89122.535.36
30136.16127.898.27
31134.12136.16-2.03999999999999
32130.26134.12-3.86000000000001
33135.35130.265.09
34131.43135.35-3.91999999999999
35129.61131.43-1.81999999999999
36123.96129.61-5.65000000000002
37121.1123.96-2.86
38125.38121.14.28
39123.1125.38-2.28
40129.92123.16.81999999999999
41136.68129.926.76000000000002
42131.17136.68-5.51000000000002
43124.82131.17-6.35
44122.47124.82-2.34999999999999
45126.15122.473.68000000000001
46118.74126.15-7.41000000000001
47116.8118.74-1.94000000000000
48116.64116.8-0.159999999999997
49116.53116.64-0.109999999999999
50117.68116.531.15000000000001
51119.46117.681.77999999999999
52126.19119.466.73
53124.39126.19-1.80000000000000
54121.9124.39-2.48999999999999
55122.53121.90.629999999999995
56122.93122.530.400000000000006
57124.66122.931.72999999999999
58124.41124.66-0.25
59120.93124.41-3.47999999999999
60120.18120.93-0.75
61123.44120.183.25999999999999
62126.1123.442.66000000000000
63125.82126.1-0.280000000000001
64122.18125.82-3.63999999999999
65117.27122.18-4.91000000000001
66117.86117.270.590000000000003
67119.09117.861.23000000000000
68123.08119.093.98999999999999
69125.42123.082.34000000000000
70121.81125.42-3.61
71121.66121.81-0.150000000000006
72121.27121.66-0.390000000000001
73120.92121.27-0.349999999999994
74122.16120.921.23999999999999
75124.17122.162.01000000000001
76127.26124.173.09000000000000
77134.16127.266.89999999999999
78134.09134.16-0.0699999999999932
79135.57134.091.47999999999999
80136.13135.570.560000000000002
81136.23136.130.0999999999999943
82140.6136.234.37000000000000
83136.5140.6-4.09999999999999
84130.59136.5-5.91
85129.5130.59-1.09000000000000
86135.25129.55.75
87138.06135.252.81
88146.28138.068.22
89145.04146.28-1.24000000000001
90147.96145.042.92000000000002
91156.71147.968.75
92160.97156.714.25999999999999
93168.17160.977.19999999999999
94163.91168.17-4.25999999999999
95153.05163.91-10.8600000000000
96151.76153.05-1.29000000000002
97119.55151.76-32.21
98119.44119.55-0.109999999999999
99120.25119.440.810000000000002
100124.92120.254.67
101126.34124.921.42000000000000
102125.88126.34-0.460000000000008
103127.34125.881.46000000000001
104127.48127.340.140000000000001
105119.41127.48-8.07
106114.82119.41-4.59
107115.28114.820.460000000000008
108116.37115.281.09000000000000
109111.99116.37-4.38000000000001
110113.57111.991.58000000000000
111117.69113.574.12000000000000
112120.74117.693.05
113122.37120.741.63000000000001
114123.57122.371.19999999999999
115124.86123.571.29000000000001
116122.08124.86-2.78
117123.56122.081.48000000000000
118126.92123.563.36
119134.88126.927.96
120130.64134.88-4.24000000000001
121131.65130.641.01000000000002
122130.97131.65-0.680000000000007
123136.77130.975.80000000000001
124138.17136.771.39999999999998
125146.4138.178.23000000000002
126152.07146.45.66999999999999
127153.05152.070.980000000000018
128142.89153.05-10.1600000000000
129141.11142.89-1.77999999999997
130131.9141.11-9.21
131118.42131.9-13.48
132108.27118.42-10.15


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
133108.2798.4685328537376118.071467146262
134108.2794.4086322306014122.131367769399
135108.2791.2933609139563125.246639086044
136108.2788.6670657074751127.872934292525
137108.2786.3532531817263130.186746818274
138108.2784.2614067610039132.278593238996
139108.2782.3377554474197134.202244552580
140108.2780.5472644612027135.992735538797
141108.2778.8655985612127137.674401438787
142108.2777.2750394065139.2649605935
143108.2775.762211080852140.777788919148
144108.2774.3167218279127142.223278172087
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t12506331903ny7hrp8w44el6s/1cx7w1250633107.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t12506331903ny7hrp8w44el6s/1cx7w1250633107.ps (open in new window)


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


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