Interview Q&A / Data Science

BeginnerQuick answer1 min readUpdated 3 Oct 2026

When do you use the binomial distribution?

SHORT ANSWER

Use it to count successes in a fixed number of independent trials, each with the same probability of success. The probability of exactly k successes in n trials is C(n,k) p^k (1-p)^(n-k).

Explain it simply

Four checks make a situation binomial:

  1. A fixed number of trials, n.
  2. Each trial has two outcomes: success or failure.
  3. The chance of success, p, is the same each time.
  4. Trials are independent.

Guessing answers on a quiz fits well: each question is a trial and you either get it right or not.

Example

A 10-question quiz has 5 options per question, so a blind guess is right with p = 0.2. What is the chance of exactly 3 correct?

P = C(10,3) x 0.2^3 x 0.8^7 = 120 x 0.008 x 0.2097152 = 0.2013

python
from scipy.stats import binom
print(round(binom.pmf(3, 10, 0.2), 4))  # 0.2013
print(10 * 0.2)                         # 2.0  (expected correct answers)

The mean is n x p = 2 and the variance is n x p x (1-p) = 1.6.

What to say in the interview

"Binomial models the number of successes in n independent yes/no trials with a constant success probability. Examples are clicks out of 1000 ad impressions or defective items in a batch. If the trial probability changes or trials are dependent, such as drawing without replacement from a small pool, binomial is only an approximation."

Common mistakes

  • Using it when the number of trials is not fixed, for example counting events over a time window. That is a Poisson situation.

#binomial#distributions#probability

Related questions

Practise more Data Science questions

Test your recall with short answers, then return to the detailed explanations when you need context.

Open Data Science quick answers →

Get new questions like this by email

One short email when something new and useful lands. No spam, unsubscribe in one tap.

By subscribing you agree to the Privacy Policy.