Next: About this document ...
Lecture 24: Bayes Tests
We will present here one way to find a test of hypothesis which has an optimal
property.
Suppose that I take a sample of size 1 from one of two populations, with
density functions f0 and f1 respectively. Let the null hypothesis be
that the sample is from f0, that is
, and the alternative
hypothesis be that the sample is from f1, that is
. We
define a decision function
in the following way. If x is observed
then
, where we interpret
to be the probability
that reject the null hypothesis if x is observed. To implement this, we act
as follows:
- If
we reject H0 whenever x is observed.
- If
we accept H0 whenever x is observed.
- If
toss a coin which comes up heads with probability
once, and if it comes up heads, reject H0 and if it comes up tails
accept H0.
Our problem is to find a suitable
.
First observe that for a given
the probability of Type I error,
, is given by

and the probability of Type II error,
, is

Now suppose that there is a penalty c1> 0 for making a Type I error and a
penalty c2 > 0 for making a Type II error, and no penalty for making the
right decision. Furthermore, suppose that there is a probability
that the null hypothesis is actually correct. Then the average penalty for
using
, call it
, is

The goal is to find
that gives the smallest penalty
. This
penalty is called the Bayes Risk associated with
, and the best
is called the Bayes Test corresponding to (p,c1,c2,f0,f1).
We can actually compute the Bayes Test! By using the definitions of
and
we can write
![\begin{displaymath}
B(\Phi) = \int \Phi(x)[pc_1f_0(x) - (1-p)c_2f_1(x)]\;dx + (1-p)c_2\end{displaymath}](img16.gif)
(See BPT for more details.)
We see we have to minimize
![\begin{displaymath}
A(\Phi) \equiv \int \Phi(x)[pc_1f_0(x) - (1-p)c_2f_1(x)]\;dx\end{displaymath}](img17.gif)
where
.
Let
![\begin{displaymath}
\begin{array}
{rcl}
S_- & = & \{x : [pc_1f_0(x) - (1-p)c_2f_...
... S_0 & = & \{x : [pc_1f_0(x) - (1-p)c_2f_1(x)] = 0\}\end{array}\end{displaymath}](img18.gif)
The way to make
smallest is to have

and it does not matter how we define
for
, so we could take
on S0 too.
One convenient way to give the Bayes Test is in terms of the likelihood
ratio L(x) defined by

Then our test takes the form
- Reject H0 if

- Accept H0 if

- Do whatever you want if

Tests based on comparing L(x) to a constant are called Likelihood Ratio
Tests. One important theorem is that for H0 and H1 of the type above,
given any
there is a Likelyhood Ratio Test
with
.
Next: About this document ...
Eric S Key
1/29/1999