Home » date » 2009 » Dec » 04 »

WS 9 Estimation of Box-Jenkins ARIMA models

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 04 Dec 2009 08:08:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts.htm/, Retrieved Fri, 04 Dec 2009 16:09:45 +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/2009/Dec/04/t1259939380q926p21kykfbmts.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:
WS 9 Estimation of Box-Jenkins ARIMA models
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
14,5 14,3 15,3 14,4 13,7 14,2 13,5 11,9 14,6 15,6 14,1 14,9 14,2 14,6 17,2 15,4 14,3 17,5 14,5 14,4 16,6 16,7 16,6 16,9 15,7 16,4 18,4 16,9 16,5 18,3 15,1 15,7 18,1 16,8 18,9 19 18,1 17,8 21,5 17,1 18,7 19 16,4 16,9 18,6 19,3 19,4 17,6 18,6 18,1 20,4 18,1 19,6 19,9 19,2 17,8 19,2 22 21,1 19,5 22,2 20,9 22,2 23,5 21,5 24,3 22,8 20,3 23,7 23,3 19,6 18 17,3 16,8 18,2 16,5 16 18,4
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.597126235287043
beta0
gamma0.901410325583061


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1314.213.48124933461880.718750665381153
1414.614.29628340915340.303716590846596
1517.217.00011340243040.199886597569616
1615.415.33607807945040.0639219205496122
1714.314.26402498196810.0359750180319054
1817.517.42570034121200.0742996587880462
1914.514.9514570741622-0.451457074162191
2014.413.05606186322431.34393813677572
2116.617.033454253127-0.433454253127014
2216.717.9212732352252-1.22127323522519
2316.615.60035473860590.999645261394079
2416.917.0655402785585-0.165540278558492
2515.716.4074650629215-0.707465062921482
2616.416.23152604485300.168473955147029
2718.419.0948308769003-0.694830876900333
2816.916.67657282704870.223427172951286
2916.515.57521179240120.924788207598825
3018.319.6653161652278-1.36531616522776
3115.115.9178336435388-0.81783364353884
3215.714.35706484297231.34293515702767
3318.117.82123443869970.278765561300325
3416.818.8869887133395-2.08698871333949
3518.916.79251394429582.10748605570420
361918.52331806598210.476681934017947
3718.117.94462089744220.155379102557834
3817.818.6647243046389-0.864724304638944
3921.520.83715667016040.662843329839617
4017.119.2870598574822-2.18705985748221
4118.716.91721966035001.78278033965004
421920.9004375180540-1.90043751805396
4316.416.8022581308116-0.40225813081161
4416.916.20738236589340.69261763410659
4518.619.0288496196914-0.428849619691373
4619.318.75368616633170.546313833668307
4719.419.7639881593884-0.363988159388381
4817.619.4139860794003-1.81398607940025
4918.617.38858217036841.21141782963165
5018.118.3600001031061-0.260000103106115
5120.421.5078361206708-1.10783612067084
5218.117.90041220778390.199587792216132
5319.618.36900533320611.23099466679392
5419.920.681164758908-0.781164758907984
5519.217.64123096182061.55876903817939
5617.818.5972258934997-0.797225893499718
5719.220.2573983934826-1.05739839348260
582219.96809477258642.03190522741363
5921.121.5543092064775-0.454309206477525
6019.520.5047320951071-1.00473209510708
6122.220.04422198446672.15577801553334
6220.920.9816621659555-0.0816621659554997
6322.224.3564489374252-2.15644893742518
6423.520.26282759724123.23717240275884
6521.523.0318681203166-1.53186812031663
6624.323.04859786704481.25140213295523
6722.821.67910658304581.12089341695419
6820.321.3494133167639-1.04941331676385
6923.723.05931917341650.640680826583509
7023.325.1425232705637-1.84252327056371
7119.623.4451898225841-3.84518982258406
721820.1582924440604-2.15829244406035
7317.320.0717158947412-2.77171589474115
7416.817.4705444768559-0.670544476855923
7518.219.2418463363559-1.0418463363559
7616.517.8493142704545-1.34931427045453
771616.4096486766431-0.409648676643094
7818.417.64664394087790.753356059122133


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7916.505612912401914.040650971610818.970574853193
8015.233818510149712.397271306980118.0703657133193
8117.474659892236414.058331721550520.8909880629224
8218.078333329684414.277277972399421.8793886869694
8316.966212033204913.045183087572820.887240978837
8416.613214360807012.481060831112120.7453678905019
8517.440543823409312.905675773334821.9754118734839
8617.251218213052812.528454932407621.9739814936979
8719.322883787982613.934206814970724.7115607609946
8818.355926147873613.009818415290523.7020338804567
8918.014454267228812.567981332051923.4609272024057
9020.1300023440808-0.09561815155130340.3556228397129
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/121d01259939318.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/121d01259939318.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/2ktiq1259939318.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/2ktiq1259939318.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/3sqzb1259939318.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939380q926p21kykfbmts/3sqzb1259939318.ps (open in new window)


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