Expectation of Negative Binomial Distribution

AI Thread Summary
The expectation of the negative binomial distribution can be expressed in two ways depending on the interpretation of the random variable X. If X represents the number of failures before achieving r successes, the expectation is r(1-p)/p. Conversely, if X denotes the total number of trials needed to achieve r successes, the expectation is r/p. The confusion arises from differing definitions of r, which is typically the number of successes rather than trials. Both formulas are valid within their respective contexts, clarifying the source of the discrepancy in various literature.
GregA
Messages
210
Reaction score
0
I am re-writing up some lecture notes and one of the proofs that E[X] for the negative binomial is r/p where r is the number of trials...The problem is there are a number of books that say r(1-p)/p is the correct expectation whilst others agree with 1/p

Which one is correct...for what its worth I have worked through the proof that the expectation for the geometric distribution is 1/p and find it pretty convincing...hence I'm lead to believe that r/p is correct for the negative binomial...I am worried though that a good number of sources differ in opinion however.

Can you folks pitch in please?
 
Physics news on Phys.org
wikipedia says r(1-p)/p for E[X] for a Negative Binomial Distribution. I tend to trust it on math topics.

Are you sure you wrote down the proof correctly?
 
Both are correct!

BTW, I think you are using a very non-standard definition. r is almost always the predetermined number of successes that must be reached, not the number of trials.

The reason both are correct is because there are two different interpretations of the random variable X: The number of failures that occur in reaching the r successes, or the number of trials needed to reach r successes. The expected value of the number of failures is r\frac{1-p}{p} while the expected value of the number of trials is \frac r p.
 
Excellent!...thanks for that..by the way I ought to have said successes but it was late when I typed it...again, thanks :)
 
I was reading a Bachelor thesis on Peano Arithmetic (PA). PA has the following axioms (not including the induction schema): $$\begin{align} & (A1) ~~~~ \forall x \neg (x + 1 = 0) \nonumber \\ & (A2) ~~~~ \forall xy (x + 1 =y + 1 \to x = y) \nonumber \\ & (A3) ~~~~ \forall x (x + 0 = x) \nonumber \\ & (A4) ~~~~ \forall xy (x + (y +1) = (x + y ) + 1) \nonumber \\ & (A5) ~~~~ \forall x (x \cdot 0 = 0) \nonumber \\ & (A6) ~~~~ \forall xy (x \cdot (y + 1) = (x \cdot y) + x) \nonumber...
Back
Top