Docsity

Decision Making Under Certainty II - Lecture Slides | ECE 313, Study notes of Statistics

Toggle sidebar
bg1
ECE 313 — Probability with Engineering Applications Fall 2000
Department of Electrical and Computer Engineering
University of Illinois at Urbana-Champaign 16.1
Decision
-
making under uncertainty II
ECE 313
Probability with Engineering Applications
Decision
making
under
uncertainty
II
Professor Dilip V. Sarwate
Department of Electrical and
Computer Engineering
© 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign. All Rights Reserved
Hypothesis testing model
zOne of M mutually exclusive hypotheses
H0, H1, … , HM–1 is true
zX is a random variable whose value we
can observe, and use, to decide which of
ECE 313 -Lecture 16 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1of 48
the hypotheses is true
zIf Hi happens to be the true hypothesis,
then the pmf of Xis Pi(u)
zTo avoid trivialities, we assume that M ≥ 2
The decision rule
zWe observe the value of Xand announce
our decision as to which hypothesis we
believe to be true
zThis decision ma
y
or ma
y
not coincide
ECE 313 -Lecture 16 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2of 48
yy
with reality — our decision may be Hi
when in fact Hjis the true hypothesis
zThe decision rule (which we are free to
choose as we wish) assigns a hypothesis
(the decision!) to each possible value of X
Specifying the decision rule
zWe can specify the decision rule as a table
that lists all the values of Xand the
corresponding decisions
zAfter observin
g
the value of
X
, we merel
y
ECE 313 -Lecture 16 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3of 48
g
y
look up our decision in the table and
announce it!
zThe process is completely mechanical (or
computerized?) — observe Xand look up
the decision from the table
General remarks on decision rules
zThere are M choices of hypothesis for the
decision for each of the N values of X
zThus, there are MNdifferent decision rules
that we could use
ECE 313 -Lecture 16 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 4of 48
zIf M > N, some hypotheses will never be
chosen for any value of X
zIf M < N, several values of Xwill result in
the same decision
Simple example of a decision rule
zConsider a binary hypothesis test in which
the observation Xtakes on only the values
1 and 2
zOur decision rule is as follows
ECE 313 -Lecture 16 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5of 48
If X= 1, decide H0is the true hypothesis
If X= 2, decide H1is the true hypothesis
zRemember that the decision might not be
correct (or it might be correct)
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Decision Making Under Certainty II - Lecture Slides | ECE 313 and more Study notes Statistics in PDF only on Docsity!

Fall 2000

Decision-making under uncertainty II

ECE 313

Probability with Engineering ApplicationsDecision making under uncertainty IIProfessor Dilip V. SarwateDepartment of Electrical andComputer Engineering© 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign. All Rights Reserved

Hypothesis testing model z^ One of M mutually exclusive hypothesesH, H, … , H^0

is trueM– z^ X^ is a random variable whose value wecan observe, and use, to decide which of ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 1 of 48 the hypotheses is true z If Hhappens to be the true hypothesis,i^ then the pmf of^

X^ is P(u)i z^ To avoid trivialities, we assume that M

≥^2

The decision rule z^ We observe the value of

X^ and announce our decision as to which hypothesis webelieve to be true z This decision may or may not coincide ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 2 of 48 y^ y with reality — our decision may be H

i when in fact Hj^

is the true hypothesis z^ The decision rule (which we are free tochoose as we wish) assigns a hypothesis(the decision!) to each possible value of

X

Specifying the decision rule z^ We can specify the decision rule as a tablethat lists all the values of

X^ and the corresponding decisions z After observing the value of

X , we merely ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 3 of 48 g^

y look up our decision in the table andannounce it! z The process is completely mechanical (orcomputerized?) — observe

X^ and look up the decision from the table

General remarks on decision rules z^ There are M choices of hypothesis for thedecision for each of the N values of

X

z^ Thus, there are M

N^ different decision rules that we could use ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 4 of 48 z^ If M > N, some hypotheses will never bechosen for any value of

X

z^ If M < N, several values of

X^ will result in the same decision

Simple example of a decision rule z^ Consider a binary hypothesis test in whichthe observation

X^ takes on only the values 1 and 2 z Our decision rule is as follows ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 5 of 48 If^ X^ = 1, decide H

