I am having a hard time understanding the concept of a negative binomial distribution. For example the question:
How many times do you expect to roll a six-sided die before landing on the number 6.
The answer to this question is obviously 6 but if I attempt to solve this using a probability function I cannot get the correct answer.
I attempted to answer this question by letting
$X = \text {numbers other than 6 that appear in order to roll a 6}$ $Y = \text{number of rolls required in order to get a 6}$
I know the probability function is defined as $P(X=x) = f(x) = p(1-p)^{x}$
I know that $Y = X + 1$ so $X = Y-1$ then
$P(X=x) = P(X = y-1) = \frac{1}{6}(\frac{5}{6})^{y-1}$ but when I plug in $y=6$ why am I not getting a very high percentage as getting a 6 should be expected on the 6th roll.
Can someone please explain the flaws in my argument.
This is because you're computing a probability, not an expected value.
There is no need to introduce two variables. Let $X$ the number of times you roll the die before you get a $6$.
You have $P(X=k)=p(1-p)^k$, for $k\geq 0$, with $p=\frac{1}{6}$ (by the way this is a geometric distribution). If you want the expected value, then you have to compute:
$$E(X)=\sum_{k=0}^{\infty}kP(X=k)$$
This is a geometric series so it's easy to find the result.