home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- dhyper(x, N1, N2, n)
- phyper(x, N1, N2, n)
- qhyper(p, N1, N2, n)
- rhyper(nobs, N1, N2, n)
-
- _A_r_g_u_m_e_n_t_s:
-
- N1 : the number of white balls in the population.
-
- N2 : the number of black balls in the population.
-
- n : the number of balls drawn from the urn.
-
- p : probability, it must be between 0 and 1.
-
- nobs : the number of observations to be generated.
-
- _V_a_l_u_e:
-
- These functions provide information about the hyper-
- geometric distribution with parameters N1, N2 and n.
- dhyper gives the density, phyper gives the distribution
- function qhyper gives the quantile function and rhyper
- generates random deviates.
-
- The hypergeometric distribution has density
-
- p(x) = Choose(N1,x) Choose(N2,n-x) / Choose(N1+N2,n)
-
- for x = 0, ..., n.
-
-