Lecture 8 Hypothesis Testing
I-Hsiang Wang
Department of Electrical Engineering National Taiwan University ihwang@ntu.edu.tw
December 21, 2016
1 / 25 I-Hsiang Wang IT Lecture 8
Lecture 8 Hypothesis Testing I-Hsiang Wang Department of - - PowerPoint PPT Presentation
Lecture 8 Hypothesis Testing I-Hsiang Wang Department of Electrical Engineering National Taiwan University ihwang@ntu.edu.tw December 21, 2016 1 / 25 I-Hsiang Wang IT Lecture 8 In this lecture, we elaborate more on binary hypothesis
1 / 25 I-Hsiang Wang IT Lecture 8
1 Fundamental performance limits of binary hypothesis testing.
(α: Probability of false alarm/type-I error/false positive) (β: Probability of miss detection/type-II error/false negative).
2 Asymptotic performance of testing from n i.i.d. samples as n → ∞.
2 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details
3 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Recap: Log Likelihood, Neyman-Pearson Test
4 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Recap: Log Likelihood, Neyman-Pearson Test
(Null Hypothesis, θ = 0)
(Alternative Hypothesis, θ = 1)
5 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Recap: Log Likelihood, Neyman-Pearson Test
1 L(θ|x) ≜ Pθ(x) (viewed as a function of parameter θ given the data x) is called the likelihood function of θ. 2 For binary HT, likelihood ratio L(x) ≜ L(1|x)
L(0|x) = P1(x) P0(x)
3 Log likelihood ratio (LLR)
4 A (randomized) likelihood ratio test (LRT) is a test φτ,γ defined as follows:
(parametrized by cosntants τ ∈ R and γ ∈ (0, 1))
6 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Recap: Log Likelihood, Neyman-Pearson Test
7 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Recap: Log Likelihood, Neyman-Pearson Test
αφ≤α
8 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
9 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
1 It is closed and convex. 2 It contains the diagonal line {(a, 1 − a) | a ∈ [0, 1]}. 3 It is symmetric w.r.t. the diagonal line: (α, β) ∈ R(P0, P1) ⇐
4 Lower boundary (below the diagonal line) {β∗(α) | α ∈ [0, 1]} is attained by Neyman-Pearson Test.
10 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
(a) |X| = ∞
(b) |X| < ∞
11 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
12 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
13 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
14 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
15 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Tradeoff between α and β
16 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance: Prelude
17 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance: Prelude
i.i.d.
i.i.d.
1
FA ≜ P {H1 is chosen | H0} = EXn∼P ⊗n
MD ≜ P {H0 is chosen | H1} = EXn∼P ⊗n
1
18 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance: Prelude
19 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance: Prelude
n
i=1 P1(xi) P0(xi) = n
i=1
τn,γn (xn) =
i=1 l (xi) ≷ τn
i=1 l (xi) = τn
i=1 li > τn} + γnL⊗n
i=1 li = τn}
1
i=1 li ≤ τn} − γnL⊗n 1
i=1 li = τn}
20 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance: Prelude
i=1 li > τn} ≤ α(n) ≤ L⊗n
i=1 li ≥ τn} ,
1
i=1 li < τn} ≤ β(n) ≤ L⊗n 1
i=1 li ≤ τn} .
i=1 Zi ≥ ζ} for some Zi
i.i.d.
i=1 Zi ≥ ζ} vanishes as n → ∞. But the question is, how fast does it converge to 0?
i=1 Zi ≥ ζ} ≍ 2−n(I(ζ)+o(1)), where I(ζ) ≥ 0.
21 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance in Stein's Regime
22 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance in Stein's Regime
(not scaling with n), β∗(n, ε) ≜ minφ: X n→[0,1] β(n) φ
φ
n→∞ − 1 n log β∗(n, ε) = D (P0 ∥P1), that is, β∗(n, ε) ≍ 2−n(D(P0 ∥P1)+o(1)).
n→∞
n log β(n)}
n→∞
n log β(n)}
23 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance in Stein's Regime
i=1 li > λ} ≤ α(n) + 2−λβ(n) ≤ ε + 2−λβ(n)
i=1 li > λ} − ε
n log β(n) ≤ − 1 n
i=1 li > λ} − ε
i=1 li > λ} > 1 − ε′ and hence
n log β(n) ≤ − log(1−ε′−ε) n
n→∞
n log β(n)}
24 / 25 I-Hsiang Wang IT Lecture 8
Binary Hypothesis Testing: More Details Asymptotic Performance in Stein's Regime
i=1 li ≥ τn} ,
i=1 li ≥ τn} ≤ ε.
n log β(n) ≥ D (P0 ∥P1) − δ.
n→∞
n log β(n)}
25 / 25 I-Hsiang Wang IT Lecture 8