You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: newquestions/bayescoins/ExampleQuestion.tex
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -128,11 +128,11 @@ \section{Answer}
128
128
P( C_{R} \vert 10H ) p( 10H )
129
129
\text{,}
130
130
\end{align*}
131
-
but since this contains the probability we are trying to solve, so this line of thinking will lead to circular reasoning and is not helpful.
131
+
but this is not helpful, as it contains the probability we are trying to determine and will lead to circular reasoning.
132
132
133
133
You can expand denominator in
134
134
\eqref{eq:1000coins:bayesexplain}
135
-
using the law of total probability and considering all the possible ways you can see ten heads.
135
+
using the law of total probability to consider all the possible ways you can see ten heads.
136
136
Since you only have two types of coins---either a fair coin or a rigged one---there are only two ways ten heads can happen:
137
137
\begin{align*}
138
138
P( 10H ) =
@@ -151,11 +151,19 @@ \section{Answer}
151
151
\end{align*}
152
152
by applying the law of conditional probability to each of the terms.
153
153
Combining the nominator and the denominator yields \eqref{eq:1000coins:bayeslaw1}.
154
-
You could also opt for a visual explanation of Bayes' Law, such as the one in question \textcolor{red} {TODO: ref question}.
155
-
156
-
This question uses Bayes' law as a starting to point to test your handle on important probability concepts and your ability to grapple with notation on-the-spot.
157
-
It is easy to confuse the basic concepts or to forget some useful rules, which is another reason for doing proper interview preparation, no matter how smart you think you are.
158
154
155
+
My interviewer used this Bayes' law question to test my handle on probability concepts.
156
+
It is easy to confuse these basic concepts, which is another reason for doing proper interview preparation.
157
+
Some interviewers ask this question and demand an ``intuitive'' solution that doesn't rely on algebraic manipulation.
158
+
In this case, you could opt for a visual explanation of Bayes' Law, like that of answer \ref{a:bayeslawdisease}.
159
+
If that's not what your interviewer wants, use the following argument.
160
+
You know the probability of choosing the rigged coin is $1/1000$.
161
+
You also know the probability of getting ten heads from a fair coin is $1/2^{10} = 1/1024$.
162
+
These two events are about equally likely, meaning the probability that we have the double headed coin is about a half.
163
+
If you only had nine heads in a row, the fair coin would give a probability of $1/512 = 2/1024$.
164
+
That means the outcome of nine heads is about twice as likely with the fair coin as the probability of selecting the rigged coin.
165
+
So the odds of ${fair}{:}{rigged}$ are $2{:}1$, leading you to assign a probability of about $1/3$ to the rigged coin being selected.
166
+
%TODO: could link this up to section on gambling mathematics
0 commit comments