Giter Club home page Giter Club logo

fastreg's Introduction

fastreg

A faster regression routine for Python.

There are a number of regression routines for Python, but none of them handle vectorised calculations (to my knowledge). A classic example of this problem is regression in time of an array which includes spatial dimensions. A simple way to approach this would be to loop over each spatial point. This approach is extremely slow. A faster approach is to use matrix operations.

fastreg implements a vectorised ordinary least squares (OLS) linear regression for used when the independent data vary only with time but the dependent data vary in both time and space (a new version allowing the independent data to also vary in space is planned).

The equation for the parameters of the OLS problem is:

OLS equation

fastreg implements this in Python and calculates the Pearson correlation coefficient, p-value for the hypothesis test whose null hypothesis is that the slope is zero, and the standard error for the slope estimate.

fastreg's People

Contributors

ajferraro avatar

Stargazers

Bryan Bischof avatar

Watchers

 avatar

fastreg's Issues

Allow the independent data vary

Hi @ajferraro great project! I'm just wondering if you are still planning on your TODO list implementing this feature: that both X and Y are 2-D arrays yet under the hood vectorised univariate simple OLS is performed.

Looking forward!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.