rStats.js v1.3.0
    Preparing search index...

    Function pbinom

    • Distribution function of the binomial distribution. Equivalent to R's pbinom(q, size, prob, lower.tail = TRUE, log.p = FALSE).

      Type Parameters

      Parameters

      • q: T

        Quantile(s): a number, number[] or Float64Array. The result has the same shape.

      • size: number

        Number of trials.

      • prob: number

        Probability of success on each trial.

      • options: TailOptions = {}

        lowerTail and logP (see TailOptions).

      Returns VectorResult<T>

      The probability (or log probability).

      pbinom(3, 10, 0.5);      // 0.171875
      pbinom([3, 5], 10, 0.5); // [0.171875, 0.623046875]