is the true hypothesis 0 If^ X^ = 2, decide H

is the true hypothesis 1 z^ Remember that the decision might not becorrect (or it might be correct)

Fall 2000

Deterministic vs randomized rules z^ The decision rule that we have describedis called a deterministic decision rule z^ A randomized decision rule is one inwhich, after observing

X , we choose the ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

g^ Slide 6 of 48 decision “randomly” with speci

fied probabilities z If^ X^ = 1, toss a coin with P(Heads) = 0.7and decide Hif Heads, H^0

if Tails 1 z^ If^ X^ = 2, toss a coin with P(Heads) = 0.25and decide H

if Heads, Hif Tails 0 1

Deterministic

⊂^ randomized

z^ If^ X^ = 1, toss a coin with P(Heads) = 0.7and decide H^0

if Heads, Hif Tails 1 z^ If^ X^ = 2, toss a coin with P(Heads) = 0.25and decide H^0

if Heads, Hif Tails 1 ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 7 of 48 (^0 1) z Our deterministic decision rule (H

if^ X^ = 1 0 and Hif^ X^ = 2) is trivially a randomized^1 rule z We merely toss a two-headed coin if

X^ = 1

and a two-tailed coin if

X^ = 2 !!

A sigh of relief… z^ Randomized decision rules are more“powerful” than deterministic rules, e.g.when M > N … z^ Randomized decision rules provide morel^ t^ l ti

th^ d t^

i i ti^ l ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 8 of 48 elegant solutions than deterministic rules z But, they add more complications to life z We will not discuss randomized rules indetail any further — just be aware(beware?) of their existence

L is the likelihood matrix z^ The pmf of^ X^

depends on which one of Mhypotheses happens to be true z^ Let^ X^ take on values u

