MHB Solving for $E(x)$ when X is a Fair Die Toss

  • Thread starter Thread starter dfraser
  • Start date Start date
AI Thread Summary
The discussion centers on calculating the expected value E(X) for the number of times a fair die is tossed before a six appears. The expected value is derived using the formula E(X) = ∑ x·p(x), where p(x) is the probability distribution of the outcomes. The key step involves recognizing that the sum can be simplified using the formula for the infinite series, leading to E(X) = 5. An alternative method discussed involves conditioning on the outcome of the first throw, ultimately confirming that E = 5. The explanation clarifies the confusion regarding the squared term in the denominator of the expected value calculation.
dfraser
Messages
4
Reaction score
0
I'm given that: X is the random variable for the number of times a fair die is tossed before a six appears, and asked for E(x).

I know the solution is 5 but am struggling to understand how I'm meant to get there. I understand:

$$E(x) = \sum_{x=0}^{\infty} x\cdot p(x)\ $$
$$= \sum_{x=0}^{\infty} x \cdot (1/6) \cdot (5/6)^x $$
$$= 5/6 \cdot 1/6 \cdot\sum_{x=1}^{\infty} x \cdot (5/6)^{x-1} $$

but am then given that:

$$= \frac{5/6 \cdot 1/6}{{(1-5/6)}^{2}} =5 $$

I recognize the numerator, and know the formula for the infinite sum of a geometric series is $$\frac{a}{1-r}$$ but I don't know how to get the denominator from the prior step or why it is squared. I think this is an easy mistake, but I can't seem to find it. Can anyone help me here?
 
Mathematics news on Phys.org
\[
\sum_{n=1}^\infty nx^{n-1}= \sum_{n=1}^\infty \left(x^n\right)' =\sum_{n=0}^\infty \left(x^n\right)' \overset{(*)}{=}\left(\sum_{n=0}^\infty x^n\right)' =\left(\frac{1}{1-x}\right)' =\frac{1}{(1-x)^2}.
\]
The equality (*) holds for $x$ in the interval of convergence of the right-hand side, i.e., for $|x|<1$.
 
dfraser said:
I'm given that: X is the random variable for the number of times a fair die is tossed before a six appears, and asked for E(x).

I know the solution is 5 but am struggling to understand how I'm meant to get there. I understand:

$$E(x) = \sum_{x=0}^{\infty} x\cdot p(x)\ $$
$$= \sum_{x=0}^{\infty} x \cdot (1/6) \cdot (5/6)^x $$
$$= 5/6 \cdot 1/6 \cdot\sum_{x=1}^{\infty} x \cdot (5/6)^{x-1} $$

but am then given that:

$$= \frac{5/6 \cdot 1/6}{{(1-5/6)}^{2}} =5 $$

I recognize the numerator, and know the formula for the infinite sum of a geometric series is $$\frac{a}{1-r}$$ but I don't know how to get the denominator from the prior step or why it is squared. I think this is an easy mistake, but I can't seem to find it. Can anyone help me here?

Hi dfraser! Welcome to MHB! :)Let's define:
$$f(y) = \sum_{n=1}^\infty ny^{n-1}$$
Then:
$$\int f(y) = \sum_{n=1}^\infty y^n + C_1 = \sum_{n=0}^\infty y^n + C_2 = \frac 1{1-y} + C_2$$
Taking the derivative, we get:
$$f(y) = \sum_{n=1}^\infty ny^{n-1} = \frac 1{(1-y)^2} \tag{1}$$When we apply $(1)$ to your formula, then:
$$E(x)
= \frac 56 \cdot \frac 16 \cdot\sum_{x=1}^{\infty} x \cdot \left(\frac{5}{6}\right)^{\!{x-1}}
= \frac 56 \cdot \frac 16 \cdot \frac 1 {(1 - \frac 56)^2}$$Edit: for some reason I completely missed Evgeny's response. Ah well.
 
The infinite series approach is fine, but here is another way for the sake of variety: condition on the result of the first throw. Let's say E is the expected number of throws before throwing a 6.

With probability 1/6, you will throw a 6 on the first throw. In this case the number of throws before a 6 is 0.

With probability 5/6, you throw something else (not a 6). You are now in the same state you were in before the first throw, but since you have taken one throw, the total number of throws expected before you get a 6 is E+1.

So $E = (1/6) \; 0 + (5/6) \;(E+1)$. Solve for E.
 
Thanks everyone, I understand now.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Replies
1
Views
1K
Replies
1
Views
2K
Replies
14
Views
2K
Replies
7
Views
1K
Replies
4
Views
1K
Replies
4
Views
1K
Back
Top