p-value calculation

Discussion in 'Perl Misc' started by rahulthathoo, Nov 18, 2006.

  1. rahulthathoo

    rahulthathoo Guest

    Hi.

    I was wondering if anyone here would know how to go about calculating
    the p-value in perl. The
    thing is that I have 2 sets A and B. There are lets say 200 entries in
    each set, each entry between 0 and 1 and I need to find the Pearson
    Correlation Coefficient r. I did this in perl. I had r for 200 points.
    Now I want to be able to calculate the p-value for this experiment. How
    do i do that in PERL. I can do that easily in Excel using the TDist
    function. So for a given r, I can calculate the t-value (called the
    statistic) as t=r/sqrt[(1-r²)/(N-2)] where r is the pearson and N =
    200 and from here I can get the TDist in Excel which is the p-value.
    But I cant seem to do this in PERL? Any clues?

    Rahul
    rahulthathoo, Nov 18, 2006
    #1
    1. Advertising

  2. rahulthathoo <> wrote:

    > I did this in perl.



    You did that in Perl.


    > How
    > do i do that in PERL.



    How do you do that in Perl.



    Case matters.


    --
    Tad McClellan SGML consulting
    Perl programming
    Fort Worth, Texas
    Tad McClellan, Nov 18, 2006
    #2
    1. Advertising

  3. rahulthathoo

    Guest

    "rahulthathoo" <> wrote:

    > I can do that easily in Excel using the TDist function.


    Statistics::Distributions::tprob

    Xho

    --
    -------------------- http://NewsReader.Com/ --------------------
    Usenet Newsgroup Service $9.95/Month 30GB
    , Nov 18, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sunil

    power calculation in fpga

    sunil, Feb 10, 2004, in forum: VHDL
    Replies:
    2
    Views:
    1,265
    Brendan Cullen
    Feb 11, 2004
  2. Runar Gjelsvik

    CRC polynomal calculation

    Runar Gjelsvik, Apr 28, 2004, in forum: VHDL
    Replies:
    2
    Views:
    2,258
    Allan Herriman
    Apr 29, 2004
  3. Daniel

    calculation in string

    Daniel, Aug 27, 2003, in forum: Perl
    Replies:
    7
    Views:
    2,821
    Trent Curry
    Sep 10, 2003
  4. =?Utf-8?B?SXNzYWMgR29tZXo=?=

    Date Calculation

    =?Utf-8?B?SXNzYWMgR29tZXo=?=, Jun 9, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,419
    mikeb
    Jun 9, 2004
  5. Christof Warlich

    compile time value -> index calculation

    Christof Warlich, May 9, 2008, in forum: C++
    Replies:
    3
    Views:
    312
    gnuyuva
    May 10, 2008
Loading...

Share This Page