home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / Hypergeometric < prev    next >
Encoding:
Text File  |  1997-04-23  |  982 b   |  35 lines

  1.     
  2.     _T_h_e _H_y_p_e_r_g_e_o_m_e_t_r_i_c _D_i_s_t_r_i_b_u_t_i_o_n
  3.     
  4.          dhyper(x, N1, N2, n)
  5.          phyper(x, N1, N2, n)
  6.          qhyper(p, N1, N2, n)
  7.          rhyper(nobs, N1, N2, n)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.               N1 : the number of white balls in the population.
  12.     
  13.               N2 : the number of black balls in the population.
  14.     
  15.                n : the number of balls drawn from the urn.
  16.     
  17.                p : probability, it must be between 0 and 1.
  18.     
  19.             nobs : the number of observations to be generated.
  20.     
  21.     _V_a_l_u_e:
  22.     
  23.          These functions provide information about the hyper-
  24.          geometric distribution with parameters N1, N2 and n.
  25.          dhyper gives the density, phyper gives the distribution
  26.          function qhyper gives the quantile function and rhyper
  27.          generates random deviates.
  28.     
  29.          The hypergeometric distribution has density
  30.     
  31.           p(x) = Choose(N1,x) Choose(N2,n-x) / Choose(N1+N2,n)
  32.     
  33.          for x = 0, ..., n.
  34.     
  35.