Likelihood of binomial data at each candidate rate on a grid.
A convenience so that a first grid-approximation exercise is about the
update, not about remembering where scipy.stats.binom lives.
- Parameters:
- successes : int
Number of successes observed.
- n : int
Number of trials.
- grid : array_like
Candidate rates, in [0, 1].
- Returns:
P(successes out of n | rate) at each grid point.
- Return type:
ndarray