# I chose a random number from 1 to 6. Afterwards, I roll a die till I get a result that is even or higher than my chosen number. What is the E(x) of the number of times I throw the die?

Karsyn Beltran 2022-07-22 Answered
I chose a random number from 1 to 6. Afterwards, I roll a die till I get a result that is even or higher than my chosen number. What is the E(x) of the number of times I throw the die?
So I thought it's Geometric distribution will "success" where "success" is to get my number. So first the probability of choosing a random number in the die is 1/6. Now I can't configure what is the probability to get something even or higher? Since I chose the number randomly. and afterthat, I just need to divide 1 by the probability I get (like the geometric E(x) formula)?
You can still ask an expert for help

Expert Community at Your Service

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Available 24/7
• Math expert for every subject
• Pay only if we can solve it

## Answers (1)

akademiks1989rz
Answered 2022-07-23 Author has 16 answers
Step 1
Let X be uniformly distributed on {1,…,6} and let N be the number of times that you need to roll the die. Note that $N\mid X=x$ is geometrically distributed with probability mass function $P\left(N=k\mid X=x\right)=\left(1-p{\right)}^{k-1}p\phantom{\rule{1em}{0ex}}\left(k\ge 1\right)$ where $p=\frac{6-x+1}{6}$.
Step 2
The law of total expectation yields that
$EN=E\left(EN\mid X\right)=E\frac{6}{6-X+1}=6E\frac{1}{6-X+1}=6×\frac{1}{6}\left(1+\frac{1}{2}\cdots \frac{1}{6}\right).$
So $EN=\sum _{k=1}^{6}\frac{1}{k}$
###### Did you like this example?

Expert Community at Your Service

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Available 24/7
• Math expert for every subject
• Pay only if we can solve it