, u, … u 1 2 N z^ We write the pmfs in an likelihood array (or ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 9 of 48 z^ We^ write the pmfs in an likelihood array (orlikelihood matrix) of M rows (one for eachhypothesis) and N columns (one for eachof the possible values of

X )

z^ We denote this M

×N matrix by L (for likelihood)

Properties of the likelihood matrix z^ L is an array of M rows and N columns z^ Each row corresponds to a hypothesis z^ Each column corresponds to one of thevalues taken on by

X

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 10 of 48 values^ taken on by

X

z^ The entry in the i-th row and j-th column isP(u), the probability thatij

X^ = uwhen Hj^ i^

is the true hypothesis z The sum of the entries in each row is 1

Example of a likelihood matrix^0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 11 of 48 H0.16^ 0.1^2

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

z^ The values of

X^ are shown in orangeabove the top row z^ Each row is a pmf; some values are 0

Fall 2000

Probability of error when H

is true 0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 18 of 48 z^ P{error when H

is true} = P{ X^ 0

≠^ 0}

z^ P{ X^ ≠^ 0} = sum of unshaded entries on theH^0 H0.16^ 0.1^ 0.1^2 row of the likelihood matrix^

H0.0^ 0.3^3

0.3^ 0.

Probability of error when H

is truei

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 19 of 48 z^ More generally, if H

is the true hypothesis,i H0.16^ 0.1^2 P{error} = sum of unshaded entries on theHrow of the likelihood matrixi^

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

Probability of error when H

is truei

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 20 of 48 z^ P{error} = 0.8, 0.36, 0.36, and 0.7according as H

, H, H, Hare (^0 1 2 3) the true hypotheses H0.16^ 0.1^2

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

Maximum-likelihood decision rule I z^ We know one of the hypotheses is true z^ We have observed the value of

X , say u^3 z^ Under which hypothesis would the eventalready observed, viz. {

X^ = u}, have had^3 ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

3^ Slide 21 of 48 the largest probability? z The hypothesis which maximizes thisprobability is the maximum-likelihooddecision when {

X^ = u} is observed^3 z^ Repeat for other values of

X

Maximum-likelihood decision rule II z^ The hypothesis for which the probability ofthe observation is the maximum is calledthe maximum-likelihood decision whenthat observation is madeSt ti ti i^ i^

i t th t^ lli^ th

thi ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 22 of 48 z^ Statisticians insist that calling these thingsprobabilities is a grievous sin — they arelikelihoods, not probabilities! z^ For each observation, the maximum-likelihood decision rule maximizes thelikelihood of the observation

Finding the ML decision rule z^ Under which hypothesis would the alreadyobserved event {

X^ = u} have had the^3 largest probability (or likelihood)? z Which of the probabilities (likelihoods)P (^ ) i^ th^ l^

t? ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 23 of 48 P(u) is the largest?i^3 z Remember that P

(u) is the pmf ofij

X^ when His the true hypothesisi^ z Operationally, the ML rule says: shadethe largest entry in each column of L

Fall 2000

This is a maximum-likelihood rule!^0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 24 of 48 z^ Notice that the largest entry in eachcolumn is shaded z^ But what about the column for

X^ = 1 ??

H0.16^ 0.1^2

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

This is an ML rule too!^0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 25 of 48 H0.16^2 z Which 0.3 entry should we choose?

0.1^ 0.^

H0.0^ 0.3^3

0.3^ 0.

z^ It depends on which error probability wewant to make smaller

The radar system problem again z^ X^ is the number of echoes detected by theradar receiver z^ H:^ X^ ~ Binom(n, p^0

H:^ X^ ~ Binom(n p^1

) where p<< p 1 0

1 ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 26 of 48 H:^ X^ Binom(n, p^1

) where p<< p 1 0

1 z^ The likelihood matrix has 2 rows and n+1columns z^ k-th column entries are P

(k) and P(k) 0 1 k^ n–k^ •p(1 – p)^ and

k^ n–k •p(1 – p)^ nk

nk 0 0

1 1

Which is larger? z^ Which is larger?k^ n–k•p(1 – p)^

k^ or^ •p(1 – p)

n–k^? nk

nk 0 0

1 1 z^ The answer depends on the value of k ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 27 of 48 p z^ Take the logarithm of the ratio P

(k)/P(k) 1 0 z^ If k•ln(p/p) + (n–k)•ln[(1–p^1

)/(1–p^ )] > 0, 1 0 then P(k) > P^1

(k)^ ⇒^ the ML rule says H

1 z^ If k >^

, say H^1 n•ln[(1–p^ )/(1–p^0

)] 1

ln(p/p) + ln[(1–p^1

)/(1–p^ )] 0 1

ML decision in the radar problem z^ H: X ~ Binom(n, p^0

H: X ~ Binom(n, p^1

) where p< p 1 0 1 z^ The maximum-likelihood decision rule interms of L looks something as shown ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 28 of 48 terms^ of L looks something as shownwhere the “break-point” is given by themaximum-likelihood threshold

θML n•ln[(1–p z θ= (^) ML )/(1–p^ )] (^0 1) ln(p/p) + ln[(1–p)/(1–p^ )] 1 0 0 1 H^0 H^1

ML decision rule in words z^ H:^ X^ ~ Binom(n, p^0

H:^ X^ ~ Binom(n, p^1

) where p< p 1 0 1 z^ The maximum-likelihood decision rule isas follows: If the observed value of

X

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 29 of 48 as^ follows: If the observed value of

X

exceeds the maximum-likelihood thresholdn•ln[(1–p θ=^ ML^

)/(1–p^ )] (^0 1) ln(p/p) + ln[(1–p)/(1–p^ )] 1 0 0 1 then announce the decision as H

(the 1 target is present). Else announce H

0

Fall 2000

The average error probability z^ The average probability of making anerroneous decision isP(E) =

∑^ P(E|H)•P(Hii

z^ Here P(E|H), the error probability wheni ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 36 of 48

(^ |^ )^ i

p^ y hypothesis H^ is true is just the sum of thei^ unshaded entries on the i-th row of thelikelihood matrix L z The i-th row of L is just the conditional pmfof^ X^ given that H

is true (i.e. occurred),i that is, it is p X |H

(u|H) ii

Better to be right than to be wrong! z^ The average probability of making acorrect decision isP(C) =

∑^ P(C|H)•P(Hi

)i

z^ Here P(C|H ) the probability of a correct ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 37 of 48

z^ Here^ P(C|H), the probability of a correcti decision when hypothesis H

is true is justi the sum of the shaded entries on the i-throw of the likelihood matrix L z We now convert the likelihood matrix intothe joint probability matrix

Likelihoods to joint probabilities z^ The i-th row of the likelihood matrix L isjust the conditional pmf of

X^ given that Hi is true (i.e. occurred) z If we multiply the i-th row by P(H

), we geti ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 38 of 48 p y^

y^ (^ )^ gi the probabilities that

X^ has the various values and that H

is truei z^ Carrying out this operation on all the rowsof L gives a matrix called the jointprobability matrix J

Properties of joint prob. matrix J z^ For 0^ ≤^ i^ ≤^ M–1, if we multiply the i-th rowof L by P(H), we get a matrix called thei joint probability matrix J z^ J = KL where K is a diagonal matrix ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 39 of 48 z^ K = diag[P(H^0

), P(H), …, P(H 1

)]M–^

z^ J is a giant Venn diagram whose (i,j)-thentry is the joint probability P[{

X^ = u}∩H]ji z^ The sum of all the entries in J is 1

More joint prob. matrix properties z^ For 0^ ≤^ i^ ≤^ M–1, if we multiply the i-th rowof L by P(H), we get a matrix called thei joint probability matrix J z^ The sum of all the entries in J is 1 ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 40 of 48 z^ Since the row sums in L were 1, the rowsums in J are just the P(H

)i z^ The column sums in J give us theunconditional pmf of

X

Example: Likelihood matrix^0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 41 of 48 H0.16^ 0.1^2

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

z^ Suppose that P(H

) = 0.4 = P(H) and 0 3 P(H) = 0.1 = P(H^1

Fall 2000

Example: Joint probability matrix^0

1 2 3 H0.08 0.12^ 0.08^ 0.12 0 H0.012 0.024^ 0.064 0.00 1 H 0 016 0 01^ 0 01^ 0 064

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 42 of 48 H0.016^ 0.01^2

0.01^ 0.

H0.00^ 0.12^3

0.12^ 0.

z^ P(H) = 0.4 = P(H^0

z^ P(H) = 0.1 = P(H^1

Conditional probabilities of C^0

H0.2^ 0.3^0

0.2^ 0.

H0.12^ 0.24^1

0.64^ 0.

H^ 0 16^ 0 1

0 1^ 0 64

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 43 of 48

z^ P(C|H) = 0.2, P(C^0

|H) = 0.64,^1

P(C|H) = 0.64, and P(C^2

|H) = 0.3^3

z^ P(C) = (0.2+0.3)

×0.4 + 0.64×^2 ×

H0.16^ 0.1^2

0.1^ 0.

H0.0^ 0.3^3

0.3^ 0.

P(Correct Decision) from J^0

1 2 3 H0.08 0.12^ 0.08^ 0.12 0 H0.012 0.024^ 0.064 0.00 1 H 0 016 0 01^ 0 01^ 0 064

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 44 of 48 H0.016^ 0.01^2

0.01^ 0.

H0.00^ 0.12^3

0.12^ 0.

z^ P(C) = sum of shaded entries= 0.08 + 0.064 + 0.064 + 0.12= 0.

Correct decision probability and J z^ For an arbitrary decision rule speci

fied by shading entries in L, the (average)probability of a correct decision is the sumof the corresponding shaded entries in JTh^ (^ )^

b bilit^ f^

i^ th ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 45 of 48 z^ The (average) probability of error is thesum of all the unshaded entries in J z^ L and J provide a simple procedure forcomputing various error probabilities z^ L gives conditional error probabilities;J gives average error probabilities

Maximize P(C) by clever choice z^ P(C), the average probability of a correctdecision, is the sum of the shaded entriesin J z^ There is one shaded entry in each column z^ Which entries are to be shaded is up to us! ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 46 of 48 z^ Which^ entries

are to be shaded is up to us! z^ We can maximize P(C) (and thus minimizeP(E)) by shading the largest entry in eachcolumn of J z^ The corresponding decision rule is called aminimum-error-probability decision rule

P(C) for Minimum-Error-Prob. rule^0

1 2 3 H0.08 0.12^ 0.08^ 0.12 0 H0.012 0.024^ 0.064 0.00 1 H 0 016 0 01^ 0 01^ 0 064

ECE 313 - Lecture 16^ © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved

Slide 47 of 48 H0.016^2 z P(C) = sum of shaded entries= 0.08 + 0.12 + 0.12 + 0.16= 0.48 > 0.

0.01^ 0.01^ 0.064H0.00 0.12^ 0.12^ 0.16 3