Home » date » 2010 » Dec » 19 »

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: Sun, 19 Dec 2010 20:31:05 +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/19/t1292790789o446ar11cpunc5n.htm/, Retrieved Sun, 19 Dec 2010 21:33:13 +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/19/t1292790789o446ar11cpunc5n.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 «
95,05 96,84 96,92 97,44 97,78 97,69 96,67 98,29 98,2 98,71 98,54 98,2 96,92 99,06 99,65 99,82 99,99 100,33 99,31 101,1 101,1 100,93 100,85 100,93 99,6 101,88 101,81 102,38 102,74 102,82 101,72 103,47 102,98 102,68 102,9 103,03 101,29 103,69 103,68 104,2 104,08 104,16 103,05 104,66 104,46 104,95 105,85 106,23 104,86 107,44 108,23 108,45 109,39 110,15 109,13 110,28 110,17 109,99 109,26 109,11 107,06 109,53 108,92 109,24 109,12 109 107,23 109,49 109,04 109,02 109,23 109,46
 
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.651524078529005
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
296.8495.051.79000000000001
396.9296.2162281005670.703771899433079
497.4496.67475243883970.765247561160322
597.7897.17332965097120.606670349028775
697.6997.5685899910930.121410008906935
796.6797.6476915352704-0.977691535270353
898.2997.01070195866771.27929804133227
998.297.84419543621070.355804563789306
1098.7198.076010676770.633989323230054
1198.5498.48906998638460.0509300136153712
1298.298.5222521165749-0.322252116574859
1396.9298.3122971032694-1.3922971032694
1499.0697.40518201602321.65481798397680
1599.6598.4833357781671.16666422183309
1699.8299.24344561024950.576554389750513
1799.9999.61908467775350.370915322246461
18100.3399.86074494129250.469255058707546
1999.31100.166475911012-0.856475911011955
20101.199.60846123230761.49153876769239
21101.1100.5802346535190.519765346481321
22100.93100.9188742919360.0111257080637870
23100.85100.926122958630-0.0761229586304637
24100.93100.8765270181540.0534729818461699
2599.6100.911365953377-1.31136595337736
26101.88100.0569794589891.82302054101115
27101.81101.2447212371110.56527876288942
28102.38101.6130139622140.76698603778587
29102.74102.1127238337270.627276166272807
30102.82102.5214093599410.298590640058706
31101.72102.715948351563-0.99594835156293
32103.47102.0670640195481.40293598045159
33102.98102.981110591447-0.00111059144730064
34102.68102.980387014378-0.300387014377975
35102.9102.7846776416330.115322358366711
36103.03102.8598129349020.170187065098048
37101.29102.970693905668-1.68069390566750
38103.69101.8756813574881.81431864251182
39103.68103.0577536392090.622246360791308
40104.2103.4631621260410.73683787395872
41104.08103.9432297428980.136770257102484
42104.16104.0323388586260.127661141373608
43103.05104.115513166124-1.06551316612378
44104.66103.4213056824041.23869431759553
45104.46104.2283448562550.231655143744987
46104.95104.379273760320.570726239680042
47105.85104.7511156477201.09888435228018
48106.23105.4670652627490.762934737250916
49104.86105.964135614414-1.10413561441426
50107.44105.2447646756622.19523532433804
51108.23106.6750133475061.55498665249438
52108.45107.6881245933970.761875406603068
53109.39108.1845047656381.20549523436209
54110.15108.9699139373771.18008606262322
55109.13109.738768421912-0.608768421912316
56110.28109.3421411367880.93785886321166
57110.17109.9531787684330.216821231567423
58109.99110.094443021535-0.104443021535076
59109.26110.026395878171-0.766395878170641
60109.11109.527070509857-0.417070509857098
61107.06109.255339030241-2.19533903024083
62109.53107.8250227915041.70497720849558
63108.92108.935856496182-0.015856496182451
64109.24108.9255256071180.314474392881507
65109.12109.130413246162-0.0104132461615762
66109109.123628765552-0.123628765551672
67107.23109.043081647996-1.81308164799593
68109.49107.8618152979881.62818470201246
69109.04108.9226168356410.117383164358785
70109.02108.9990947936350.0209052063651001
71109.23109.0127150389480.217284961051632
72109.46109.1542814229760.305718577024251


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73109.353464437161107.532780286888111.174148587433
74109.353464437161107.180446345334111.526482528987
75109.353464437161106.877757572494111.829171301827
76109.353464437161106.608242891983112.098685982339
77109.353464437161106.362919639893112.344009234428
78109.353464437161106.136249020560112.570679853761
79109.353464437161105.92452992493112.782398949391
80109.353464437161105.725144062453112.981784811868
81109.353464437161105.536158372163113.170770502159
82109.353464437161105.356097498009113.350831376312
83109.353464437161105.183805062754113.523123811567
84109.353464437161105.018354732559113.688574141762
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/1forp1292790661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/1forp1292790661.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/2forp1292790661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/2forp1292790661.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/3qfqa1292790661.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292790789o446ar11cpunc5n/3qfqa1292790661.ps (open in new window)


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