Skip to content

why my rugarch ugarchfit function is slow ?

2 messages · ce, Alexios Ghalanos

ce
#
Hi Alexios,

One more request. Are those execution times are normal ?
user  system elapsed 
 484.99    0.02  487.62
user  system elapsed 
  13.71    0.02   13.74 

 arfima=TRUE option makes autoarfima very slow ?


-----Original Message-----
From: "alexios ghalanos" [alexios at 4dscape.com]
Date: 07/04/2013 04:23 AM
To: "ce" <zadig_1 at excite.com>
CC: "" <alexios at 4dscape.com>, "" <r-sig-finance at r-project.org>
Subject: Re: [R-SIG-Finance] why my rugarch ugarchfit function is slow ?

Hi,

I took out an old laptop from storage runnnig Mint x46 on an Intel Core 
2 (older than the 'i's) and was able to reproduce the problem with
rugarch 1.2-5. However, on updating to the newest release on google code 
(1.2-6) I got:

spec = ugarchspec(variance.model = list(model = 'fGARCH',submodel = 
'NAGARCH', garchOrder = c(2, 1)), distribution = 'sstd')
system.time(ugarchfit(spec, sp500ret, solver = 'hybrid'))
  user  system elapsed
  11.412   0.052  11.470

This is "likely" related to a reversal of a change made in a previous 
version for vectorizing distributions (and affecting among other things 
the stationarity constraint, but not the likelihood
evaluation as this is in any case evaluated in C). Make sure you get the 
newest version from its google code repository and that you are in fact 
installing it.

Regards,

Alexios
On 07/04/2013 10:22 AM, ce wrote:
#
Yes it is slow because the fractional parameter is estimated by ML using 
a truncation lag of about 1000 (there are quicker methods but this is 
the method used by rugarch for the joint ARFIMA-GARCH estimation...and 
it just carries over to the
ARFIMA-non GARCH model). The autoarfima function provides the option of
passing a cluster object (from the parallel package) in order to 
evaluate the models in parallel (but you probably already knew this as 
it is documented).

-Alexios
On 05/07/2013 15:04, ce wrote:
3,-0.284186788,0.024811748,0.020883211,-0.112795494,0.317639288,0.072787942,0.113058086,0.120935481,0.017040238,-0.011857846,-0.027410019,-0.211765940,-0.054488185,-0.268140917,0.034273403,-0.098347132,0.040078224,-0.010772097,0.000000000,0.000000000,0.000000000,0.000000000,0.537189816)