home *** CD-ROM | disk | FTP | other *** search
-
- _T_h_e _B_i_n_o_m_i_a_l _D_i_s_t_r_i_b_u_t_i_o_n
-
- dbinom(x, n, p)
- pbinom(x, n, p)
- qbinom(prob, n, p)
- rbinom(nobs, n, p)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : vector of quantiles.
-
- prob : vector of probabilities.
-
- nobs : number of observations to generate.
-
- n : number of trials.
-
- p : probability of success on each trial.
-
- _V_a_l_u_e:
-
- These functions provide information about the binomial
- distribution with parameters n and p. dbinom gives the
- density, pbinom gives the distribution function qbinom
- gives the quantile function and rbinom generates random
- deviates.
-
- The binomial distribution has density
-
- p(x) = Choose(n,x) p^x (1-p)^(n-x)
-
- for x = 0, ..., n.
-
- _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))
-
-