During the course of my research I couldn't find software that will do linear regressions in python with confidence bands. So I've written my own. Features include:

  • Perform linear regression with hypothesis testing on the value of the slope and intercept
  • Predict the response variable for a given value of the independent variable
  • Confidence bounds on the parameters and confidence bands for the fit
  • Depends only on numpy and scipy
  • Inline testing and documentation through doctest and epydoc

If this sounds like something that might be useful to you go and check it out at github. Issues and bugs can also be reported there.

This work was completed with support from the Royal Veterinary College.