Home » date » 2008 » May » 31 »

Plantaardige stoffen - Joyce Pauwels - Exponential Smoothing

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 31 May 2008 08:16:17 -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/31/t1212243501fq7bhj3nw1axgeg.htm/, Retrieved Sat, 31 May 2008 14:18:21 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
79,2 81,5 81,5 82 85,8 88,2 88 88,8 89 90,4 90,9 94,6 97,9 101,7 102,3 103,5 103,6 102,3 101,6 104,3 110,8 112,1 111,1 114,4 115 115,3 114,1 114,8 114,5 114,1 112,3 113 112,2 113,7 113,6 115,8 117,9 120,1 118,8 114,7 110,9 112,9 113,3 114,3 116,5 114,3 115,9 120,1 122,6 122,4 123,1 127,9 130,9 135 134,9 130,2 130,8 132,6 138,6 146,2 149,3 149,9 156,8 158,8 156,7 159,9 158,2 157,5 159,1 160,6 161,6 161,3
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.082827106149464
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
381.583.8-2.30000000000000
48283.6094976558562-1.60949765585623
585.883.97618762266731.82381237733269
688.287.92724872404130.272751275958655
78890.3498399229276-2.34983992292759
888.889.955209482197-1.15520948219701
98990.6595268237902-1.65952682379020
1090.490.7220730193983-0.322073019398246
1190.992.0953966432327-1.19539664323268
1294.692.4963853985732.10361460142705
1397.996.37062170846291.52937829153711
14101.799.79729568655871.90270431344128
15102.3103.754891178699-1.45489117869917
16103.5104.234386752605-0.734386752605133
17103.6105.373559623092-1.77355962309235
18102.3105.326660811928-3.02666081192807
19101.6103.77597125558-2.17597125558009
20104.3102.8957418534161.40425814658403
21110.8105.7120524919845.08794750801566
22112.1112.633472460314-0.533472460313646
23111.1113.889286480215-2.78928648021544
24114.4112.6582579528371.74174204716265
25115116.102521406263-1.10252140626270
26115.3116.611202748714-1.31120274871412
27114.1116.802599619463-2.7025996194629
28114.8115.378751113902-0.578751113902143
29114.5116.030814833957-1.53081483395685
30114.1115.604021871210-1.50402187120955
31112.3115.079448092032-2.77944809203174
32113113.049234449876-0.0492344498761099
33112.2113.74515650287-1.54515650287001
34113.7112.8171756611890.882824338810735
35113.6114.390297446411-0.790297446411273
36115.8114.2248393959281.57516060407229
37117.9116.5553053904841.34469460951635
38120.1118.7666825536451.33331744635531
39118.8121.077117379305-2.27711737930488
40114.7119.588510336414-4.88851033641441
41110.9115.083609171867-4.18360917186746
42112.9110.9370929309011.96290706909868
43113.3113.0996748430750.200325156924890
44114.3113.5162671961120.783732803887872
45116.5114.5811815162531.91881848374744
46114.3116.940111698487-2.64011169848747
47115.9114.5214388865901.37856111340960
48120.1116.2356211142643.86437888573569
49122.6120.7556964344351.84430356556513
50122.4123.408454761632-1.00845476163177
51123.1123.124927372043-0.0249273720431802
52127.9123.8228627099534.07713729004709
53130.9128.9605601930621.93943980693842
54135132.1211983798212.87880162017862
55134.9136.459641187199-1.55964118719916
56130.2136.230460621032-6.03046062103195
57130.8131.030975019044-0.230975019043541
58132.6131.6118440266230.98815597337662
59138.6133.4936901263225.10630987367753
60146.2139.9166309962626.28336900373839
61149.3148.0370642677101.26293573228952
62149.9151.241669579669-1.34166957966880
63156.8151.7305429709765.06945702902394
64158.8159.050431426439-0.250431426439178
65156.7161.029688916098-4.32968891609835
66159.9158.5710733126501.32892668734951
67158.2161.881144464448-3.68114446444847
68157.5159.87624592114-2.37624592114005
69159.1158.9794283479930.120571652007413
70160.6160.5894149490120.0105850509879986
71161.6162.090291678154-0.490291678153795
72161.3163.049682237283-1.74968223728311


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73162.604761120888157.818930998132167.390591243644
74163.909522241776156.855470759495170.963573724056
75165.214283362664156.220914841431174.207651883896
76166.519044483551155.721751517148177.316337449955
77167.823805604439155.286801307082180.360809901797
78169.128566725327154.881470118865183.375663331790
79170.433327846215154.486364166741186.380291525689
80171.738088967103154.089621506724189.386556427482
81173.042850087991153.683555644829192.402144531153
82174.347611208879153.262983068650195.432239349107
83175.652372329766152.824309524734198.480435134799
84176.957133450654152.36499518454201.549271716769
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/1aqmd1212243371.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/1aqmd1212243371.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/2mk5p1212243371.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/2mk5p1212243371.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/3s0ct1212243371.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212243501fq7bhj3nw1axgeg/3s0ct1212243371.ps (open in new window)


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