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_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Fri, 04 Dec 2009 08:02:19 -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/t1259939050oe8ak21ak499d9v.htm/, Retrieved Fri, 04 Dec 2009 16:04:16 +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/t1259939050oe8ak21ak499d9v.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


Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal781079
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
114.515.0944532290277-0.32133592761834714.22688269859060.594453229027726
214.314.9650721971997-0.5908582350936214.22578603789390.665072197199716
315.314.94997606627011.4253345565327014.2246893771972-0.350023933729888
414.414.7456178657239-0.18367980480630414.23806193908240.345617865723927
513.713.5555433650574-0.40697786602492114.2514345009676-0.144456634942642
614.212.87608500673941.2492153040595514.2746996892011-1.32391499326060
713.513.6548576916501-0.95282256908468814.29796487743450.154857691650145
811.911.1995927387024-1.7262093436455614.3266166049432-0.700407261297611
914.614.29432919271250.55040247483569614.3552683324518-0.305670807287495
1015.615.74276545624911.0082751329313314.44895941081950.142765456249149
1114.113.34120021322000.31614929759276614.5426504891873-0.758799786780017
1214.915.4668485678870-0.36749299506312214.70064442717620.56684856788697
1314.213.8626975624533-0.32133592761834714.8586383651651-0.337302437546709
1414.614.7685528763388-0.5908582350936215.02230535875480.168552876338834
1517.217.78869309112281.4253345565327015.18597235234450.588693091122785
1615.415.6421099855524-0.18367980480630415.34156981925390.242109985552359
1714.313.5098105798616-0.40697786602492115.4971672861634-0.79018942013845
1817.518.10872335728311.2492153040595515.64206133865740.608723357283052
1914.514.1658671779333-0.95282256908468815.7869553911514-0.334132822066735
2014.414.6030839049608-1.7262093436455615.92312543868470.203083904960845
2116.616.59030203894630.55040247483569616.059295486218-0.0096979610536998
2216.716.20154472128741.0082751329313316.1901801457813-0.498455278712596
2316.616.56278589706270.31614929759276616.3210648053445-0.0372141029372948
2416.917.7352648692324-0.36749299506312216.43222812583070.835264869232414
2515.715.1779444813015-0.32133592761834716.5433914463169-0.52205551869854
2616.416.7591426981985-0.5908582350936216.63171553689510.359142698198532
2718.418.65462581599401.4253345565327016.72003962747330.254625815994018
2816.917.1676488388048-0.18367980480630416.81603096600150.267648838804806
2916.516.4949555614952-0.40697786602492116.9120223045297-0.00504443850478609
3018.318.30104369522021.2492153040595517.04974100072030.00104369522018999
3115.113.9653628721739-0.95282256908468817.1874596969108-1.13463712782612
3215.715.7671766129765-1.7262093436455617.35903273066910.0671766129764677
3318.118.11899176073690.55040247483569617.53060576442740.0189917607369345
3416.814.89880608249351.0082751329313317.6929187845751-1.90119391750646
3518.919.62861889768430.31614929759276617.85523180472290.728618897684328
361920.3830520511956-0.36749299506312217.98444094386751.38305205119560
3718.118.4076858446062-0.32133592761834718.11365008301210.307685844606208
3817.817.9863847916615-0.5908582350936218.20447344343210.186384791661542
3921.523.27936863961531.4253345565327018.2952968038521.77936863961529
4017.116.0441556039335-0.18367980480630418.3395242008728-1.05584439606645
4118.719.4232262681314-0.40697786602492118.38375159789350.723226268131413
421918.37244649071571.2492153040595518.3783382052247-0.62755350928428
4316.415.3798977565287-0.95282256908468818.3729248125559-1.02010224347126
4416.917.1531573324591-1.7262093436455618.37305201118650.253157332459082
4518.618.27641831534730.55040247483569618.373179209817-0.323581684652702
4619.319.16929377403551.0082751329313318.4224310930331-0.130706225964452
4719.420.0121677261580.31614929759276618.47168297624930.612167726157981
4817.616.9893391266856-0.36749299506312218.5781538683775-0.610660873314352
4918.618.8367111671126-0.32133592761834718.68462476050570.236711167112645
5018.117.9848713841974-0.5908582350936218.8059868508962-0.115128615802622
5120.420.44731650218051.4253345565327018.92734894128680.047316502180518
5218.117.3147424746840-0.18367980480630419.0689373301223-0.785257525315984
5319.620.3964521470671-0.40697786602492119.21052571895780.796452147067129
5419.919.14687255454151.2492153040595519.4039121413989-0.753127445458471
5519.219.7555240052446-0.95282256908468819.59729856384000.555524005244646
5617.817.4878858871229-1.7262093436455619.8383234565226-0.312114112877069
5719.217.77024917595910.55040247483569620.0793483492052-1.42975082404092
582222.63282692503821.0082751329313320.35889794203050.632826925038188
5921.121.24540316755150.31614929759276620.63844753485580.145403167551478
6019.518.4246517007967-0.36749299506312220.9428412942664-1.07534829920328
6122.223.4741008739413-0.32133592761834721.24723505367701.27410087394130
6220.920.861797160875-0.5908582350936221.5290610742186-0.038202839125006
6322.221.16377834870711.4253345565327021.8108870947602-1.03622165129291
6423.525.2461859749217-0.18367980480630421.93749382988461.74618597492174
6521.521.342877301016-0.40697786602492122.0641005650089-0.157122698984004
6624.325.42679330955861.2492153040595521.92399138638191.12679330955856
6722.824.7689403613298-0.95282256908468821.78388220775481.96894036132984
6820.320.9179896223853-1.7262093436455621.40821972126030.617989622385252
6923.725.81704029039850.55040247483569621.03255723476582.11704029039854
7023.325.13888393691231.0082751329313320.45284093015641.83888393691229
7119.619.01072607686020.31614929759276619.8731246255470-0.589273923139785
721817.0625475421009-0.36749299506312219.3049454529623-0.937452457899145
7317.316.1845696472408-0.32133592761834718.7367662803775-1.11543035275917
7416.816.0475862668205-0.5908582350936218.1432719682731-0.752413733179505
7518.217.42488778729861.4253345565327017.5497776561687-0.775112212701433
7616.516.240476640808-0.18367980480630416.9432031639983-0.259523359192006
771616.0703491941970-0.40697786602492116.33662867182790.0703491941970356
7818.419.82000966471701.2492153040595515.73077503122351.42000966471696
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939050oe8ak21ak499d9v/1o9wx1259938937.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939050oe8ak21ak499d9v/1o9wx1259938937.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939050oe8ak21ak499d9v/300k41259938937.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259939050oe8ak21ak499d9v/300k41259938937.ps (open in new window)


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


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
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,'Seasonal Decomposition by Loess - Time Series Components',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,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',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,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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