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_structuraltimeseries.wasp (opens new window with default values)
Title produced by software: Structural Time Series Models
Date of computation: Fri, 04 Dec 2009 08:05:58 -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/t125993924898g41sltvia5jis.htm/, Retrieved Fri, 04 Dec 2009 16:07:35 +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/t125993924898g41sltvia5jis.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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
114.514.5000
214.314.3532218182990-0.00650225312906405-0.0532218182989612-0.151829303867976
315.314.90424681271590.02215121846861780.3957531872840990.680304199751437
414.414.69348350966180.0150706721362367-0.293483509661792-0.337630616060789
513.714.09893063298450.00584767975717651-0.398930632984534-0.90856652746136
614.214.04480940804690.005268923418353720.155190591953142-0.0894615253839601
713.513.72786845028080.00238740292848135-0.227868450280822-0.480207980211774
811.912.6440390367895-0.0078565033500251-0.74403903678947-1.61756646487085
914.613.54436221790840.001044582901093411.05563778209161.35193602981695
1015.614.86163187984380.01405568221031590.7383681201561541.95920789642376
1114.114.67178087873310.01205412414273-0.571780878733093-0.303522151587398
1214.914.76126902484970.01280565024063770.1387309751502750.115265945672613
1314.214.55051497197300.0193929732869372-0.350514971973031-0.360797676478492
1414.614.73946722227480.0195642190422452-0.1394672222748280.251732325083284
1517.215.85958211802740.0424614839653161.340417881972581.51102678726127
1615.415.80206131507220.0402579077027993-0.402061315072151-0.142486226205362
1714.315.17574555108750.0296765015125833-0.875745551087479-0.982445746081785
1817.516.06779238267870.03859835798993821.43220761732131.28323239136818
1914.515.26164283169800.0321521798218614-0.761642831698038-1.25856164838959
2014.415.33866591031210.0324655419080657-0.9386659103120650.0668356042082085
2116.615.74167784142650.03512877820946910.8583221585735190.551782821700158
2216.715.86473532034600.03575165746025430.8352646796540230.13090789383413
2316.616.57495566695740.03931425071677590.02504433304261241.00331810435859
2416.916.766150840660.03939013745497680.1338491593400040.226268981842783
2515.716.58984059281470.0405413055923513-0.889840592814692-0.326194337796170
2616.416.83798003304330.0408874335213664-0.4379800330433080.307617912360923
2718.416.94751249457450.04165883429435061.45248750542550.0983964622634089
2816.917.05231863697620.0426108584669144-0.1523186369762060.0908400463021881
2916.517.38968609957150.0466630120987782-0.8896860995714560.432104020782224
3018.316.96070512150870.04159693343801951.33929487849132-0.705324316528581
3115.116.36084998958190.0363632815578634-1.26084998958185-0.954898009220748
3215.716.52619590189950.0372418509196335-0.826195901899470.192173761268289
3318.116.99731936741750.03987327733350181.102680632582540.646351461294702
3416.816.69837496390890.03816544978636390.101625036091081-0.504334933047932
3518.917.83478305469340.04156887891694001.065216945306571.63337616668555
361918.52044236055920.04196396333188920.4795576394408060.959233167815239
3718.118.95197563823360.0418571561531171-0.8519756382335910.581186433947571
3817.818.70066361901410.0409743418313897-0.900663619014137-0.432837243733768
3921.519.45125507536580.04663968158125472.048744924634171.03175368849035
4017.118.43232371368760.0348119442346677-1.33232371368758-1.54675674779101
4118.718.74684422023620.0380031856588257-0.04684422023622620.409968934751498
421918.07571655717500.03093732121866350.924283442824951-1.04921918481289
4316.417.81855410786030.0285942280798430-1.41855410786029-0.428367511942265
4416.917.82604460844050.0284548936807973-0.926044608440547-0.0314293942089173
4518.617.66626170695950.02745045217707330.933738293040485-0.280321827806223
4619.318.78063527838620.03180248445732740.5193647216138361.61730217470358
4719.418.89863937654420.03201755859372340.501360623455770.128186919162402
4817.618.08160563191300.0309064284464227-0.481605631912962-1.26286987421494
4918.618.67548078043390.0317361484265937-0.07548078043394050.836215106867895
5018.119.03824594773970.0329165860636176-0.9382459477397230.488374871941854
5120.418.47227535923720.02898609159157491.92772464076283-0.876166727396246
5218.118.92022446908030.0326861257621256-0.8202244690802790.611785974620364
5319.619.16894717345900.03474971085931480.4310528265409680.317135766264417
5419.919.02946310286930.03319199993045260.870536897130678-0.257552919549820
5519.219.84717348250250.0392044550188137-0.6471734825024641.16511728205475
5617.819.42081040284360.0362949361160086-1.62081040284357-0.692773534588495
5719.219.03121955744060.03421417993367400.168780442559367-0.633818145267439
582220.23764823686000.03841448683962151.762351763139971.74347338170622
5921.120.44013224037050.03881671408841430.6598677596295050.243898459514867
6019.520.3949647252370.0386609491135392-0.894964725237015-0.124787568852385
6122.221.43690250944060.04092146154312570.7630974905593611.48771109188717
6220.921.69852766553760.0417476902809566-0.7985276655375870.325708355771775
6322.221.12048396934650.03818087925889331.07951603065353-0.90993732336224
6423.522.80499836011810.05038781535774470.6950016398819282.41351501765741
6521.522.13852227468700.0445442367829420-0.638522274687041-1.05422109455686
6624.322.88132699914860.05007577681129671.418673000851431.03198623927225
6722.823.15466438155290.0516455052942918-0.3546643815529210.331273151295866
6820.322.54186080103560.0477669899088914-2.24186080103563-0.987815705053212
6923.723.29007406745590.05098013635430380.4099259325440651.04170245144483
7023.322.53778159156620.04821677839244090.762218408433842-1.19418333655362
7119.620.62853731435180.0431727674353351-1.02853731435178-2.90863295597613
721819.74265127183600.0410861558289649-1.74265127183596-1.37943338834347
7317.317.98953051234660.036322510472855-0.68953051234658-2.65871347167898
7416.817.52402709577280.0344329381781700-0.72402709577282-0.741025416888488
7518.217.62153943116720.03476123244959960.5784605688327490.0928257205832044
7616.516.56228988794850.0277117694342975-0.0622898879484602-1.60820758490952
771616.66139976016350.0282177641002253-0.6613997601634880.105166035732995
7818.416.88681312822240.02960296861477931.513186871777610.291496508415680
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/1g3jb1259939155.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/1g3jb1259939155.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/4iqok1259939155.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/4iqok1259939155.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/5quc91259939155.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993924898g41sltvia5jis/5quc91259939155.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 12 ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
nx <- length(x)
x <- ts(x,frequency=par1)
m <- StructTS(x,type='BSM')
m$coef
m$fitted
m$resid
mylevel <- as.numeric(m$fitted[,'level'])
myslope <- as.numeric(m$fitted[,'slope'])
myseas <- as.numeric(m$fitted[,'sea'])
myresid <- as.numeric(m$resid)
myfit <- mylevel+myseas
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(mylevel,na.action=na.pass,lag.max = mylagmax,main='Level')
acf(myseas,na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(myresid,na.action=na.pass,lag.max = mylagmax,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(mylevel,main='Level')
spectrum(myseas,main='Seasonal')
spectrum(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(mylevel,main='Level')
cpgram(myseas,main='Seasonal')
cpgram(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test1.png')
plot(as.numeric(m$resid),main='Standardized Residuals',ylab='Residuals',xlab='time',type='b')
grid()
dev.off()
bitmap(file='test5.png')
op <- par(mfrow = c(2,2))
hist(m$resid,main='Residual Histogram')
plot(density(m$resid),main='Residual Kernel Density')
qqnorm(m$resid,main='Residual Normal QQ Plot')
qqline(m$resid)
plot(m$resid^2, myfit^2,main='Sq.Resid vs. Sq.Fit',xlab='Squared residuals',ylab='Squared Fit')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Structural Time Series Model',6,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,'Level',header=TRUE)
a<-table.element(a,'Slope',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Stand. Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,mylevel[i])
a<-table.element(a,myslope[i])
a<-table.element(a,myseas[i])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.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