Home » date » 2009 » Jun » 02 »

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, 02 Jun 2009 08:38:48 -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/Jun/02/t1243953632glao4q35rkrjviz.htm/, Retrieved Tue, 02 Jun 2009 16:40:36 +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/Jun/02/t1243953632glao4q35rkrjviz.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 «
310.95 312.97 315.07 315.43 315.73 315.77 315.77 315.77 313.99 314.57 314.63 314.65 314.65 314.93 315.27 316.26 316.98 317.01 317.07 317.07 317 317.08 317.04 317 317.05 321.59 325.59 326.23 326.28 326.35 326.35 326.35 326.39 326.74 326.9 326.9 326.91 336.93 348.5 349.43 349.26 349.26 349.28 349.61 349.66 349.68 349.91 349.91 350.89 355.52 356.36 357.04 360.28 360.63 360.79 360.97 361 361.01 361 361 361.58 363.19 363.61 364.14 365.51 365.51 365.5 365.5 364.59 364.63 364.54 363.67 365.22 369.05 370.45 370.46 370.46 370.58 370.58 370.22 370.21 370.29 370.29 370.2 370.2 372.55 374.51 375.58 375.75 375.75 375.75 375.69 375.76 377.5 377.51 377.74
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.936452106375678
beta0.0510905500579434
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13314.65314.0628472222220.58715277777776
14314.93314.944605086629-0.0146050866285918
15315.27315.2508967677630.0191032322372280
16316.26316.1892519806740.0707480193264018
17316.98316.9343549210890.0456450789106384
18317.01316.9748006631990.0351993368010994
19317.07317.521731873344-0.451731873343817
20317.07317.0089793993130.0610206006868452
21317315.3451478536341.65485214636630
22317.08317.660121052635-0.580121052634752
23317.04317.290643665247-0.250643665247367
24317317.160630979219-0.160630979218752
25317.05317.12245464656-0.0724546465602316
26321.59317.3653319498594.22466805014091
27325.59321.8635157893393.72648421066077
28326.23326.674186844677-0.444186844676494
29326.28327.308095438622-1.02809543862173
30326.35326.663611653322-0.313611653322425
31326.35327.157507009326-0.807507009326116
32326.35326.631703231131-0.281703231131246
33326.39325.0193453717041.37065462829599
34326.74327.183689765782-0.443689765782096
35326.9327.226975135375-0.326975135375335
36326.9327.291613605373-0.391613605373038
37326.91327.292097232676-0.382097232676358
38336.93327.7526283921169.17737160788408
39348.5337.32862601102211.1713739889783
40349.43349.673737268367-0.243737268367397
41349.26351.295536257096-2.03553625709628
42349.26350.542121612269-1.28212161226890
43349.28350.840415796707-1.56041579670750
44349.61350.349688692796-0.73968869279588
45349.66349.0982674269510.561732573048914
46349.68351.035909528238-1.35590952823844
47349.91350.834829874594-0.924829874593968
48349.91350.909362827614-0.99936282761422
49350.89350.8861105479450.00388945205457958
50355.52352.8788383375112.64116166248863
51356.36356.711240044503-0.351240044503186
52357.04357.239819596813-0.199819596812972
53360.28358.4902322741391.78976772586083
54360.63361.251278741752-0.621278741752121
55360.79362.066722110706-1.27672211070580
56360.97361.823375530047-0.853375530047117
57361360.4723148445370.527685155463473
58361.01362.178702372381-1.16870237238078
59361362.111775488561-1.11177548856091
60361361.929010247339-0.92901024733942
61361.58361.961264129234-0.381264129234182
62363.19363.668349669231-0.47834966923125
63363.61364.147510690169-0.537510690168517
64364.14364.260560345816-0.120560345815932
65365.51365.4647028585210.0452971414790682
66365.51366.108530313146-0.598530313145659
67365.5366.574323887690-1.07432388769041
68365.5366.227799280841-0.727799280841396
69364.59364.768489235643-0.178489235642758
70364.63365.358381309089-0.728381309088775
71364.54365.381083148135-0.841083148135226
72363.67365.150045182103-1.48004518210251
73365.22364.3613482328720.858651767128322
74369.05366.9429672804992.10703271950075
75370.45369.6827314187250.767268581274834
76370.46370.949842247384-0.489842247384161
77370.46371.706743530168-1.24674353016763
78370.58370.925940384150-0.345940384150424
79370.58371.43633901222-0.85633901222036
80370.22371.164699308334-0.944699308333838
81370.21369.3755345370740.834465462926005
82370.29370.765883609822-0.47588360982212
83370.29370.916773870737-0.626773870736827
84370.2370.7549733532-0.554973353200239
85370.2370.934591898066-0.73459189806573
86372.55371.9807303897820.569269610218157
87374.51372.9989251741571.51107482584308
88375.58374.7218860767320.858113923267638
89375.75376.596673584464-0.846673584463588
90375.75376.170591123898-0.420591123898419
91375.75376.497906772331-0.747906772331476
92375.69376.246639993924-0.556639993924477
93375.76374.8769490482790.883050951721032
94377.5376.174863387471.32513661252989
95377.51378.034239024749-0.524239024749477
96377.74378.009430867254-0.269430867253845


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
97378.495103963035374.747881657762382.242326268308
98380.397228013070375.139301533829385.655154492312
99381.000160533465374.472943356632387.527377710299
100381.25226402429373.572271941374388.932256107205
101382.159763891063373.39373756367390.925790218457
102382.538766066849372.727972757363392.349559376335
103383.244406371056372.415191001902394.073621740209
104383.746717239580371.915900624742395.577533854417
105383.057458291688370.235410955174395.879505628202
106383.581958735416369.774489103352397.38942836748
107384.044911248571369.254493244106398.835329253035
108384.514329740868368.740936860126400.287722621609
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/18t3o1243953526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/18t3o1243953526.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/250k41243953526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/250k41243953526.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/372ok1243953526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243953632glao4q35rkrjviz/372ok1243953526.ps (open in new window)


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