There are two urns one with 6 blue objects an 4 yellow objects, and the other with 3 blue objects and 4 yellow objects. We choose an object at random.
(1) If an object we select is yellow, what is the probability it came from the first urn?
(2) Assume we put the yellow object from (1) back in the urn it was drawn from and then draw an object from the same urn. This object is also yellow. What is the probability we chose the first urn?
I have already determined that $$\mathbb{P}(\{\text{We drew from the first urn}\}| \{\text{The object was yellow}\})=\frac{1}{2}.$$
$$\mathbb{P}(\{\text{We drew from the first urn}\}| \{\text{The object was yellow}\})$$
We compute this using Bayes' theorem.
$$\frac{\mathbb{P}(\{\text{The object was yellow}\}|\{\text{We drew from the first urn}\})\mathbb{P}(\{\text{We drew from the first urn}\})}{\mathbb{P}\{\text{The object was yellow}\}}$$
Implicit in the question are the following probabilities:
$$\mathbb{P}(\{\text{The object was yellow}\})=\frac{8}{17}$$
$$ \mathbb{P}(\{\text{The object was yellow}\}|\{\text{We drew from the first urn}\})=\frac{4}{10}$$
$$\mathbb{P}(\{\text{We drew from the first urn}\})=\frac{10}{17}$$
Combining these results together, we have that
$$\mathbb{P}(\{\text{We drew from the first urn}\}| \{\text{The object was yellow}\})=\frac{\frac{4}{10}\frac{10}{17}}{\frac{8}{17}}=\frac{1}{2}$$
Part $(b)$ looks like it is asking to compute $\mathbb{P}(\{\text{We drew the second object the first urn}\}| \{\text{the set of outcomes such that the first and second draws are from the same urn and both objects are yellow}\})$.
Is this the correct way to set up the question?
Here is my understanding for part $(2)$, let $A$= "from $1$st urn | ball is yellow"
$$P(A)=P(A\cap \text{part(1) from 1st urn})+P(A\cap \text{part(1) from 2nd urn})$$
$$P(A\cap \text{part(1) from 1st urn})=P(A~|~ \text{part(1) from 1st urn})\cdot P(\text{part(1) from 1st urn})$$
$P(A\cap \text{part(1) from 2nd urn})=0$, because it says "we put the yellow object from (1) back in the urn it was drawn from and then draw an object from the same urn", so if the first time in part(1) you draw from the 2nd urn, then for part(2), you still draw from 2nd urn (from the same urn), so event $A$ cannot happen, so this part is zero.