Thread: linear regression and statistical analysis in c

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    45

    linear regression and statistical analysis in c

    hi,

    is there some package/source code that is out there that i can use for linear regression and statistical analysis (in particular, hypothesis testing and p-value generation)?

    i think the regression part is quite straightforward, as there are standard equations to use. but the hypothesis testing is rather tricky, with look-up tables and all that.

    thanks for any suggestion!

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    I don't know what platform you're working on and whether you have any budget, but a quick Google search for "statistics libraries C" turned up several results. Do you have to solve this in C? If not, there's the R project. Note that I have zero experience with any of that stuff so I can't help you much with it, but hopefully it will be at least a little bit helpful.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    45
    i am working on ubuntu. what i would like to do is carry out some simple statistical analysis on a 3D image (columns, rows, bands), for instance a linear regression on all the bands of a particular pixel, and then finding the p-value for the coefficients generated. this has to be done for all the pixels in the image, which number like a few million. so, i dont know if R can do this. but anyhow, i am not familiar with R.

    will this be simpler to do in matlab?

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Yeah, it would probably be easier in Matlab. If you end up having to use C however, I would probably go with GNU's GSL. I've never used it, but if it's anything like GMP or most of their other products, it's free, pretty solid and well documented.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beam or Frame Analysis for Structural Analysis
    By greenmania in forum C Programming
    Replies: 3
    Last Post: 05-05-2010, 05:40 PM
  2. Statistical Mode Function
    By h4rrison.james in forum C Programming
    Replies: 5
    Last Post: 01-16-2009, 09:48 PM
  3. Linear Regression
    By sean in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 06-28-2002, 10:45 AM
  4. Statistical mode......
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 02-10-2002, 03:49 PM
  5. Linear Regression
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-17-2001, 10:04 PM