SoatDev IT Consulting
SoatDev IT Consulting
  • About us
  • Expertise
  • Services
  • How it works
  • Contact Us
  • News
  • June 6, 2023
  • Rss Fetcher

The previous post looked at an application of the beta-binomial distribution. The probability mass function for a beta-binomial with parameters n, a, and b is given by

text{Prob}(X = x) = binom{n}{x} frac{B(x + a, n - x + b)}{B(a, b)}

The mean μ and the variance σ² are given by

begin{align*} mu &= frac{na}{a+b} \ sigma^2 &= frac{nab(a + b + n)}{(a+b)^2(a + b + 1)} end{align*}

Solving for a and b to meet a specified mean and variance appears at first to require solving a cubic equation, but it’s easier than that.

If we define p = a/(a+b) then the system becomes

begin{align*} mu &= np \ sigma^2 &= n p (1-p)frac{a + np}{a + b} end{align*}

We assume n is known and so p is known, and we are left with a linear equation for a. With a little work we find

begin{align*} a &= -frac{mu(mu^2 - mu n + sigma^2)}{mu^2 - mu n + sigma^2 n} \ b &= frac{a(n - mu)}{mu} end{align*}

I verified the calculations above with Mathematica.

One use for solving for a and b would be to fit a beta-binomial distribution to data using moment matching. I don’t know how robust this would be, but at least it’s something.

Another application would be to find a beta-binomial prior distribution with elicited mean and variance.

The post Beta-binomial with given mean and variance first appeared on John D. Cook.

Previous Post
Next Post

Recent Posts

  • Trump pulls Musk ally’s NASA Administrator nomination
  • Left-leaning influencers embrace Bluesky without abandoning X, Pew says
  • NAACP calls on Memphis officials to halt operations at xAI’s ‘dirty data center’
  • Meta plans to automate many of its product risk assessments
  • The ellipse hidden inside Pascal’s triangle

Categories

  • Industry News
  • Programming
  • RSS Fetched Articles
  • Uncategorized

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Tap into the power of Microservices, MVC Architecture, Cloud, Containers, UML, and Scrum methodologies to bolster your project planning, execution, and application development processes.

Solutions

  • IT Consultation
  • Agile Transformation
  • Software Development
  • DevOps & CI/CD

Regions Covered

  • Montreal
  • New York
  • Paris
  • Mauritius
  • Abidjan
  • Dakar

Subscribe to Newsletter

Join our monthly newsletter subscribers to get the latest news and insights.

© Copyright 2023. All Rights Reserved by Soatdev IT Consulting Inc.