I am doing some elementary statistics and the following problem stumpled me a bit.
A merchant receives two batches of fish cakes from two different factories, but with the same produces. Thus one can not determine witch batch came from which factory. The batches are labeled $A$ and $B$, and they have the following contents \begin{align*} \textbf{Batch A:} & 100 \text{ boxes, whereof } 10 \text{ with mushy cakes, labeled } F_1 \\ \textbf{Batch B:} & 100 \text{ boxes, whereof } 5 \text{ with mushy cakes, labeled } F_1; \\ & \text{and in addition } 10 \text{ with foul smell and taste, labeled } F_2 \text{ , whereof } \\ & 1 \text{ with both } F_2 \text{ and } F_2 \,. \end{align*} Consider the errors mushy cakes and foul smell and taste to be impossible to detect from the outside, and can only be detected by destroying the inspected box.
b) Given that the merchant picked two boxes without error and one with only $F_1$ error, what is the probability that the boxes came from $A$?
I deduced that $$ \overbrace{3 \left( \frac{90}{100}\right)\left( \frac{10}{99}\right) \left( \frac{89}{98}\right)}^{\large P(E\,\cup\,F\,\cup\,E\,\mid\,A)} = \frac{267}{1078}\,,\quad \overbrace{3 \left( \frac{85}{100}\right)\left( \frac{4}{99}\right) \left( \frac{84}{98}\right)}^{\large P(E\,\cup\,F\,\cup\,E\,\mid\,B)} = \frac{34}{385} $$ This is not the same as in the solution manual, (is this still correct?) Thus the probability that the cake came from Batch A is $$ P(A\,\mid\,E\,\cup\,F\,\cup\,E) = \frac{267/1078}{34/385 + 267/1078} = \frac{1335}{1811} \approx 73.7 \% $$ Is this correct? This is needed for part c) which I am unsure about =)
The merchant leaves the batches in his warehouse and forget which batch is which. He then pulls 3 cakes from one of the batches and observes he obtained two error-free cakes and one mushy cake ($F_1$).
The merchant then wishes to sell the fish cakes for $1\$$, but is worried about the foul cakes. All the boxes will be sold, and he decides on the following.
- Mushy cakes, only error $F_1$, the money is refunded.
- Error $F_2$ or $F_2+F_1$ the money is refunded + $15\$$ in compensation.
c) The merchant wants to maximize his income, and has now four options>
- Sell all the remaining boxes.
- Sell the rest of the boxes in the unit of the three observed boxes came from.
- sell all the boxes of the other unit.
- Not sell any of the boxes at all.
what is the expected income in each case? Which option should the merchant choose?
My question is does the probability of which batch he did pick, affect the expectancy value?
I deduced the following for the three cases
- $E(x) = (90 + 85 - 2) \cdot 10 - 10 \cdot 15 = 23$
- ??? $E(x) = \cfrac{1335}{1811} \cdot \Bigl[ (88) \cdot 1 - 0 \cdot 9 \Bigr] + \cfrac{476}{1811} \cdot \Bigl[ (83) \cdot 1 - 0 \cdot 3 - 9 \cdot 15 \Bigr] \approx 51.203$
- ???
- 0
I am really clueless as to how to calculate the expectency value of $2$ and $3$. Any help or hints would be much appreciated.