Docsity

Decision Theory - Essay - Mathematics, Essays (high school) of Mathematics

Toggle sidebar
bg1
Paninski, Intro. Math. Stats., October 26, 2005 40
Part I I
Decision theory
Chaos umpire sits,
And by decision more embroils the fray
By which he reigns: next him high arbiter
Chance governs all.
Milton, Paradise Lost, I. 907
The excitement that a gambler feels when making a bet is equal to the
amount he might win times the probability of winning it.
Blaise Pascal
The only useful function of a statistician is to make predictions, and thus
to provide a basis for action.
W.E.Deming
Enough probability; we have what we need now to start doing statistics.
“Decision theory” is about how to behave optimally under uncertainty,
and as such provides a nice backbone for the various statistical procedures
we’ll be looking at.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Decision Theory - Essay - Mathematics and more Essays (high school) Mathematics in PDF only on Docsity!

Part II

Decision theory

Chaos umpire sits, And by decision more embroils the fray By which he reigns: next him high arbiter Chance governs all. Milton, Paradise Lost, I. 907

The excitement that a gambler feels when making a bet is equal to the amount he might win times the probability of winning it. Blaise Pascal

The only useful function of a statistician is to make predictions, and thus to provide a basis for action. W.E.Deming

Enough probability; we have what we need now to start doing statistics. “Decision theory” is about how to behave optimally under uncertainty, and as such provides a nice backbone for the various statistical procedures we’ll be looking at.

Loss functions, expected loss, etc.

Figure 10: Wald.

The basic idea of decision theory is that we want to minimize our expected loss. These things are always easier to think about with an example in mind. So, let’s say I offer you a bet. I have two coins: one biased towards heads (70- 30 heads) and one even more biased towards tails (80-20 tails). I’ll randomly choose one of the coins (not telling you which one), flip a few times, then let you make a bet on whether the coin was biased towards heads or tails. You can take heads or tails, but the odds are different:

you bet heads you bet tails

coin is heads you win 1$ you lose 1$

coin is tails you lose 10$ you win 10$

How do you decide whether to say heads (H) or tails (T), given the number of heads and tails that came up? I guess this depends on how lucky you feel...

So let’s put everything together. We’ll compute the expected loss as a function of θ, aka the “risk function”

R(θ) ≡ E[C(truth, guess(D))|θ].

Note that D is a r.v., therefore so is guess(D), and it makes sense to compute this expectation. We have

R(θ) =

truth∈A

p(truth|θ)

D

p(D|truth)C(truth, guess(D))

= θ

D

p(D|H)C(H, guess(D)) + (1 − θ)

D

p(D|T )C(T, guess(D))

= θ

∑^ N

n=

N

n

(0.7)n(0.3)N^ −nC(H, guess(N, n))

  • (1 − θ)

∑^ N

n=

N

n

(0.2)n(0.8)N^ −nC(T, guess(N, n))

= θ

∑^ N

n=

N

n

(0.7)n(0.3)N^ −n

1$ if guess(N, n) = H −1$ if guess(N, n) = T

  • (1 − θ)

∑^ N

n=

N

n

(0.2)n(0.8)N^ −n

−10$ if guess(N, n) = H 10$ if guess(N, n) = T

The point is, even though this looks a little ugly, we can in principle do these sums, and decide exactly which guess is optimal, given the data, as a function of θ. For example, if I tell you what my θ is — e.g., I promise to choose the heads coin with probability .95 — then the optimal guess will be heads, unless the data strongly argues against it (e.g., if N is large and n is small). And vice versa. We just have to turn the crank mechanically to come up with the optimal guess. Exercise 42: Compute the optimal decision rule for N = 1, as a function of θ, given this cost function. Exercise 43: Let’s say N = 100 and n = 10. What is the optimal decision as a function of θ? Exercise 44: Let N = 2. Draw the risk function as a function of θ (feel free to use a calculator for help) for the commonsense decision rule: if n/N > .5, choose heads; otherwise choose tails. What can you say about the shape of R(θ) in general (i.e., for any N )?

Now, we just worked through a simple example, in which there were only two “states of nature.” More generally, the states of nature could be con- tinuous, instead. For example, imagine the situation in which I draw N i.i.d. Gaussian r.v.’s Xi from N (θ, 1), and then offer to pay you propor- tionally to the negative of the square distance between your guess — call it ˆθ({X 1 , X 2 , ...XN }) — and the true parameter θ. So in this case the cost function is C(θ, ˆθ) = (θ − θˆ)^2.

