Home » date » 2010 » Aug » 20 »

Tijdreeks B Stap 2

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 Aug 2010 07:49: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/Aug/20/t1282290529aviw0rmst0356i8.htm/, Retrieved Fri, 20 Aug 2010 09:48:57 +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/2010/Aug/20/t1282290529aviw0rmst0356i8.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76 75 74 72 70 69 70 72 73 73 74 76 74 67 66 58 55 58 64 68 66 76 75 88 85 83 77 66 65 65 63 62 57 68 69 79 74 76 82 75 75 76 78 77 67 74 68 87 76 88 95 96 96 105 108 113 101 107 102 116 105 121 134 140 131 141 131 128 123 129 125 144 135 141 156 159 146 154 145 133 126 127 122 148
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.853661782423506
beta0.00329071622036451
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
137480.240411948487-6.24041194848706
146767.632330326825-0.632330326824984
156665.9331569263830.0668430736170222
165857.59821411589110.401785884108882
175554.29940496014020.700595039859763
185856.89749646635671.10250353364327
196464.0993687803489-0.0993687803488683
206865.6137652082172.38623479178297
216668.6120576315391-2.6120576315391
227666.61051137709219.38948862290788
237576.3382818181108-1.33828181811079
248877.794940185377310.2050598146227
258583.46419376386821.53580623613183
268377.51925956600545.48074043399458
277781.1128249630908-4.11282496309083
286667.940679940157-1.94067994015697
296562.28842064933152.71157935066854
306567.1641148449105-2.16411484491054
316372.2921996125122-9.29219961251218
326266.3506539610196-4.35065396101965
335762.7932770504556-5.79327705045564
346859.37433072847428.62566927152582
356966.77756770067012.22243229932992
367972.41097377234756.58902622765245
377474.133741985889-0.133741985889046
387668.0804862848777.91951371512306
398272.51573371330699.4842662866931
407570.87589887085824.12410112914178
417570.74854614940824.25145385059177
427676.6013714626525-0.601371462652509
437882.9872341082717-4.98723410827175
447782.2958932680294-5.29589326802939
456777.8421144404391-10.8421144404391
467472.99293008076381.00706991923616
476872.96481777294-4.96481777294001
488773.035801813325813.9641981866742
497679.7902153235534-3.79021532355343
508871.570844757725116.4291552422749
519583.198529559337211.8014704406628
529681.386930013322914.6130699866771
539689.46500223782986.53499776217018
5410597.1590008033157.840999196685
55108112.637161530114-4.63716153011377
56113113.843811412907-0.843811412907115
57101112.092463834908-11.0924638349082
58107112.4920597365-5.4920597365
59102105.567425895142-3.56742589514207
60116113.2468519250262.75314807497436
61105105.542226559521-0.542226559521424
62121102.06357085947118.9364291405286
63134114.13426313550519.8657368644951
64140115.14321737964224.8567826203578
65131128.6454881031002.35451189690014
66141133.9478404055147.05215959448597
67131149.461821142014-18.4618211420136
68128140.975067209160-12.9750672091596
69123126.940551140281-3.94055114028126
70129136.807948893198-7.80794889319833
71125127.933651460175-2.93365146017474
72144139.9658384766584.03416152334179
73135130.5887325657774.41126743422339
74141133.8989330406527.10106695934772
75156135.08265372769120.9173462723091
76159135.03167594217623.968324057824
77146143.3389928276622.66100717233786
78154150.0685167657053.93148323429509
79145159.416466608536-14.4164666085359
80133156.097421860839-23.0974218608394
81126134.677514939105-8.67751493910461
82127140.353222925781-13.3532229257807
83122127.461348104025-5.46134810402451
84148138.0646668679369.93533313206424


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85133.561981257641115.204119823497151.919842691785
86133.459104619344109.269193710852157.649015527836
87130.386347762239101.857488712259158.915206812219
88115.30211132755885.1568190588556145.447403596261
89104.05916092653572.2682384314985135.850083421571
90107.18307471393370.797189837427143.568959590438
91109.17051765646968.7855548293011149.555480483636
92114.45234631339169.1826047770838159.722087849698
93114.65403334440866.4320877355408162.875978953275
94125.72373004003970.4490874561326180.998372623946
95125.36506605802367.7519959965753182.978136119471
96143.32011251063048.2934173403048238.346807680956
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/12jqw1282290539.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/12jqw1282290539.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/2vsph1282290539.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/2vsph1282290539.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/3vsph1282290539.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282290529aviw0rmst0356i8/3vsph1282290539.ps (open in new window)


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