Ignore:
Timestamp:
Nov 23, 2015, 9:20:08 AM (7 years ago)
Author:
Peter
Message:

closes #841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/Fisher.h

    r3425 r3441  
    148148       hypergeometric distribution
    149149       \f$ \sum_k P(k) \f$ where summation runs over \a k such that
    150        \f$ |k-<a>| \ge |a-<a>| \f$.
     150       \f$ P(k) \le P(a) \f$.
    151151
    152152       \return two-sided p-value
     
    195195    // two-sided
    196196    double p_value_approximative(void) const;
    197     //two-sided
     197    // two-sided
    198198    double p_value_exact(void) const;
     199    // calculate two-sided p-value to get k (or fewer) wins when
     200    // drawing t samples out of of a population of n1 wins and n2 losses
     201    double p_value_exact(unsigned int k, unsigned int n1, unsigned int n2,
     202                         unsigned int t) const;
     203
     204    double lower_tail(unsigned int k, unsigned int n1, unsigned int n2,
     205                      unsigned int t) const;
     206
     207    // return P(X=k+1) / P(X=k)
     208    double hypergeometric_ratio(unsigned int k, unsigned int n1,
     209                                unsigned int n2, unsigned int t) const;
     210    double choose_ratio(unsigned int n, unsigned int k) const;
     211
     212    double p_left_exact(void) const;
     213    double p_right_exact(void) const;
    199214
    200215    double yates(unsigned int o, double e) const;
Note: See TracChangeset for help on using the changeset viewer.