IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i13p2155-d1691886.html
   My bibliography  Save this article

An Algorithm for the Conditional Distribution of Independent Binomial Random Variables Given the Sum

Author

Listed:
  • Kelly Ayres

    (College for Public Health and Social Justice, Saint Louis University, Saint Louis, MO 62034, USA)

  • Steven E. Rigdon

    (College for Public Health and Social Justice, Saint Louis University, Saint Louis, MO 62034, USA)

Abstract

We investigate Metropolis–Hastings (MH) algorithms to approximate the distribution of independent binomial random variables conditioned on the sum. Let X i ∼ BIN ( n i , p i ) . We want the distribution of [ X 1 , … , X k ] conditioned on X 1 + ⋯ + X k = n . We propose both a random walk MH algorithm and an independence sampling MH algorithm for simulating from this conditional distribution. The acceptance probability in the MH algorithm always involves the probability mass function of the proposal distribution. For the random walk MH algorithm, we take this distribution to be uniform across all possible proposals. There is an inherent asymmetry; the number of moves from one state to another is not in general equal to the number of moves from the other state to the one. This requires a careful counting of the number of possible moves out of each possible state. The independence sampler proposes a move based on the Poisson approximation to the binomial. While in general, random walk MH algorithms tend to outperform independence samplers, we find that in this case the independence sampler is more efficient.

Suggested Citation

  • Kelly Ayres & Steven E. Rigdon, 2025. "An Algorithm for the Conditional Distribution of Independent Binomial Random Variables Given the Sum," Mathematics, MDPI, vol. 13(13), pages 1-12, June.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:13:p:2155-:d:1691886
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/13/2155/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/13/2155/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:13:p:2155-:d:1691886. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.