Home » date » 2010 » Dec » 21 »

Exponential Smoothing eigen reeks

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 21 Dec 2010 17:25:11 +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/21/t1292952204y5mxk0gwe0gxv22.htm/, Retrieved Tue, 21 Dec 2010 18:23:28 +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/21/t1292952204y5mxk0gwe0gxv22.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 «
57.7 63.6 78 77.4 74.1 85.9 82 78.4 68.1 70.9 85.2 149.6 57.9 63.7 85 66.1 80.2 83.4 85.7 81.8 69.4 76.4 90.3 157.3 65.3 68.4 72.7 86.6 82.6 84.8 93.4 82.2 75.2 83.9 85.4 166.3 70.4 73.9 82.4 92.3 82.7 95.8 105.8 84.2 82.7 88.4 90.2 176.6 69.5 77.3 98.6 86.4 90.8 101.5 112.2 93.6 93.8 90.8 98.1 187.6 75 83.7 99.7 104.9 98.9 117.3 115.7 102.2 101.9 96.6 110 203.7 82.3 93.3 121.9 100.9 107.7 130 123.2 116.1 105.3 107.7 123.9 205.2 90.3 106.9 122.4 111.3 122.6 124.8 139.5 118.8 111 121.2 120.6 219.1 101.3 105 113.4 133.6 123.9 136.2 151.7 121.9 120.2 132.2 125.2 233.8
 
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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.111001096231486
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
263.657.75.9
37858.354906467765819.6450935322342
477.460.535533385413816.8644666145862
574.162.407507666992211.6924923330078
685.963.705387133634322.1946128663657
78266.169013492234315.8309865077657
878.467.926270349022210.4737296509778
968.169.088865821913-0.988865821912952
1070.968.97910063165481.92089936834525
1185.269.192322567291516.0076774327085
12149.670.969192310442178.6308076895579
1357.979.6972981615502-21.7972981615502
1463.777.2777741707336-13.5777741707336
158575.77062635339869.22937364660142
1666.176.7950969457013-10.6950969457013
1780.275.60792946042654.59207053957354
1883.476.11765432429147.28234567570857
1985.776.92600267743178.77399732256829
2081.877.89992599856893.90007400143108
2169.478.3328384881117-8.93283848811167
2276.477.3412836234725-0.941283623472458
2390.377.236800109402313.0631998905977
24157.378.686829617549678.6131703824504
2565.387.4129777082342-22.1129777082342
2668.484.9584129416778-16.5584129416778
2772.783.1204109532979-10.4204109532979
2886.681.96373391429934.63626608570071
2982.682.4783645322330.121635467767078
3084.882.49186620249572.30813379750431
3193.482.748071584267610.6519284157324
3282.283.9304473153932-1.73044731539321
3375.283.7383657664137-8.53836576641373
3483.982.79059780631641.10940219368358
3585.482.91374266597692.48625733402309
36166.383.18971995556783.110280044433
3770.492.4150521486049-22.0150521486049
3873.989.9713572265164-16.0713572265164
3982.488.1874189564453-5.78741895644529
4092.387.5450091079294.75499089207101
4182.788.0728183095196-5.3728183095196
4295.887.47642958731038.32357041268968
43105.888.400355027678817.3996449723212
4484.290.3317346936452-6.13173469364516
4582.789.65110542085-6.95110542084991
4688.488.879525099115-0.479525099114937
4790.288.82629728744271.37370271255733
48176.688.978779794432787.6212202055673
4969.598.704831290391-29.2048312903911
5077.395.463063001902-18.1630630019021
5198.693.44694309776945.15305690223059
5286.494.0189380628602-7.6189380628602
5390.893.173227585763-2.37322758576293
54101.592.90979672213648.59020327786357
55112.293.863318702830618.3366812971694
5693.695.8987104280638-2.2987104280638
5793.895.64355105063-1.84355105062997
5890.895.4389148630513-4.63891486305134
5998.194.92399022792813.17600977207189
60187.695.2765307942792.32346920573
6175105.524537084000-30.5245370839998
6283.7102.136280005717-18.4362800057172
6399.7100.089832714652-0.389832714651973
64104.9100.0465608559794.85343914402129
6598.9100.585297921458-1.68529792145787
66117.3100.39822800469916.9017719953006
67115.7102.27434322443213.4256567755676
68102.2103.764605844148-1.56460584414809
69101.9103.590932880277-1.69093288027746
7096.6103.403237476913-6.80323747691281
71110102.6480706590527.35192934094765
72203.7103.464142875314100.235857124686
7382.3114.590432897857-32.2904328978567
7493.3111.006159448405-17.7061594484054
75121.9109.04075633958312.8592436604171
76100.9110.468146482597-9.56814648259696
77107.7109.406071734125-1.70607173412526
78130109.21669590138820.7833040986122
79123.2111.52366543964611.6763345603539
80116.1112.8197513758113.28024862418903
81105.3113.183862569008-7.88386256900777
82107.7112.308745181310-4.60874518130953
83123.9111.79716941393312.1028305860674
84205.2113.1405968764992.05940312351
8590.3123.359291541616-33.0592915416159
86106.9119.689673939860-12.7896739398603
87122.4118.2700061120934.12999388790749
88111.3118.728439961080-7.42843996107958
89122.6117.903874982114.69612501789004
90124.8118.4251500071366.37484999286414
91139.5119.13276534465520.3672346553449
92118.8121.393550718602-2.59355071860224
93111121.105663745705-10.1056637457054
94121.2119.9839239917851.21607600821466
95120.6120.1189097617980.481090238202015
96219.1120.17231130562598.9276886943753
97101.3131.153393198348-29.8533931983475
98105127.839633827101-22.8396338271014
99113.4125.304409434767-11.9044094347674
100133.6123.9830069375209.61699306248023
101123.9125.050503709906-1.15050370990565
102136.2124.92279653688811.2772034631122
103151.7126.17457848371925.5254215162813
104121.9129.007928253797-7.10792825379667
105120.2128.218940425691-8.0189404256905
106132.2127.3288292478244.87117075217611
107125.2127.869534541246-2.66953454124616
108233.8127.57321328074106.22678671926


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
109139.36450305572683.4956249755803195.233381135872
110139.36450305572683.1524916752866195.576514436166
111139.36450305572682.8114402833605195.917565828092
112139.36450305572682.4724333584864196.256572752966
113139.36450305572682.1354345683215196.593571543131
114139.36450305572681.8004086440487196.928597467404
115139.36450305572681.4673213372955197.261684774157
116139.36450305572681.1361393792717197.592866732181
117139.36450305572680.8068304419866197.922175669466
118139.36450305572680.4793631014188198.249643010033
119139.36450305572680.1537068025189198.575299308933
120139.36450305572679.8298318259353198.899174285517
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/1ceb11292952308.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/1ceb11292952308.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/2ar0a1292952308.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/2ar0a1292952308.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/3ar0a1292952308.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292952204y5mxk0gwe0gxv22/3ar0a1292952308.ps (open in new window)


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