Skip to content
Prev 170886 / 398506 Next

Python and R

On Wed, Feb 18, 2009 at 7:27 AM, Esmail Bonakdarian <esmail.js at gmail.com> wrote:
Yes, the speedup can be significant.  e.g. here we cut the time down to
40% of the lm time by using lm.fit and we can get down to nearly 10% if
we go even lower level:
user  system elapsed
  26.85    0.07   27.35
user  system elapsed
  10.76    0.00   10.78
user  system elapsed
   3.33    0.00    3.34
Call:
lm(formula = DAX ~ . - 1, data = EuStockMarkets)

Coefficients:
     SMI       CAC      FTSE
 0.55156   0.45062  -0.09392
SMI         CAC        FTSE
 0.55156141  0.45062183 -0.09391815
SMI         CAC        FTSE
 0.55156141  0.45062183 -0.09391815