Home » date » 2010 » Dec » 22 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 22 Dec 2010 06:49:03 +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/Dec/22/t1293000529fn6i2deyn9pasje.htm/, Retrieved Wed, 22 Dec 2010 07:48:49 +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/2010/Dec/22/t1293000529fn6i2deyn9pasje.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100,4 97,7 97 96,5 98,4 106,3 103,1 102,4 95 98,1 106,1 99,1 101,2 95,5 99,8 97,1 97,5 96,8 97,7 100,9 94,3 99,5 100,8 97 99,2 101 102,3 97 91,2 97,6 95,7 100,5 94,4 102,9 105,1 98,8 100,7 99,6 107,7 102,9 101,6 102,7 110,5 109,8 94,3 102,5 105 102,3 107,7 100,3 99,5 95 97,7 96,3 97,8 106,4 96,1 106,2 114,7 111,9 121 117,7 115,4 114,3 109,5 108,1 108,2 99,1 101,2 98,1 95,5 97,9 98,2 98,7 95,6 95,8 94,4 96,5 103,3 104,3 104,5 102,3 103,8 103,1 102,2 106,3 102,1 94 102,6 102,6 106,7 107,9 109,3 105,9 109,1 108,5 111,7 109,8 109,1 108,5 108,5 106,2 117,1 109,8 115,2 115,9 119,2 121 118,6 117,6 114,6 110,6 102,5 101,6 107,4 105,8 102,8 104 100,4 100,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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.632771665684048
beta-6.91178884959509e-18
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
39797.7-0.700000000000003
496.597.2570598340212-0.757059834021163
598.496.77801382182511.62198617817491
6106.397.80436071750538.49563928249466
7103.1103.180160537340-0.0801605373403191
8102.4103.129437220605-0.729437220605348
995102.667870015511-7.66787001551097
1098.197.81585913354730.284140866452660
11106.197.99565542290158.1043445770985
1299.1103.123855040230-4.02385504022959
13101.2100.5776735839520.622326416047642
1495.5100.971464106834-5.47146410683401
1599.897.50927665022222.29072334977782
1697.198.9587814798824-1.85878147988244
1797.597.7825972267146-0.282597226714557
1896.897.6037777088487-0.803777708848699
1997.797.09516994918080.604830050819203
20100.997.47788926789343.42211073210657
2194.399.6433039760038-5.34330397600377
2299.596.26221261885173.23778738114834
23100.898.31099273315172.48900726684830
249799.885966007295-2.88596600729500
2599.298.05980848975141.14019151024860
2610198.78128937089022.21871062910978
27102.3100.1852265913432.11477340865709
2897101.523395283683-4.52339528368319
2991.298.6611189154796-7.4611189154796
3097.693.93993427146483.66006572853517
3195.796.2559201590231-0.555920159023117
32100.595.90414963401074.59585036598928
3394.498.8122735253324-4.41227352533240
34102.996.02031185725426.8796881427458
35105.1100.3735835827264.72641641727374
3698.8103.364325971801-4.564325971801
37100.7100.4761498239000.223850176100484
3899.6100.617795872694-1.01779587269429
39107.799.97376348300327.72623651699683
40102.9104.862707033332-1.96270703333217
41101.6103.620761634601-2.02076163460079
42102.7102.3420809291240.357919070875980
43110.5102.5685619757827.9314380242177
44109.8107.5873512256362.21264877436367
4594.3108.987452676164-14.6874526761642
46102.599.69364878161222.80635121838785
47105101.4694283165663.53057168343412
48102.3103.703474041509-1.40347404150943
49107.7102.8153954345194.88460456548083
50100.3105.906234801626-5.60623480162639
5199.5102.358768267985-2.85876826798538
5295100.549820709248-5.54982070924757
5397.797.03805141480920.661948585190842
5496.397.4569137236576-1.15691372365757
5597.896.7248514996861.07514850031397
56106.497.40517500708748.9948249929126
5796.1103.096845400389-6.99684540038922
58106.298.66943988185127.53056011814884
59114.7103.43456495134611.2654350486539
60111.9110.5630130517381.33698694826174
61121111.4090205099889.59097949001232
62117.7117.4779205774240.222079422575689
63115.4117.618446143562-2.21844614356168
64114.3116.214676282070-1.91467628206981
65109.5115.003123381819-5.50312338181875
66108.1111.520902833040-3.42090283304047
67108.2109.356252449234-1.15625244923416
6899.1108.624608660981-9.524608660981
69101.2102.597706173583-1.39770617358333
7098.1101.713277309988-3.61327730998813
7195.599.4268978079686-3.92689780796856
7297.996.94206814104930.957931858950744
7398.297.54822027904930.651779720950657
7498.797.96064801873440.739351981265628
7595.698.4284890034466-2.82848900344663
7695.896.6387013053667-0.838701305366698
7794.496.1079948833584-1.70799488335842
7896.595.02722411603591.47277588396412
79103.395.95915496531127.34084503468884
80104.3100.6042337054403.69576629456031
81104.5102.9428098996281.55719010037242
82102.3103.928155673227-1.62815567322694
83103.8102.8979048958860.902095104113798
84103.1103.468725117522-0.36872511752172
85102.2103.235406310728-1.03540631072795
86106.3102.5802305348293.71976946517114
87102.1104.933995255266-2.83399525526586
8894103.140723357051-9.14072335705059
89102.697.35673261285265.24326738714738
90102.6100.6745236510451.92547634895529
91106.7101.8929105276084.80708947239162
92107.9104.9347005401462.96529945985412
93109.3106.8110580186102.48894198139021
94105.9108.385989981965-2.48598998196502
95109.1106.8129259602032.28707403979683
96108.5108.2601216099080.239878390091846
97111.7108.4119098583683.28809014163183
98109.8110.492520134208-0.692520134207854
99109.1110.054313015365-0.954313015365415
100108.5109.450450779049-0.950450779048666
101108.5108.849032456439-0.349032456439346
102106.2108.628174607600-2.42817460760043
103117.1107.09169451657710.0083054834226
104109.8113.424666647997-3.6246666479975
105115.2111.1310802955954.0689197044053
106115.9113.7057773944862.19422260551411
107119.2115.0942192874594.10578071254136
108121117.6922409878673.30775901213312
109118.6119.785297167656-1.18529716765578
110117.6119.035274704548-1.43527470454765
111114.6118.127073539037-3.52707353903685
112110.6115.895241340750-5.29524134075037
113102.5112.544562657365-10.0445626573647
114101.6106.188648013596-4.58864801359627
115107.4103.2850815667954.11491843320485
116105.8105.888885357928-0.0888853579281772
117102.8105.832641221937-3.03264122193704
118104103.9136717845100.0863282154901697
119100.4103.968297833221-3.56829783322107
120100.6101.710380069637-1.11038006963700


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121101.00776302343092.3740976712982109.641428375563
122101.00776302343090.790813232796111.224712814065
123101.00776302343089.4219117972113112.593614249650
124101.00776302343088.1984759922245113.817050054636
125101.00776302343087.0821133129301114.933412733931
126101.00776302343086.0488323975035115.966693649357
127101.00776302343085.082453259315116.933072787546
128101.00776302343084.1714517678505117.844074279010
129101.00776302343083.3072753943704118.708250652490
130101.00776302343082.4833697022379119.532156344623
131101.00776302343081.694580128579120.320945918282
132101.00776302343080.936766059111121.078759987750
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/18kim1293000538.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/18kim1293000538.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/20th71293000538.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/20th71293000538.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/30th71293000538.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293000529fn6i2deyn9pasje/30th71293000538.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=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