




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 1 of 45
l One of M ≥ 2 mutually exclusive hypotheses H 0 , H 1 , … , HM–1 is true l X is a random variable whose value we can observe, and use, to decide which of the hypotheses is true l If Hi happens to be the true hypothesis, then the pmf of X is Pi(u) l We can think of Pi(u) as p X |H i
conditional pmf of X given that Hi is true
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 2 of 45
l We observe the value of X and announce our decision as to which hypothesis we believe to be true l This decision may or may not coincide with reality — our decision may be Hi when in fact Hj is the true hypothesis l The decision rule (which we are free to choose as we wish) assigns a hypothesis (the decision!) to each possible value of X ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 3 of 45
l Likelihood matrix L has M rows (one for each hypothesis) and N columns (one for each value taken on by X ) l The entry in the i-th row and j-th column is Pi(uj), the (conditional) probability that X = uj when Hi is the true hypothesis l The sum of the entries in each row is 1 l The decision rule is specified by shading one entry in each column of L
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 4 of 45
l The (conditional) probability of a correct decision given that Hi is true is the sum of the shaded squares on the i-th row l The (conditional) probability of error given that Hi is true is the sum of the unshaded squares on the i-th row l Many statisticians are very uncomfortable with calling these parameters conditional probabilities
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 5 of 45
l The hypothesis for which the probability of the observation is the maximum is called the maximum-likelihood (ML) decision when that observation is made l For each observation (value of X ), the ML decision rule maximizes the likelihood of the observation l Operationally, the ML rule says: shade the largest entry in each column of L
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 6 of 45
l The ML decision rule is just one of many possible decision rules, and the various (conditional) probabilities of error can be computed as described before l Exercise: The ML rule shades the largest entry in each column of L. But we can maximize the probability of a correct decision (when Hi is true) by choosing the largest entry in the i-th row. Why does this better rule not work?
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 7 of 45
l The (conditional) probability of an error (event E) given that the hypothesis H (^) i is
l By the theorem of total probability,
where πi = P(Hi) is the probability that the hypothesis Hi is true l Many statisticians are very uncomfortable with the notion of probabilities being assigned to hypotheses ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 8 of 45
l Let C = Ec^ be the event that a correct decision is made. Then,
decision when hypothesis Hi is true is just the sum of the shaded entries on the i-th row of the likelihood matrix L l P(C) and P(E) are conveniently calculated via the joint probability matrix ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 9 of 45
l The i-th row of the likelihood matrix L is just the conditional pmf of X given that Hi is true (i.e. occurred) l If we multiply the i-th row by πi = P(Hi), we get P[{ X = uj}∩Hi], the probability that X has value uj and that Hi is true l Carrying out this operation on all the rows of L gives the joint probability matrix J whose (i,j)-th entry is P[{ X = uj}∩Hi]
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 10 of 45
l J = KL where K is a diagonal matrix l K = diag[π 0 , π 1 , …, πM–1] l J is a Venn diagram whose (i,j)-th entry is the joint probability P[{ X = uj}∩Hi] = Pi(uj)πi l The sum of all the entries in J is 1 l Since the row sums in L were 1, the row sums in J are just the πi l The column sums in J give us the unconditional pmf of X ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 11 of 45
l For an arbitrary decision rule specified by shaded entries in L, the probability of a correct decision is the sum of all the shaded entries in J l The probability of error is the sum of all the unshaded entries in J l The multiplications by the πi needed in the
taken care of while computing J from L
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 12 of 45
l P(C), the average probability of a correct decision, is the sum of the shaded entries in J l There is one shaded entry in each column l Which entries are to be shaded is up to us! l We can maximize P(C) (and thus minimize P(E)) by shading the largest entry in each column of J l The corresponding decision rule is called a minimum-error-probability decision rule
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 19 of 45
l The philosophical argument that in making decisions based on the observation that X had value uj, n one must look at inverse probabilities
n Decide in favor of the hypothesis with the largest a posteriori probability (MAP) ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 20 of 45
l The a posteriori probability matrix is found by dividing each entry in J, the joint probability matrix, by the corresponding column sum l This does not change the relative values of the entries in the column — the largest entry in a column is still the same l Don’t bother computing the a posteriori probability matrix! Just work with J to find the Bayes’ rule! ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 21 of 45
l Bayes’ decision rule depends on what the probabilities πi of the hypotheses are l Consider the special case πi = M–1^ for all i, that is, all M hypotheses are equally likely l Since J is found by multiplying the i-th row of L by πi ( = M–1^ for all i) the largest entry in a column of J is in the same position as the largest entry in L l Moral: ML decision rule = Bayes’ decision rule for equally likely hypotheses
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 22 of 45
l Many statisticians and philosophers dislike Bayesian decision rules intensely l “There are lies, there are damned lies, and there are statistics, … and then there are Bayes’ decision rules” l “The answer can be made to come out to whatever you want it to be!” l “Your personal prejudices and beliefs get injected into the problem”
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 23 of 45
l In many instances, it is difficult to assign probabilities to hypotheses l Example: Almost all U.S. military radars have never ever “painted” an actual enemy target. What is π 1 in this case? l In many instances where facts are hard to come by, the probabilities of hypotheses are based on beliefs l “Your personal prejudices and beliefs get injected into the problem” ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 24 of 45
l Bayesian statisticians claim that the non- Bayesian people are using Bayesian statistics but refusing to admit the fact l Non-Bayesians are implicitly assuming that the hypotheses are equally likely when they formulate the ML decision rule l The non-Bayesians are also injecting their (unstated) belief that the hypotheses are equally likely when they make the implicit assumption
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 25 of 45
l Consider the likelihood matrix and joint probability matrices shown below L J
l If π 0 /π 1 > 8/6, that is, if π 0 > 4/7, H 1 will never be chosen by the MAP rule l If π 0 /π 1 < 1/2, that is, if π 0 < 1/3, H 0 will never be chosen by the MAP rule
H 0 0.4 0.6 0.4π 0 0.6π 0 H 1 0.2 0.8 0.2π 1 0.8π 1 1 2 1 2
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 26 of 45
l Except when some entries in L are zero, it is always possible to find some probability assignment for the hypotheses such that the MAP rule chooses only one hypothesis l In contrast, the ML rule cannot always choose only one hypothesis l No row in L dominates another row (that is, every entry on the i-th row cannot be larger than the corresponding entry on the j-th row) Why ever not? ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 27 of 45
l The Bayesian approach is very valuable if used carefully and thoughtfully l The Bayesian approach can be abused very easily, and used to provide support for any theory that one wants to make up! l The Bayesian approach should not be discarded out of hand as useless l Kitchen knives are very useful tools but they can be very dangerous too!
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 28 of 45
l The approach to decision theory taken in ECE 313 will puzzle most statisticians l Statisticians use somewhat different terminology and somewhat different methods to derive the results that we obtained so easily via the L and J matrices l False alarm = Type I error False dismissal = Type II error
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 29 of 45
l We shall consider the simple case of two hypotheses H 0 and H 1 with corresponding pmfs p 0 (u) and p 1 (u) for the observation X l If X is observed to have the value ui, then the likelihood ratio Λ has value Λ = –––––
p 1 (ui) p 0 (ui) l As the name implies, Λ is the ratio of the likelihoods p 1 (ui) and p 0 (ui) of the X value ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 30 of 45
l The value of the likelihood ratio Λ depends on the observation, that is, the observed value of the random variable X l The likelihood ratio Λ can be viewed as a random variable that happens to be a function of the random variable X l Statisticians say that the likelihood ratio summarizes everything that we need to know about the decision problem
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 37 of 45
1 p 0 (u) where the subscript on the summation sign means that the summation is over the set Γ 1
0
p 1 (u) l P(E) = π 0 •p 0 (E) + π 1 •p 1 (E)
1
0 p 1 (u)
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 38 of 45
l P(E) = π 0 •p 0 (E) + π 1 •p 1 (E)
1
0 p 1 (u)
0 p 0 (u) to get
1
0 p 1 (u)
0
0 p 0 (u)
0
[π 1 •p 1 (u) – π 0 •p 0 (u)] l In this sum, the first term is fixed, but we can affect the total by careful choice of Γ 0 ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 39 of 45
0 [π 1 •p 1 (u) – π 0 •p 0 (u)] where the sum is over the set Γ 0 l The choice of the set Γ 0 is up to us l How can we choose Γ 0 to minimize P(E)? l If we include in Γ 0 every value (and only those values) of X for which π 1 •p 1 (u) – π 0 •p 0 (u) < 0 then the sum is as negative as possible
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 40 of 45
l The set Γ 0 is chosen to include every value (and only those values) of X for which π 1 •p 1 (u) – π 0 •p 0 (u) < 0 l This is equivalent to saying that we decide in favor of H 0 exactly when the likelihood ratio Λ = p 1 (u)/p 0 (u) is smaller than π 0 /π 1 l This provides an alternative derivation of the minimum error probability decision rule ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 41 of 45
l Ci,j is the cost if we decide that hypothesis Hj is true when in fact hypothesis Hi is true l Ci,i could be negative (indicating a reward) or it could be positive (representing the fixed costs associated with experiment) l Assumption: Ci,j > Ci,i l Costs are also called risks l Can costs be determined?
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 42 of 45
l Over a large number of trials, we incur different costs on different trials l The average cost or the expected value of the cost depends on the choice of the decision regions Γ 0 and Γ 1 l Average cost
1
0 p 1 (u)]C0,
0
1
p 1 (u)]C1,
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 43 of 45
l Average cost
1
0 p 1 (u)]C0,
0
1 p 1 (u)]C1, l Same trick of adding and subtracting gives that the average cost can be minimized by comparing the likelihood ratio Λ to the threshold (C1,0 – C0,0)•π 0 /(C0,1 – C1,1)•π 1 l If C1,0 = C0,1 and C0,0 = C1,1, we get the MAP rule!
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 44 of 45
l The average cost or risk of the minimum cost rule is called the Bayes’ risk l We will not discuss costs any further (or require you to understand them on exams) l For M ≥ 3 hypotheses, the calculations are messier — see the Lecture Notes from Fall 1997 on the class web page for some details if you are interested
ECE 313 - Lecture 17 © 2000 Dilip V. Sarwate, University of Illinois at Urbana-Champaign, All Rights Reserved Slide 45 of 45
l We have discussed the minimum error probability decision rule (a.k.a. MAP or maximum a posteriori probability or Bayes’ rule) at some length l We introduced the notion of the likelihood ratio Λ and the likelihood ratio test l The ML decision rule and MAP decision rule are threshold tests on Λ l The minimum-cost rule is also a threshold test on Λ