Skip to content

Performance: sequential regression #296

Open

Description

@josef-pkt

cases where we calculate a sequence of regression problems that add variables (in a predetermined sequence) are candidates for optimization

example lag determination tsa.stattools._autolag

  • does fortran order make a difference
  • any advantages of using cholesky or QR?

(do we need a performance label?)

Activity

  1. jseabold commented on Jun 1, 2012

    @jseabold
    Member

    This is even something we could push to Cython and use Tokyo for. I still have a few installation hiccups I need to fix in that branch, then it's going to be okay to merge in, and we can see about pushing things down. We can start to set up performance benchmarks too if this is desirable.

    We might also be able to get away with only doing one regression like in ANOVA I/II. I have to look again at the details.

  2. josef-pkt commented on Jun 1, 2012

    @josef-pkt
    MemberAuthor

    I thought of your ANOVA work, and a discussion I had once with Charles about using QR or Cholesky (?)

    My guess is an algorithmic solution will be more useful, than doing the same thing in Cython. Loops for adding variables will not be long in most cases, and the heavy stuff is inefficient linear algebra, I think.

    A bit similar would be Leave-one-Variable out, although there it's dropping a variable at a time instead of sequentially adding (LOO is inherently parallel).

  3. josef-pkt commented on Jun 20, 2012

    @josef-pkt
    MemberAuthor

    I just found another use case for this tsa.arima_process.arma_pacf(ar, ma, nobs=10) solves a sequence of Toeplitz problems that might also be translated to use QR instead. (Would be much faster.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions