How to maximize P(Y = y*) for a negative binomial distribution

Click For Summary

Discussion Overview

The discussion revolves around finding the probability p that maximizes P(Y = y*) for a negative binomial distribution with known parameter r. Participants explore mathematical approaches to derive p through calculus, specifically by taking derivatives of the probability function.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a rigorous method to find the probability p that maximizes P(Y = y*) for a negative binomial distribution.
  • Another participant suggests taking the derivative of the probability function and setting it to zero as a method to find maxima or minima.
  • A participant provides a formulation of the negative binomial probability function and outlines the steps to take the derivative with respect to p.
  • One participant reports an incorrect result (p = -5) when applying the method, indicating a potential error in their calculations.
  • A later reply corrects a previous mistake regarding the sign of a term in the derivative, suggesting that the second term should be negative.
  • Another participant notes that keeping q in the form of 1 - p is necessary for the calculations to yield correct results.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and correctness in their calculations, with some corrections made along the way. The discussion does not reach a consensus on the final method or solution.

Contextual Notes

There are unresolved mathematical steps and potential dependencies on the definitions of the parameters involved. The correctness of the derivative and the implications of the sign changes are also under scrutiny.

dmatador
Messages
120
Reaction score
1
How can I find probability p that maximized P(Y = y*) when Y has a negative binomial distribution with parameters r (known) and p? I've just reduced the problem with some algebra, but other than guess-and-check I have no rigorous way to solve this problem.
 
Physics news on Phys.org
Maximize/minimize = take the derivative and set it equal to zero
 
Maybe you could elaborate on that? More specifically.
 
Sorry was just trying to avoid using latex.

But write down your binomial dist. It should be
neg_binomial = A * p^k * (1-p)^r
where A won't depend on p, but will be some combinatoric.

Now take the derivative with respect to p.
A*k*p^(k-1)*(1-p)^r + A*r*p^k*(1-p)^(r-1)
now set that equal to 0 and solve for p. It will be some explicit value depending on your parameters.

Sorry for skimping on the latex, if its too unclear I can re-write it for you.

edit: But the point is that whenever you want to find a max or min, that is an equivalent statement to saying that the slope of the function has to be zero (although a zero slope isn't always a max or min).
 
I tried it for Y = 11, r = 5. I ended up getting p = -5, which is clearly wrong.
 
dmatador said:
I tried it for Y = 11, r = 5. I ended up getting p = -5, which is clearly wrong.

First off, one obvious mistake on what I wrote to you before.

The second term of the expression should be negative not positive (from the chain rule on the derivative of (1-p)). Maybe double check that the rest is right.

If it still doesn't give a sensible answer I'll work it out explicitly tomorrow.

Sorry about that.
 
Oh no worries, it works now. But I guess you'll have to keep q in the form 1 - p for this to work, because you won't get a minus sign between the two terms.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 10 ·
Replies
10
Views
9K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K