Giter Club home page Giter Club logo

regression's Issues

How would you calculate the significance of the correlation (relationship)?

I'm a self-taught beginner in statistics and I'm still wrapping my head around the concepts as I go, so please feel free to correct anything I say.

With that said, I would like to be able to perform a linear regression on some data and than calculate the statistical significance of the regression based on the correlation coefficient and the number of data points.

Basically I want to know

  • the direction of the trend (the slope of the line from linear regression)
  • the strength of the relationship (the coefficient of determination, aka R-Squared)
  • and the significance of the relationship, calculated with a pretty complicated formula, or read from a table:

See http://www.oneonta.edu/faculty/vomsaaw/w/psy220/files/SignifOfCorrelations.htm

How would you suggest I go about getting the significance of the correlation?

Is it something that makes sense to include in this library? Should I include it in a wrapper, a level above?

(For my own future reference
http://vassarstats.net/rsig.html - calculates significance from r and N, but the code in JS is ugly
http://janda.org/c10/Lectures/topic06/L24-significanceR.htm - more notes about strength and significance)

Add Regularization

Looking at the math, it seems possible to add regularization to the gradient descent component. This would avoid over-fitting by penalizing a fit for having larger or more coefficients. Should be able to build it as a decorator over the gradient objects.

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.