And all the theory goes through if we replace the binomial likelihood term above with the corresponding Gaussian likelihood, and the corresponding sums by integrals — we can still compute R(θ) for any choice of θˆ({X 1 , X 2 , ...XN }):

R(θ) =

−∞

−∞

∏^ N

i=

N (θ, 1)(Xi)

θ − ˆθ({X 1 , X 2 , ...XN })

) 2 ∏N

i=

dXi.

Exercise 45: Compute the risk function of the decision rule

θˆ({X 1 , X 2 , ...XN }) ≡ 1 N

∑^ N

i=

Xi,

under this squared-error cost function. Is this decision rule optimal if we know θ = 2? If not, what is the optimal rule? Does this make sense? Prove that the optimal rule is unique in this case. To sum up, this minimum-expected-loss idea gives us a straightforward, principled way to behave optimally under uncertainty, if we have a cost function that corresponds well to reality and we know the true probability of all the events in sight. But there’s still one ingredient we haven’t discussed adequately: doesn’t it seem strange that our optimal strategy depends on the parameter θ — which in most real-world situations is unknown? How do we deal with this?

  • The minimax strategy: choose a strategy T that minimizes the “worst- case” error: max θ

R(θ)

In other words, choose your decision rule T such that

max θ

RT (θ) = min S

max θ

RS (θ),

where the minimization is taken over the class of all possible decision rules and the maximization gives you the worst-case error.

  • The Bayes strategy: choose a strategy T that minimizes the average error according to your prior beliefs about θ:

EθR(θ) =

p(θ)R(θ)dθ.

There has been a lot of discussion about the relative merits of these two approaches, and some interesting connections between the two have been established. But it still comes down to a matter of taste, really. If you have good prior information — that is, a good sense of which θ are more probable than others — then it is a good idea to encapsulate this information in a prior distribution p(θ) and make use of the corresponding Bayes decision rule. If, on the other hand, you have very limited a priori information about θ and you want to play it safe, then minimizing the worst-case risk seems like a good idea. (Of course, then the best case risk might not be very good. We’ll think about this some more in the exercises.) Exercise 46: Neither the Bayes nor the minimax strategies are unique in general. Can you think of any simple conditions on the cost function and parameter space that does make each strategy unique? (Hint: functions which are strictly convex and have convex domains have unique minima, and convexity is preserved by both addition and maximization; that is, the pointwise sum and maximum of any two convex functions is convex.) Exercise 47: Is a Bayes strategy necessarily admissible? What about a minimax strategy? If not, think of a simple condition that ensures that the Bayes (or minimax) strategy will be admissible. Exercise 48: Give a real-world example where the minimax strategy leads to bad results — i.e., playing it too safe (making sure the worst case is not too bad) leads to unhappiness even in the best case.

Bayes estimates under squared-loss: conditional expec-

tation^15

A concrete example might help to understand these somewhat abstract ideas. The following example will also take us directly into the next part of the course, on estimation theory. Let’s consider our Gaussian game again. Recall, I draw N i.i.d. Gaussian r.v.’s Xi from N (θ, 1), and you want to guess θ given the data. The cost function is C(θ, ˆθ) = (θ − θˆ)^2.

The risk R(θ), for any choice of θˆ({X 1 , X 2 , ...XN }), is

R(θ) =

−∞

−∞

∏^ N

i=

N (θ, 1)(Xi)

θ − ˆθ({X 1 , X 2 , ...XN })

) 2 ∏N

i=

dXi.

Now assume further that we have some good prior information about the true θ (for example, you might have played this game with me before, or know something about how I choose θ in the first place). Let’s say your prior density on θ is Gaussian with mean zero and variance one: that is, you believe I’m drawing θ from N (0, 1). (If you don’t like this “game” example, it should be easy enough to think of a problem in your own line of work where these or similar assumptions might be appropriate.) Then what is the optimal estimate given the data? It turns out that in general, no matter what the prior p(θ) or likelihood of the data under θ, pθ(D) = p(D|θ), that under squared error loss the best thing to do is to simply look at the conditional mean. That is, under squared loss, the optimal Bayesian guess is simply

θˆBayes = E(θ|D).

This is incredibly useful: instead of solving the very abstract problem of minimizing some complicated expected risk to solve the Bayesian optimal decision problem, all we have to do is compute a conditional expectation. We won’t prove this now (although it’s not difficult to prove; try it yourself); we’ll prove something very similar in a few lectures called the Rao-Blackwell theorem. (^15) HMC 11.2.