

Binomial {base}                              R Documentation

_T_h_e _B_i_n_o_m_i_a_l _D_i_s_t_r_i_b_u_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n_:

     These functions provide information about the binomial
     distribution with parameters `size' and `prob'.  `dbi-
     nom' gives the density, `pbinom' gives the distribution
     function `qbinom' gives the quantile function and
     `rbinom' generates random deviates.

_U_s_a_g_e_:

     dbinom(x, size, prob)
     pbinom(q, size, prob)
     qbinom(p, size, prob)
     rbinom(n, size, prob)

_A_r_g_u_m_e_n_t_s_:

     x,q: vector of quantiles.

       p: vector of probabilities.

       n: number of observations to generate.

    size: number of trials.

    prob: probability of success on each trial.

_D_e_t_a_i_l_s_:

     The binomial distribution with `size' = n and `prob' =
     p has density

               p(x) = Choose(n,x) p^x (1-p)^(n-x)

     for x = 0, ..., n.

     If an element of `x' is not integer, the result of
     `dbinom' is zero, with a warning.

     The quantile is left continuous: `qbinom(q, ...)' is
     the largest integer x such that P(X <= x) < q.

_S_e_e _A_l_s_o_:

     `dnbinom' for the negative binomial, and `dpois' for
     the Poisson distribution.

_E_x_a_m_p_l_e_s_:

     # Compute P(45 < X < 55) for X Binomial(100,0.5)
     sum(dbinom(46:54, 100, 0.5))

