kb:hypothesis_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kb:hypothesis_testing [2021-05-10 14:16] jaeyoungkb:hypothesis_testing [2024-04-30 04:03] (current) – external edit 127.0.0.1
Line 8: Line 8:
 We can do this by making the decision that minimizes the probability of error *conditional* on the measurement $R = r$. We can do this by making the decision that minimizes the probability of error *conditional* on the measurement $R = r$.
  
-  * If $P(H_1|R = r) > P(H_0|R = r)$, that is, if it is more likely that $H = H_1$ than $H = H_0$ given that $R = r$, we decide '$H_1$'. +  * If $P(H_1|R = r) > P(H_0|R = r)$, that is, if it is more likely that $H = H_1$ than $H = H_0$ given that $R = r$, we decide $'H_1'$
-  * Otherwise, if $P(H_1|R = r) < P(H_0|R = r)$, that is, if it is more likely that $H = H_1$ than $H = H_0$ given that $R = r$, we decide '$H_0$'.+  * Otherwise, if $P(H_1|R = r) < P(H_0|R = r)$, that is, if it is more likely that $H = H_1$ than $H = H_0$ given that $R = r$, we decide $'H_0'$.
  
 The resulting conditional probability of error is: The resulting conditional probability of error is:
Line 27: Line 27:
 Since we are just comparing $P(H_0|R = r)$ and $P(H_1|R = r)$, we can cancel out the $f_R(r)$ on both sides, so it is equivalent to comparing $P(H_0) f_{R|H}(r|H_0)$ and $P(H_1) f_{R|H}(r|H_1)$: Since we are just comparing $P(H_0|R = r)$ and $P(H_1|R = r)$, we can cancel out the $f_R(r)$ on both sides, so it is equivalent to comparing $P(H_0) f_{R|H}(r|H_0)$ and $P(H_1) f_{R|H}(r|H_1)$:
  
-  * If $P(H_0) f_{R|H}(r|H_0) > P(H_1) f_{R|H}(r|H_1)$, then announce '$H_0$'. +  * If $P(H_0) f_{R|H}(r|H_0) > P(H_0) f_{R|H}(r|H_0)$, then announce $'H_0'$
-  * If $P(H_0) f_{R|H}(r|H_0) < P(H_1) f_{R|H}(r|H_1)$, then announce '$H_1$'.+  * If $P(H_0) f_{R|H}(r|H_0) < P(H_1) f_{R|H}(r|H_1)$, then announce $'H_1'$
 + 
 +===== Likelihood ratio test ===== 
 + 
 +The likelihood ratio $\Lambda(r)$ is defined as: 
 + 
 +$$ \Lambda(r) = \frac{f_{R|H}(r|H_1)}{f_{R|H}(r|H_0)} $$ 
 + 
 +We can compare this likelihood ratio to the threshold $\eta$, which is the ratio between the a priori probabilities: 
 + 
 +$$ \eta = \frac{P(H_1)}{P(H_0)} $$ 
 + 
 +If $ \Lambda(r) > \eta $, then announce $'H_1'$. Otherwise, announce $'H_0'$.
  
 ===== Terminology for different probabilities ===== ===== Terminology for different probabilities =====
Line 51: Line 63:
  
 $$ P(H_1| 'H_1') $$ $$ P(H_1| 'H_1') $$
 +
 +Negative predictive value (probability that $H = H_0$ given that we announce $H = H_0$):
 +
 +$$ P(H_0| 'H_0') $$
  • kb/hypothesis_testing.1620656161.txt.gz
  • Last modified: 2024-04-30 04:03
  • (external edit)