Biostatistics 602 - Statistical Inference April 18th, 2013 - - PowerPoint PPT Presentation

biostatistics 602 statistical inference
SMART_READER_LITE
LIVE PREVIEW

Biostatistics 602 - Statistical Inference April 18th, 2013 - - PowerPoint PPT Presentation

. . . . .. . . .. . .. . . . .. . . .. .. .. . . . . .. Biostatistics 602 - Statistical Inference April 18th, 2013 Biostatistics 602 - Lecture 25 Hyun Min Kang April 18th, 2013 Hyun Min Kang Bayesian Test & Practice


slide-1
SLIDE 1

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

. .

Biostatistics 602 - Statistical Inference Lecture 25 Bayesian Test & Practice Problems

Hyun Min Kang April 18th, 2013

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 1 / 34

slide-2
SLIDE 2

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Last Lecture

  • What is an E-M algorithm?
  • When would the E-M algorithm be useful?
  • Is MLE via E-M algorithm always guaranteed to converge?
  • What are the practical limitations of the E-M algorithm?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 2 / 34

slide-3
SLIDE 3

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Last Lecture

  • What is an E-M algorithm?
  • When would the E-M algorithm be useful?
  • Is MLE via E-M algorithm always guaranteed to converge?
  • What are the practical limitations of the E-M algorithm?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 2 / 34

slide-4
SLIDE 4

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Last Lecture

  • What is an E-M algorithm?
  • When would the E-M algorithm be useful?
  • Is MLE via E-M algorithm always guaranteed to converge?
  • What are the practical limitations of the E-M algorithm?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 2 / 34

slide-5
SLIDE 5

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Last Lecture

  • What is an E-M algorithm?
  • When would the E-M algorithm be useful?
  • Is MLE via E-M algorithm always guaranteed to converge?
  • What are the practical limitations of the E-M algorithm?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 2 / 34

slide-6
SLIDE 6

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Last Lecture

  • What is an E-M algorithm?
  • When would the E-M algorithm be useful?
  • Is MLE via E-M algorithm always guaranteed to converge?
  • What are the practical limitations of the E-M algorithm?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 2 / 34

slide-7
SLIDE 7

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Overview of E-M Algorithm (cont’d)

.

Objective

. .

  • Maximize L(θ|y) or l(θ|y).
  • Let f(y, z|θ) denotes the pdf of complete data. In E-M algorithm,

rather than working with l(θ|y) directly, we work with the surrogate function Q(θ|θ(r)) = E [ log f(y, Z|θ)|y, θ(r)] where θ(r) is the estimation of θ in r-th iteration.

  • Q(θ|θ(r)) is the expected log-likelihood of complete data, conditioning
  • n the observed data and θ(r).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 3 / 34

slide-8
SLIDE 8

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Key Steps of E-M algorithm

.

Expectation Step

. .

  • Compute Q(θ|θ(r)).
  • This typically involves in estimating the conditional distribution Z|Y,

assuming θ = θ(r).

  • After computing Q(θ|θ(r)), move to the M-step

.

Maximization Step

. .

  • Maximize Q(θ|θ(r)) with respect to θ.
  • The arg maxθ Q(θ|θ(r)) will be the (r + 1)-th θ to be fed into the

E-step.

  • Repeat E-step until convergence

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 4 / 34

slide-9
SLIDE 9

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Does E-M iteration converge to MLE?

.

Theorem 7.2.20 - Monotonic EM sequence

. . The sequence {ˆ θ(r)} defined by the E-M procedure satisfies L ( ˆ θ(r+1)|y ) ≥ L ( ˆ θ(r)|y ) with equality holding if and only if successive iterations yield the same value of the maximized expected complete-data log likelihood, that is E [ log L ( ˆ θ(r+1)|y, Z ) |ˆ θ(r), y ] = E [ log L ( ˆ θ(r)|y, Z ) |ˆ θ(r), y ] Theorem 7.5.2 further guarantees that L(ˆ θ(r)|y) converges monotonically to L(ˆ θ|y) for some stationary point ˆ θ.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 5 / 34

slide-10
SLIDE 10

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f x
  • Prior distribution
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-11
SLIDE 11

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f x
  • Prior distribution
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-12
SLIDE 12

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-13
SLIDE 13

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-14
SLIDE 14

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-15
SLIDE 15

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H and H can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-16
SLIDE 16

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H0 and H1 can be calculated
  • Pr

x Pr H is true

  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-17
SLIDE 17

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H0 and H1 can be calculated
  • Pr(θ ∈ Ω0|x) = Pr(H0 is true)
  • Pr

c x

Pr H is true

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-18
SLIDE 18

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H0 and H1 can be calculated
  • Pr(θ ∈ Ω0|x) = Pr(H0 is true)
  • Pr(θ ∈ Ωc

0|x) = Pr(H1 is true)

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-19
SLIDE 19

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian Tests

  • Hypothesis testing problems can be formulated in a Bayesian model
  • Bayesian model includes
  • Sampling distribution f(x|θ)
  • Prior distribution π(θ)
  • Bayesian hypothesis testing is based on the posterior probability
  • In Frequentist’s framework, posterior probability cannot be calculated.
  • In Bayesian framework, the probability of H0 and H1 can be calculated
  • Pr(θ ∈ Ω0|x) = Pr(H0 is true)
  • Pr(θ ∈ Ωc

0|x) = Pr(H1 is true)

  • Rejection region can be determined directly based on the posterior

probability

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 6 / 34

slide-20
SLIDE 20

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian vs Frequentist Framework

.

Frequentist’s Framework

. .

  • θ is considered to be a fixed number
  • Consequently, a hypothesis is either true of false
  • If

, Pr H is true x and Pr H is true x

  • If

c, Pr H is true x

and Pr H is true x

.

Bayesian Framework

. . . . . . . .

  • Pr H is true x and Pr H is true x are function of x, between 0

and 1.

  • These probabilities give useful information about the veracity of H

and H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 7 / 34

slide-21
SLIDE 21

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian vs Frequentist Framework

.

Frequentist’s Framework

. .

  • θ is considered to be a fixed number
  • Consequently, a hypothesis is either true of false
  • If

, Pr H is true x and Pr H is true x

  • If

c, Pr H is true x

and Pr H is true x

.

Bayesian Framework

. . . . . . . .

  • Pr H is true x and Pr H is true x are function of x, between 0

and 1.

  • These probabilities give useful information about the veracity of H

and H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 7 / 34

slide-22
SLIDE 22

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian vs Frequentist Framework

.

Frequentist’s Framework

. .

  • θ is considered to be a fixed number
  • Consequently, a hypothesis is either true of false
  • If θ ∈ Ω0, Pr(H0 is true|x) = 1 and Pr(H1 is true|x) = 0
  • If θ ∈ Ωc

0, Pr(H0 is true|x) = 0 and Pr(H1 is true|x) = 1

.

Bayesian Framework

. .

  • Pr(H0 is true|x) and Pr(H1 is true|x) are function of x, between 0

and 1.

  • These probabilities give useful information about the veracity of H

and H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 7 / 34

slide-23
SLIDE 23

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian vs Frequentist Framework

.

Frequentist’s Framework

. .

  • θ is considered to be a fixed number
  • Consequently, a hypothesis is either true of false
  • If θ ∈ Ω0, Pr(H0 is true|x) = 1 and Pr(H1 is true|x) = 0
  • If θ ∈ Ωc

0, Pr(H0 is true|x) = 0 and Pr(H1 is true|x) = 1

.

Bayesian Framework

. .

  • Pr(H0 is true|x) and Pr(H1 is true|x) are function of x, between 0

and 1.

  • These probabilities give useful information about the veracity of H0

and H1.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 7 / 34

slide-24
SLIDE 24

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Examples of Bayesian hypothesis testing procedure

.

A neutral test between H0 and H1

. .

  • Accept H is Pr

x Pr

c x

  • Reject H is Pr

x Pr

c x

  • In other words, the rejection region is

x Pr

c x

.

A more conservative (smaller size) test in rejecting H

. . . . . . . .

  • Reject H is Pr

c x

  • Accept H is Pr

c x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 8 / 34

slide-25
SLIDE 25

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Examples of Bayesian hypothesis testing procedure

.

A neutral test between H0 and H1

. .

  • Accept H0 is Pr(θ ∈ Ω0|x) ≥ Pr(θ ∈ Ωc

0|x)

  • Reject H0 is Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

  • In other words, the rejection region is

x Pr

c x

.

A more conservative (smaller size) test in rejecting H

. . . . . . . .

  • Reject H is Pr

c x

  • Accept H is Pr

c x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 8 / 34

slide-26
SLIDE 26

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Examples of Bayesian hypothesis testing procedure

.

A neutral test between H0 and H1

. .

  • Accept H0 is Pr(θ ∈ Ω0|x) ≥ Pr(θ ∈ Ωc

0|x)

  • Reject H0 is Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

  • In other words, the rejection region is {x : Pr(θ ∈ Ωc

0|x) > 1 2}

.

A more conservative (smaller size) test in rejecting H

. . . . . . . .

  • Reject H is Pr

c x

  • Accept H is Pr

c x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 8 / 34

slide-27
SLIDE 27

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Examples of Bayesian hypothesis testing procedure

.

A neutral test between H0 and H1

. .

  • Accept H0 is Pr(θ ∈ Ω0|x) ≥ Pr(θ ∈ Ωc

0|x)

  • Reject H0 is Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

  • In other words, the rejection region is {x : Pr(θ ∈ Ωc

0|x) > 1 2}

.

A more conservative (smaller size) test in rejecting H0

. .

  • Reject H0 is Pr(θ ∈ Ωc

0|x) > 0.99

  • Accept H0 is Pr(θ ∈ Ωc

0|x) ≤ 0.99

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 8 / 34

slide-28
SLIDE 28

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Normal Bayesian Test

.

Problem

. . Let X1, · · · , Xn be iid samples N(θ, σ2) and let the prior distribution of θ be N(µ, τ r), where σ2, µ, and τ 2 are known. Construct a Bayesian test rejecting H if and only if Pr x Pr

c x

.

Solution

. . . . . . . . Consider testing H versus H . From previous lectures, the posterior is x n x n n We will reject H if and only if Pr x Pr x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 9 / 34

slide-29
SLIDE 29

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Normal Bayesian Test

.

Problem

. . Let X1, · · · , Xn be iid samples N(θ, σ2) and let the prior distribution of θ be N(µ, τ r), where σ2, µ, and τ 2 are known. Construct a Bayesian test rejecting H0 if and only if Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

.

Solution

. . . . . . . . Consider testing H versus H . From previous lectures, the posterior is x n x n n We will reject H if and only if Pr x Pr x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 9 / 34

slide-30
SLIDE 30

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Normal Bayesian Test

.

Problem

. . Let X1, · · · , Xn be iid samples N(θ, σ2) and let the prior distribution of θ be N(µ, τ r), where σ2, µ, and τ 2 are known. Construct a Bayesian test rejecting H0 if and only if Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

.

Solution

. . Consider testing H0 : θ ≤ θ0 versus H1 : θ > θ0. From previous lectures, the posterior is x n x n n We will reject H if and only if Pr x Pr x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 9 / 34

slide-31
SLIDE 31

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Normal Bayesian Test

.

Problem

. . Let X1, · · · , Xn be iid samples N(θ, σ2) and let the prior distribution of θ be N(µ, τ r), where σ2, µ, and τ 2 are known. Construct a Bayesian test rejecting H0 if and only if Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

.

Solution

. . Consider testing H0 : θ ≤ θ0 versus H1 : θ > θ0. From previous lectures, the posterior is π(θ|x) ∼ N (nτ 2x + σ2µ nτ 2 + σ2 , σ2τ 2 nτ 2 + σ2 ) We will reject H if and only if Pr x Pr x

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 9 / 34

slide-32
SLIDE 32

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Normal Bayesian Test

.

Problem

. . Let X1, · · · , Xn be iid samples N(θ, σ2) and let the prior distribution of θ be N(µ, τ r), where σ2, µ, and τ 2 are known. Construct a Bayesian test rejecting H0 if and only if Pr(θ ∈ Ω0|x) < Pr(θ ∈ Ωc

0|x)

.

Solution

. . Consider testing H0 : θ ≤ θ0 versus H1 : θ > θ0. From previous lectures, the posterior is π(θ|x) ∼ N (nτ 2x + σ2µ nτ 2 + σ2 , σ2τ 2 nτ 2 + σ2 ) We will reject H0 if and only if Pr(θ ∈ Ω0|x) = Pr(θ ≤ θ0|x) < 1 2

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 9 / 34

slide-33
SLIDE 33

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (cont’d)

Because π(θ|x) is symmetric, this is true if and only if the mean for π(θ|x) is less than or equal to θ0. Therefore, H0 will be rejected if n x n x n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 10 / 34

slide-34
SLIDE 34

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (cont’d)

Because π(θ|x) is symmetric, this is true if and only if the mean for π(θ|x) is less than or equal to θ0. Therefore, H0 will be rejected if nτ 2x + σ2µ nτ 2 + σ2 < θ0 x n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 10 / 34

slide-35
SLIDE 35

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (cont’d)

Because π(θ|x) is symmetric, this is true if and only if the mean for π(θ|x) is less than or equal to θ0. Therefore, H0 will be rejected if nτ 2x + σ2µ nτ 2 + σ2 < θ0 x < θ0 + σ2(θ0 − µ) nτ 2

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 10 / 34

slide-36
SLIDE 36

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. . . . . . . .

  • A 95% confidence interval for

is

  • ”The probability that

is in the interval [.262,1.184] is 95%” : Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-37
SLIDE 37

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. . . . . . . .

  • A 95% confidence interval for

is

  • ”The probability that

is in the interval [.262,1.184] is 95%” : Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-38
SLIDE 38

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. . . . . . . .

  • A 95% confidence interval for

is

  • ”The probability that

is in the interval [.262,1.184] is 95%” : Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-39
SLIDE 39

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. . . . . . . .

  • A 95% confidence interval for

is

  • ”The probability that

is in the interval [.262,1.184] is 95%” : Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-40
SLIDE 40

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. .

  • A 95% confidence interval for θ is .262 ≤ θ ≤ 1.184
  • ”The probability that

is in the interval [.262,1.184] is 95%” : Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-41
SLIDE 41

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. .

  • A 95% confidence interval for θ is .262 ≤ θ ≤ 1.184
  • ”The probability that θ is in the interval [.262,1.184] is 95%” :

Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-42
SLIDE 42

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Confidence interval and the parameter

.

Frequentist’s view of intervals

. .

  • We have carefully said that the interval covers the parameter
  • not that the parameter is inside the interval, on purpose.
  • The random quantity is the interval, not the parameter

.

Example

. .

  • A 95% confidence interval for θ is .262 ≤ θ ≤ 1.184
  • ”The probability that θ is in the interval [.262,1.184] is 95%” :

Incorrect, because the parameter is assumed fixed

  • Formally, the interval [.262,1.184] is one of the possible realized

values of the random intervals (depending on the observed data)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 11 / 34

slide-43
SLIDE 43

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian interpretation of intervals

  • Bayesian setup allows us to say that θ is inside [.262, 1.184] with

some probability.

  • Under Bayesian model,

is a random variable with a probability distribution.

  • All Bayesian claims of coverage are made with respect to the

posterior distribution of the parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 12 / 34

slide-44
SLIDE 44

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian interpretation of intervals

  • Bayesian setup allows us to say that θ is inside [.262, 1.184] with

some probability.

  • Under Bayesian model, θ is a random variable with a probability

distribution.

  • All Bayesian claims of coverage are made with respect to the

posterior distribution of the parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 12 / 34

slide-45
SLIDE 45

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Bayesian interpretation of intervals

  • Bayesian setup allows us to say that θ is inside [.262, 1.184] with

some probability.

  • Under Bayesian model, θ is a random variable with a probability

distribution.

  • All Bayesian claims of coverage are made with respect to the

posterior distribution of the parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 12 / 34

slide-46
SLIDE 46

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Credible sets

  • To distinguish Bayesian estimates of coverage, we use credible sets

rather than confidence sets

  • If

x is a posterior distribution, for any set A

  • The credible probability of A is Pr

A x

A

x d

  • and A is a credible set (or creditable interval) for

.

  • Both the interpretation and construction of the Bayes credible set are

more straightforward than those of a classical confidence set, but with additional assumptions (for Bayesian framework).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 13 / 34

slide-47
SLIDE 47

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Credible sets

  • To distinguish Bayesian estimates of coverage, we use credible sets

rather than confidence sets

  • If π(θ|x) is a posterior distribution, for any set A ⊂ Ω
  • The credible probability of A is Pr

A x

A

x d

  • and A is a credible set (or creditable interval) for

.

  • Both the interpretation and construction of the Bayes credible set are

more straightforward than those of a classical confidence set, but with additional assumptions (for Bayesian framework).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 13 / 34

slide-48
SLIDE 48

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Credible sets

  • To distinguish Bayesian estimates of coverage, we use credible sets

rather than confidence sets

  • If π(θ|x) is a posterior distribution, for any set A ⊂ Ω
  • The credible probability of A is Pr(θ ∈ A|x) =

A π(θ|x)dθ

  • and A is a credible set (or creditable interval) for

.

  • Both the interpretation and construction of the Bayes credible set are

more straightforward than those of a classical confidence set, but with additional assumptions (for Bayesian framework).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 13 / 34

slide-49
SLIDE 49

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Credible sets

  • To distinguish Bayesian estimates of coverage, we use credible sets

rather than confidence sets

  • If π(θ|x) is a posterior distribution, for any set A ⊂ Ω
  • The credible probability of A is Pr(θ ∈ A|x) =

A π(θ|x)dθ

  • and A is a credible set (or creditable interval) for θ.
  • Both the interpretation and construction of the Bayes credible set are

more straightforward than those of a classical confidence set, but with additional assumptions (for Bayesian framework).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 13 / 34

slide-50
SLIDE 50

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Credible sets

  • To distinguish Bayesian estimates of coverage, we use credible sets

rather than confidence sets

  • If π(θ|x) is a posterior distribution, for any set A ⊂ Ω
  • The credible probability of A is Pr(θ ∈ A|x) =

A π(θ|x)dθ

  • and A is a credible set (or creditable interval) for θ.
  • Both the interpretation and construction of the Bayes credible set are

more straightforward than those of a classical confidence set, but with additional assumptions (for Bayesian framework).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 13 / 34

slide-51
SLIDE 51

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Possible credible set

.

Problem

. . Let X1, · · · , Xn

i.i.d.

∼ Poisson(λ) and assume that λ ∼ Gamma(a, b). Find

a 90% credible set for λ. .

Solution

. . . . . . . . The posterior pdf of becomes x Gamma a xi n b If we simply split the equally between the upper and lower endpoints, nb b

a xi

if a is an integer Therefore, a confidence interval is b nb

xi a

b nb

xi a

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 14 / 34

slide-52
SLIDE 52

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Possible credible set

.

Problem

. . Let X1, · · · , Xn

i.i.d.

∼ Poisson(λ) and assume that λ ∼ Gamma(a, b). Find

a 90% credible set for λ. .

Solution

. . The posterior pdf of λ becomes π(λ|x) = Gamma ( a + ∑ xi, [n + (1/b)]−1) If we simply split the equally between the upper and lower endpoints, nb b

a xi

if a is an integer Therefore, a confidence interval is b nb

xi a

b nb

xi a

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 14 / 34

slide-53
SLIDE 53

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Possible credible set

.

Problem

. . Let X1, · · · , Xn

i.i.d.

∼ Poisson(λ) and assume that λ ∼ Gamma(a, b). Find

a 90% credible set for λ. .

Solution

. . The posterior pdf of λ becomes π(λ|x) = Gamma ( a + ∑ xi, [n + (1/b)]−1) If we simply split the α equally between the upper and lower endpoints, 2(nb + 1) b λ ∼ χ2

2(a+∑ xi)

(if a is an integer) Therefore, a confidence interval is b nb

xi a

b nb

xi a

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 14 / 34

slide-54
SLIDE 54

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Possible credible set

.

Problem

. . Let X1, · · · , Xn

i.i.d.

∼ Poisson(λ) and assume that λ ∼ Gamma(a, b). Find

a 90% credible set for λ. .

Solution

. . The posterior pdf of λ becomes π(λ|x) = Gamma ( a + ∑ xi, [n + (1/b)]−1) If we simply split the α equally between the upper and lower endpoints, 2(nb + 1) b λ ∼ χ2

2(a+∑ xi)

(if a is an integer) Therefore, a 1 − α confidence interval is { λ : b 2(nb + 1)χ2

2(∑ xi+a),1−α/2 ≤ λ ≤

b 2(nb + 1)χ2

2(∑ xi+a),α/2

}

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 14 / 34

slide-55
SLIDE 55

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Example: Possible credible set

.

Problem

. . Let X1, · · · , Xn

i.i.d.

∼ Poisson(λ) and assume that λ ∼ Gamma(a, b). Find

a 90% credible set for λ. .

Solution

. . The posterior pdf of λ becomes π(λ|x) = Gamma ( a + ∑ xi, [n + (1/b)]−1) If we simply split the α equally between the upper and lower endpoints, 2(nb + 1) b λ ∼ χ2

2(a+∑ xi)

(if a is an integer) Therefore, a 1 − α confidence interval is { λ : b 2(nb + 1)χ2

2(∑ xi+a),1−α/2 ≤ λ ≤

b 2(nb + 1)χ2

2(∑ xi+a),α/2

}

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 14 / 34

slide-56
SLIDE 56

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Remark: Credible probability and coverage probability

  • It is important not to confuse credible probability with coverage

probability

  • Credible probabilities are the Bayes posterior probability, which

reflects the experimenter’s subjective beliefs, as expressed in the prior distribution.

  • A Bayesian assertion of 90% coverage means that the experimenter,

upon combining prior knowledge with data, is % sure of coverage

  • Coverage probability reflects the uncertainty in the sampling

procedure, getting its probability from the objective mechanism of repeated experimental trials.

  • A classical assertion of 90% coverage means that in a long sequence of

identical trials, 90% of the realized confidence sets will cover the true parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 15 / 34

slide-57
SLIDE 57

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Remark: Credible probability and coverage probability

  • It is important not to confuse credible probability with coverage

probability

  • Credible probabilities are the Bayes posterior probability, which

reflects the experimenter’s subjective beliefs, as expressed in the prior distribution.

  • A Bayesian assertion of 90% coverage means that the experimenter,

upon combining prior knowledge with data, is % sure of coverage

  • Coverage probability reflects the uncertainty in the sampling

procedure, getting its probability from the objective mechanism of repeated experimental trials.

  • A classical assertion of 90% coverage means that in a long sequence of

identical trials, 90% of the realized confidence sets will cover the true parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 15 / 34

slide-58
SLIDE 58

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Remark: Credible probability and coverage probability

  • It is important not to confuse credible probability with coverage

probability

  • Credible probabilities are the Bayes posterior probability, which

reflects the experimenter’s subjective beliefs, as expressed in the prior distribution.

  • A Bayesian assertion of 90% coverage means that the experimenter,

upon combining prior knowledge with data, is 90% sure of coverage

  • Coverage probability reflects the uncertainty in the sampling

procedure, getting its probability from the objective mechanism of repeated experimental trials.

  • A classical assertion of 90% coverage means that in a long sequence of

identical trials, 90% of the realized confidence sets will cover the true parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 15 / 34

slide-59
SLIDE 59

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Remark: Credible probability and coverage probability

  • It is important not to confuse credible probability with coverage

probability

  • Credible probabilities are the Bayes posterior probability, which

reflects the experimenter’s subjective beliefs, as expressed in the prior distribution.

  • A Bayesian assertion of 90% coverage means that the experimenter,

upon combining prior knowledge with data, is 90% sure of coverage

  • Coverage probability reflects the uncertainty in the sampling

procedure, getting its probability from the objective mechanism of repeated experimental trials.

  • A classical assertion of 90% coverage means that in a long sequence of

identical trials, 90% of the realized confidence sets will cover the true parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 15 / 34

slide-60
SLIDE 60

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Remark: Credible probability and coverage probability

  • It is important not to confuse credible probability with coverage

probability

  • Credible probabilities are the Bayes posterior probability, which

reflects the experimenter’s subjective beliefs, as expressed in the prior distribution.

  • A Bayesian assertion of 90% coverage means that the experimenter,

upon combining prior knowledge with data, is 90% sure of coverage

  • Coverage probability reflects the uncertainty in the sampling

procedure, getting its probability from the objective mechanism of repeated experimental trials.

  • A classical assertion of 90% coverage means that in a long sequence of

identical trials, 90% of the realized confidence sets will cover the true parameter.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 15 / 34

slide-61
SLIDE 61

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 1 (from last lecture)

.

Problem

. . . . . . . . Suppose X Xn are iid samples from f x exp x . Suppose the prior distribution of is e where are known. (a) Derive the posterior distribution of . (b) If we use the loss function L a a , what is the Bayes rule estimator for ?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 16 / 34

slide-62
SLIDE 62

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 1 (from last lecture)

.

Problem

. . Suppose X1, · · · , Xn are iid samples from f(x|θ) = θ exp(−θx). Suppose the prior distribution of θ is π(θ) = 1 Γ(α)βα θα−1e−θ/β where α, β are known. (a) Derive the posterior distribution of θ. (b) If we use the loss function L a a , what is the Bayes rule estimator for ?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 16 / 34

slide-63
SLIDE 63

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 1 (from last lecture)

.

Problem

. . Suppose X1, · · · , Xn are iid samples from f(x|θ) = θ exp(−θx). Suppose the prior distribution of θ is π(θ) = 1 Γ(α)βα θα−1e−θ/β where α, β are known. (a) Derive the posterior distribution of θ. (b) If we use the loss function L(θ, a) = (a − θ)2, what is the Bayes rule estimator for θ?

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 16 / 34

slide-64
SLIDE 64

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(a) Posterior distribution of θ

f(x, θ) = π(θ)f(x|θ)π(θ) = 1 Γ(α)βα θα−1e−θ/β

n

i=1

[θ exp (−θxi)] e

n exp n i

xi

n

exp

n i

xi Gamma n

n i

xi x Gamma n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 17 / 34

slide-65
SLIDE 65

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(a) Posterior distribution of θ

f(x, θ) = π(θ)f(x|θ)π(θ) = 1 Γ(α)βα θα−1e−θ/β

n

i=1

[θ exp (−θxi)] = 1 Γ(α)βα θα−1e−θ/βθn exp ( −θ

n

i=1

xi )

n

exp

n i

xi Gamma n

n i

xi x Gamma n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 17 / 34

slide-66
SLIDE 66

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(a) Posterior distribution of θ

f(x, θ) = π(θ)f(x|θ)π(θ) = 1 Γ(α)βα θα−1e−θ/β

n

i=1

[θ exp (−θxi)] = 1 Γ(α)βα θα−1e−θ/βθn exp ( −θ

n

i=1

xi ) = 1 Γ(α)βα θα+n−1 exp [ −θ ( 1/β +

n

i=1

xi )] Gamma n

n i

xi x Gamma n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 17 / 34

slide-67
SLIDE 67

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(a) Posterior distribution of θ

f(x, θ) = π(θ)f(x|θ)π(θ) = 1 Γ(α)βα θα−1e−θ/β

n

i=1

[θ exp (−θxi)] = 1 Γ(α)βα θα−1e−θ/βθn exp ( −θ

n

i=1

xi ) = 1 Γ(α)βα θα+n−1 exp [ −θ ( 1/β +

n

i=1

xi )] ∝ Gamma ( α + n − 1, 1 β−1 + ∑n

i=1 xi

) x Gamma n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 17 / 34

slide-68
SLIDE 68

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(a) Posterior distribution of θ

f(x, θ) = π(θ)f(x|θ)π(θ) = 1 Γ(α)βα θα−1e−θ/β

n

i=1

[θ exp (−θxi)] = 1 Γ(α)βα θα−1e−θ/βθn exp ( −θ

n

i=1

xi ) = 1 Γ(α)βα θα+n−1 exp [ −θ ( 1/β +

n

i=1

xi )] ∝ Gamma ( α + n − 1, 1 β−1 + ∑n

i=1 xi

) π(θ|x) = Gamma ( α + n − 1, 1 β−1 + ∑n

i=1 xi

)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 17 / 34

slide-69
SLIDE 69

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(b) Bayes’ rule estimator with squared error loss

Bayes’ rule estimator with squared error loss is posterior mean. Note that the mean of Gamma(α, β) is αβ. x Gamma n

n i

xi E x E x n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 18 / 34

slide-70
SLIDE 70

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(b) Bayes’ rule estimator with squared error loss

Bayes’ rule estimator with squared error loss is posterior mean. Note that the mean of Gamma(α, β) is αβ. π(θ|x) = Gamma ( α + n − 1, 1 β−1 + ∑n

i=1 xi

) E x E x n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 18 / 34

slide-71
SLIDE 71

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

(b) Bayes’ rule estimator with squared error loss

Bayes’ rule estimator with squared error loss is posterior mean. Note that the mean of Gamma(α, β) is αβ. π(θ|x) = Gamma ( α + n − 1, 1 β−1 + ∑n

i=1 xi

) E[θ|x] = E[π(θ|x)] = α + n − 1 β−1 + ∑n

i=1 xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 18 / 34

slide-72
SLIDE 72

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 2

.

Problem

. . Suppose X1, · · · , Xn are iid random samples from Gamma distribution with parameter (3, θ), which has the pdf f(x|θ) = 1 2θ3 x2e−x/θ (x > 0) You may use the result that 2 ∑n

i=1 Xi/θ ∼ χ2 6n.

(a) Derive the asymptotic size LRT for testing H vs. H . (b) Derive the UMP level test for H

  • vs. H

, where . (c) Derive the UMP level test for H

  • vs. H

.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 19 / 34

slide-73
SLIDE 73

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 2

.

Problem

. . Suppose X1, · · · , Xn are iid random samples from Gamma distribution with parameter (3, θ), which has the pdf f(x|θ) = 1 2θ3 x2e−x/θ (x > 0) You may use the result that 2 ∑n

i=1 Xi/θ ∼ χ2 6n.

(a) Derive the asymptotic size α LRT for testing H0 : θ = θ0 vs. H1 : θ ̸= θ0. (b) Derive the UMP level test for H

  • vs. H

, where . (c) Derive the UMP level test for H

  • vs. H

.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 19 / 34

slide-74
SLIDE 74

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 2

.

Problem

. . Suppose X1, · · · , Xn are iid random samples from Gamma distribution with parameter (3, θ), which has the pdf f(x|θ) = 1 2θ3 x2e−x/θ (x > 0) You may use the result that 2 ∑n

i=1 Xi/θ ∼ χ2 6n.

(a) Derive the asymptotic size α LRT for testing H0 : θ = θ0 vs. H1 : θ ̸= θ0. (b) Derive the UMP level α test for H0 : θ = θ0 vs. H1 : θ = θ1, where θ1 > θ0. (c) Derive the UMP level test for H

  • vs. H

.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 19 / 34

slide-75
SLIDE 75

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 2

.

Problem

. . Suppose X1, · · · , Xn are iid random samples from Gamma distribution with parameter (3, θ), which has the pdf f(x|θ) = 1 2θ3 x2e−x/θ (x > 0) You may use the result that 2 ∑n

i=1 Xi/θ ∼ χ2 6n.

(a) Derive the asymptotic size α LRT for testing H0 : θ = θ0 vs. H1 : θ ̸= θ0. (b) Derive the UMP level α test for H0 : θ = θ0 vs. H1 : θ = θ1, where θ1 > θ0. (c) Derive the UMP level α test for H0 : θ ≤ θ0 vs. H1 : θ > θ0.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 19 / 34

slide-76
SLIDE 76

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

L(θ|x) =

n i

xi e

xi

l x

n i

log log log xi xi n log n log

n i

log xi

n i

xi l x n

n i

xi n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 20 / 34

slide-77
SLIDE 77

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

L(θ|x) =

n

i=1

[ 1 2θ3 x2

i e−xi/θ

] l(θ|x) =

n

i=1

[ − log 2 − 3 log θ + 2 log xi − xi θ ] n log n log

n i

log xi

n i

xi l x n

n i

xi n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 20 / 34

slide-78
SLIDE 78

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

L(θ|x) =

n

i=1

[ 1 2θ3 x2

i e−xi/θ

] l(θ|x) =

n

i=1

[ − log 2 − 3 log θ + 2 log xi − xi θ ] = −n log 2 − 3n log θ + 2

n

i=1

log xi − 1 θ

n

i=1

xi l x n

n i

xi n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 20 / 34

slide-79
SLIDE 79

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

L(θ|x) =

n

i=1

[ 1 2θ3 x2

i e−xi/θ

] l(θ|x) =

n

i=1

[ − log 2 − 3 log θ + 2 log xi − xi θ ] = −n log 2 − 3n log θ + 2

n

i=1

log xi − 1 θ

n

i=1

xi l′(θ|x) = −3n θ + 1 θ2

n

i=1

xi = 0 n

n i

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 20 / 34

slide-80
SLIDE 80

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

L(θ|x) =

n

i=1

[ 1 2θ3 x2

i e−xi/θ

] l(θ|x) =

n

i=1

[ − log 2 − 3 log θ + 2 log xi − xi θ ] = −n log 2 − 3n log θ + 2

n

i=1

log xi − 1 θ

n

i=1

xi l′(θ|x) = −3n θ + 1 θ2

n

i=1

xi = 0 ˆ θ = 1 3n

n

i=1

xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 20 / 34

slide-81
SLIDE 81

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

l′′(θ|x)

  • θ=ˆ

θ

= 3n θ2 − 2 θ3

n

i=1

xi

  • θ=ˆ

θ

n n Because L x as approaches zero or infinity,

n n i

xi.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 21 / 34

slide-82
SLIDE 82

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

l′′(θ|x)

  • θ=ˆ

θ

= 3n θ2 − 2 θ3

n

i=1

xi

  • θ=ˆ

θ

= 3n ˆ θ2 − 6n ˆ θ2 < 0 Because L x as approaches zero or infinity,

n n i

xi.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 21 / 34

slide-83
SLIDE 83

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Obtaining MLEs

l′′(θ|x)

  • θ=ˆ

θ

= 3n θ2 − 2 θ3

n

i=1

xi

  • θ=ˆ

θ

= 3n ˆ θ2 − 6n ˆ θ2 < 0 Because L(θ|x) → 0 as θ approaches zero or infinity, ˆ θ =

1 3n

∑n

i=1 xi.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 21 / 34

slide-84
SLIDE 84

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is log x l x l x n log xi n log xi n log xi n log n xi n R x xi n log xi n log n x xi n log xi n log n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-85
SLIDE 85

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is −2 log λ(x) = −2 [ l(θ0|x) − l(ˆ θ|x) ] n log xi n log xi n log xi n log n xi n R x xi n log xi n log n x xi n log xi n log n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-86
SLIDE 86

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is −2 log λ(x) = −2 [ l(θ0|x) − l(ˆ θ|x) ] = 6n log θ0 + 2 θ0 ∑ xi − 6n log ˆ θ − 2 ˆ θ ∑ xi n log xi n log n xi n R x xi n log xi n log n x xi n log xi n log n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-87
SLIDE 87

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is −2 log λ(x) = −2 [ l(θ0|x) − l(ˆ θ|x) ] = 6n log θ0 + 2 θ0 ∑ xi − 6n log ˆ θ − 2 ˆ θ ∑ xi = 6n log θ0 + 2 θ0 ∑ xi − 6n log ( 1 3n ∑ xi ) − 6n > χ2

1,α

R x xi n log xi n log n x xi n log xi n log n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-88
SLIDE 88

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is −2 log λ(x) = −2 [ l(θ0|x) − l(ˆ θ|x) ] = 6n log θ0 + 2 θ0 ∑ xi − 6n log ˆ θ − 2 ˆ θ ∑ xi = 6n log θ0 + 2 θ0 ∑ xi − 6n log ( 1 3n ∑ xi ) − 6n > χ2

1,α

R = { x : 2 θ0 ∑ xi − 6n log ∑ xi > χ2

1,α + 6n[1 − log(3nθ0)]

} x xi n log xi n log n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-89
SLIDE 89

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a) - Constructing asymptotic size α LRT

The rejection region of asymptotic size α LRT is −2 log λ(x) = −2 [ l(θ0|x) − l(ˆ θ|x) ] = 6n log θ0 + 2 θ0 ∑ xi − 6n log ˆ θ − 2 ˆ θ ∑ xi = 6n log θ0 + 2 θ0 ∑ xi − 6n log ( 1 3n ∑ xi ) − 6n > χ2

1,α

R = { x : 2 θ0 ∑ xi − 6n log ∑ xi > χ2

1,α + 6n[1 − log(3nθ0)]

} = { x : ∑ xi − 3nθ0 log ∑ xi > θ0 2 χ2

1,α + 3nθ0[1 − log(3nθ0)]

}

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 22 / 34

slide-90
SLIDE 90

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test for simple hypothesis

For H0 : θ = θ0 vs. H1 : θ = θ1, L x L x

n n exp

xi

xi

n n exp

xi

xi

n

exp xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 23 / 34

slide-91
SLIDE 91

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test for simple hypothesis

For H0 : θ = θ0 vs. H1 : θ = θ1, L(θ1|x) L(θ0|x) =

1 2nθ3n

1 exp

[ −

∑ xi θ1

] ∏ x2

i 1 2nθ3n

0 exp

[ −

∑ xi θ0

] ∏ x2

i n

exp xi

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 23 / 34

slide-92
SLIDE 92

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test for simple hypothesis

For H0 : θ = θ0 vs. H1 : θ = θ1, L(θ1|x) L(θ0|x) =

1 2nθ3n

1 exp

[ −

∑ xi θ1

] ∏ x2

i 1 2nθ3n

0 exp

[ −

∑ xi θ0

] ∏ x2

i

= (θ0 θ1 )3n exp [θ1 − θ0 θ0θ1 ∑ xi ]

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 23 / 34

slide-93
SLIDE 93

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test (cont’d)

Let T = ∑ Xi. Then under H0,

2 θ0 T ∼ χ2 6n.

Pr

n

exp T k Pr T k So, the rejection region is R x T x xi

n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 24 / 34

slide-94
SLIDE 94

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test (cont’d)

Let T = ∑ Xi. Then under H0,

2 θ0 T ∼ χ2 6n.

α = Pr [(θ0 θ1 )3n exp [θ1 − θ0 θ0θ1 T ] > k ] = Pr(T > k∗) So, the rejection region is R x T x xi

n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 24 / 34

slide-95
SLIDE 95

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) - UMP level α test (cont’d)

Let T = ∑ Xi. Then under H0,

2 θ0 T ∼ χ2 6n.

α = Pr [(θ0 θ1 )3n exp [θ1 − θ0 θ0θ1 T ] > k ] = Pr(T > k∗) So, the rejection region is R = { x : T(x) = ∑ xi > θ0 2 χ2

6n,α

}

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 24 / 34

slide-96
SLIDE 96

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - UMP level α test for composite hypothesis

We need to check whether T has MLR. Because Y = 2T/θ ∼ χ2

6n.

fY y

n

n y n e

y

fT t

n

n t

n

e

t

n t

n

e

t

For arbitrary , fT t fT t

n t n

e

t n t n

e

t n

exp t is an increasing function of t. This T has MLR property.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 25 / 34

slide-97
SLIDE 97

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - UMP level α test for composite hypothesis

We need to check whether T has MLR. Because Y = 2T/θ ∼ χ2

6n.

fY(y|θ) = 1 23nΓ(3n)y3n−1e−y/2 fT(t|θ) = 1 23n−1Γ(3n)θ (2t θ )3n−1 e−t/θ = 1 Γ(3n)θ ( t θ )3n−1 e−t/θ For arbitrary , fT t fT t

n t n

e

t n t n

e

t n

exp t is an increasing function of t. This T has MLR property.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 25 / 34

slide-98
SLIDE 98

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - UMP level α test for composite hypothesis

We need to check whether T has MLR. Because Y = 2T/θ ∼ χ2

6n.

fY(y|θ) = 1 23nΓ(3n)y3n−1e−y/2 fT(t|θ) = 1 23n−1Γ(3n)θ (2t θ )3n−1 e−t/θ = 1 Γ(3n)θ ( t θ )3n−1 e−t/θ For arbitrary θ1 < θ2, fT(t|θ2) fT(t|θ1) =

1 Γ(3n)θ2

(

t θ2

)3n−1 e−t/θ2

1 Γ(3n)θ1

(

t θ1

)3n−1 e−t/θ1 = (θ1 θ2 )3n exp [θ2 − θ1 θ1θ2 t ] is an increasing function of t. This T has MLR property.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 25 / 34

slide-99
SLIDE 99

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - UMP level α test for composite hypothesis

We need to check whether T has MLR. Because Y = 2T/θ ∼ χ2

6n.

fY(y|θ) = 1 23nΓ(3n)y3n−1e−y/2 fT(t|θ) = 1 23n−1Γ(3n)θ (2t θ )3n−1 e−t/θ = 1 Γ(3n)θ ( t θ )3n−1 e−t/θ For arbitrary θ1 < θ2, fT(t|θ2) fT(t|θ1) =

1 Γ(3n)θ2

(

t θ2

)3n−1 e−t/θ2

1 Γ(3n)θ1

(

t θ1

)3n−1 e−t/θ1 = (θ1 θ2 )3n exp [θ2 − θ1 θ1θ2 t ] is an increasing function of t. This T has MLR property.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 25 / 34

slide-100
SLIDE 100

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - Constructing UMP level α test

Because T has MLR property, UMP level α test for H0 : θ ≤ θ0 vs. H1 : θ > θ0 has a rejection region T > k, and Pr(T > k) = α. Therefore, the UMP level test is identical to the answer of part (b), whose rejection is R x T x xi

n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 26 / 34

slide-101
SLIDE 101

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - Constructing UMP level α test

Because T has MLR property, UMP level α test for H0 : θ ≤ θ0 vs. H1 : θ > θ0 has a rejection region T > k, and Pr(T > k) = α. Therefore, the UMP level α test is identical to the answer of part (b), whose rejection is R x T x xi

n

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 26 / 34

slide-102
SLIDE 102

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (c) - Constructing UMP level α test

Because T has MLR property, UMP level α test for H0 : θ ≤ θ0 vs. H1 : θ > θ0 has a rejection region T > k, and Pr(T > k) = α. Therefore, the UMP level α test is identical to the answer of part (b), whose rejection is R = { x : T(x) = ∑ xi > θ0 2 χ2

6n,α

}

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 26 / 34

slide-103
SLIDE 103

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 3

.

Problem

. . Let (X1, Y1), · · · , (Xn, Yn) be a random samples from a bivariate normal ( Xi Yi ) ∼ N ([ µX µY ] , [ σ2

X

ρσXσY ρσXσY σ2

Y

]) We are interested in testing H0 : µX = µY vs. H1 : µX ̸= µY. (a) Show that the random variables Wi Xi Yi are iid

W W .

(b) Show that the above hypothesis can be tested with the statistic TW W SW n where W

n n i

Wi and SW

n n i

Wi W . Furthermore, show that, under H , TW follows the Student’s t distribution with n degrees of freedom.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 27 / 34

slide-104
SLIDE 104

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 3

.

Problem

. . Let (X1, Y1), · · · , (Xn, Yn) be a random samples from a bivariate normal ( Xi Yi ) ∼ N ([ µX µY ] , [ σ2

X

ρσXσY ρσXσY σ2

Y

]) We are interested in testing H0 : µX = µY vs. H1 : µX ̸= µY. (a) Show that the random variables Wi = Xi − Yi are iid N(µW, σ2

W).

(b) Show that the above hypothesis can be tested with the statistic TW W SW n where W

n n i

Wi and SW

n n i

Wi W . Furthermore, show that, under H , TW follows the Student’s t distribution with n degrees of freedom.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 27 / 34

slide-105
SLIDE 105

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 3

.

Problem

. . Let (X1, Y1), · · · , (Xn, Yn) be a random samples from a bivariate normal ( Xi Yi ) ∼ N ([ µX µY ] , [ σ2

X

ρσXσY ρσXσY σ2

Y

]) We are interested in testing H0 : µX = µY vs. H1 : µX ̸= µY. (a) Show that the random variables Wi = Xi − Yi are iid N(µW, σ2

W).

(b) Show that the above hypothesis can be tested with the statistic TW W SW n where W

n n i

Wi and SW

n n i

Wi W . Furthermore, show that, under H , TW follows the Student’s t distribution with n degrees of freedom.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 27 / 34

slide-106
SLIDE 106

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 3

.

Problem

. . Let (X1, Y1), · · · , (Xn, Yn) be a random samples from a bivariate normal ( Xi Yi ) ∼ N ([ µX µY ] , [ σ2

X

ρσXσY ρσXσY σ2

Y

]) We are interested in testing H0 : µX = µY vs. H1 : µX ̸= µY. (a) Show that the random variables Wi = Xi − Yi are iid N(µW, σ2

W).

(b) Show that the above hypothesis can be tested with the statistic TW = W √ S2

W/n

where W

n n i

Wi and SW

n n i

Wi W . Furthermore, show that, under H , TW follows the Student’s t distribution with n degrees of freedom.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 27 / 34

slide-107
SLIDE 107

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 3

.

Problem

. . Let (X1, Y1), · · · , (Xn, Yn) be a random samples from a bivariate normal ( Xi Yi ) ∼ N ([ µX µY ] , [ σ2

X

ρσXσY ρσXσY σ2

Y

]) We are interested in testing H0 : µX = µY vs. H1 : µX ̸= µY. (a) Show that the random variables Wi = Xi − Yi are iid N(µW, σ2

W).

(b) Show that the above hypothesis can be tested with the statistic TW = W √ S2

W/n

where W = 1

n

∑n

i=1 Wi and S2 W = 1 n−1

∑n

i=1(Wi − W)2. Furthermore,

show that, under H0, TW follows the Student’s t distribution with n − 1 degrees of freedom.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 27 / 34

slide-108
SLIDE 108

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z Xi Yi T, m

X Y T, and A

. Then AZ Xi Yi Wi Am A AT

X Y X X Y Y W W

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-109
SLIDE 109

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z = [Xi Yi]T, m = [µX µY]T, and A = [1 − 1]. Then AZ Xi Yi Wi Am A AT

X Y X X Y Y W W

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-110
SLIDE 110

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z = [Xi Yi]T, m = [µX µY]T, and A = [1 − 1]. Then AZ = Xi − Yi = Wi Am A AT

X Y X X Y Y W W

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-111
SLIDE 111

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z = [Xi Yi]T, m = [µX µY]T, and A = [1 − 1]. Then AZ = Xi − Yi = Wi ∼ N(Am, AΣAT)

X Y X X Y Y W W

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-112
SLIDE 112

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z = [Xi Yi]T, m = [µX µY]T, and A = [1 − 1]. Then AZ = Xi − Yi = Wi ∼ N(Am, AΣAT) = N(µX − µY, σ2

X − 2ρσXσY + σ2 Y) W W

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-113
SLIDE 113

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (a)

To solve Problem (a), we first need to know that, if Z ∼ N(m, Σ), then AZ ∼ N(Am, AΣAT) Let Z = [Xi Yi]T, m = [µX µY]T, and A = [1 − 1]. Then AZ = Xi − Yi = Wi ∼ N(Am, AΣAT) = N(µX − µY, σ2

X − 2ρσXσY + σ2 Y)

= N(µW, σ2

W)

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 28 / 34

slide-114
SLIDE 114

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b)

Because µW = µX − µY, testing H0 : µX = µY vs. H1 : µX ̸= µY is equivalent to testing H0 : µW = 0 vs. H1 : µW ̸= 0 When Ui and both mean and variance are unknown, we know that LRT testing H

  • vs. H

follows that TU U SU n and TU follows Tn under H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 29 / 34

slide-115
SLIDE 115

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b)

Because µW = µX − µY, testing H0 : µX = µY vs. H1 : µX ̸= µY is equivalent to testing H0 : µW = 0 vs. H1 : µW ̸= 0 When Ui ∼ N(µ, σ2) and both mean and variance are unknown, we know that LRT testing H0 : µ = µ0 vs. H0 : µ ̸= µ0 follows that TU U SU n and TU follows Tn under H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 29 / 34

slide-116
SLIDE 116

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b)

Because µW = µX − µY, testing H0 : µX = µY vs. H1 : µX ̸= µY is equivalent to testing H0 : µW = 0 vs. H1 : µW ̸= 0 When Ui ∼ N(µ, σ2) and both mean and variance are unknown, we know that LRT testing H0 : µ = µ0 vs. H0 : µ ̸= µ0 follows that TU = U − µ0 √ S2

U/n

and TU follows Tn−1 under H0.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 29 / 34

slide-117
SLIDE 117

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution (b) (cont’d)

Therefore, the LRT test for the original test, H0 : µW = 0 vs. H1 : µW ̸= 0 is TW = W √ S2

W/n

and TW follows Tn−1 under H0.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 30 / 34

slide-118
SLIDE 118

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 4

.

Problem

. . Let f(x|θ) be the logistic location pdf f(x|θ) = e(x−θ) (1 + e(x−θ))2 − ∞ < x < ∞, −∞ < θ < ∞ (a) Show that this family has an MLR (b) Based on one observation X, find the most powerful size test of H versus H . (c) Show that the test in part (b) is UMP size for testing H vs. H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 31 / 34

slide-119
SLIDE 119

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 4

.

Problem

. . Let f(x|θ) be the logistic location pdf f(x|θ) = e(x−θ) (1 + e(x−θ))2 − ∞ < x < ∞, −∞ < θ < ∞ (a) Show that this family has an MLR (b) Based on one observation X, find the most powerful size test of H versus H . (c) Show that the test in part (b) is UMP size for testing H vs. H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 31 / 34

slide-120
SLIDE 120

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 4

.

Problem

. . Let f(x|θ) be the logistic location pdf f(x|θ) = e(x−θ) (1 + e(x−θ))2 − ∞ < x < ∞, −∞ < θ < ∞ (a) Show that this family has an MLR (b) Based on one observation X, find the most powerful size α test of H0 : θ = 0 versus H1 : θ = 1. (c) Show that the test in part (b) is UMP size for testing H vs. H .

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 31 / 34

slide-121
SLIDE 121

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Practice Problem 4

.

Problem

. . Let f(x|θ) be the logistic location pdf f(x|θ) = e(x−θ) (1 + e(x−θ))2 − ∞ < x < ∞, −∞ < θ < ∞ (a) Show that this family has an MLR (b) Based on one observation X, find the most powerful size α test of H0 : θ = 0 versus H1 : θ = 1. (c) Show that the test in part (b) is UMP size α for testing H0 : θ ≤ 0 vs. H1 : θ > 0.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 31 / 34

slide-122
SLIDE 122

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

e e x e x Let r x ex ex r x e x e x e x e x e x e x e x e x x x Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-123
SLIDE 123

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

= e(θ1−θ2) ( 1 + e(x−θ1) 1 + e(x−θ2) )2 Let r x ex ex r x e x e x e x e x e x e x e x e x x x Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-124
SLIDE 124

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

= e(θ1−θ2) ( 1 + e(x−θ1) 1 + e(x−θ2) )2 Let r(x) = (1 + ex−θ1)/(1 + ex−θ2) r x e x e x e x e x e x e x e x e x x x Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-125
SLIDE 125

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

= e(θ1−θ2) ( 1 + e(x−θ1) 1 + e(x−θ2) )2 Let r(x) = (1 + ex−θ1)/(1 + ex−θ2) r′(x) = e(x−θ1)(1 + e(x−θ2)) − (1 + e(x−θ1))e(x−θ2) (1 + e(x−θ2))2 e x e x e x x x Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-126
SLIDE 126

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

= e(θ1−θ2) ( 1 + e(x−θ1) 1 + e(x−θ2) )2 Let r(x) = (1 + ex−θ1)/(1 + ex−θ2) r′(x) = e(x−θ1)(1 + e(x−θ2)) − (1 + e(x−θ1))e(x−θ2) (1 + e(x−θ2))2 = e(x−θ1) − e(x−θ2) (1 + e(x−θ2))2 > 0 (∵ x − θ1 > x − θ2) Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-127
SLIDE 127

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (a)

For θ1 < θ2, f(x|θ2) f(x|θ1) =

e(x−θ2) (1+e(x−θ2))2 e(x−θ1) (1+e(x−θ1))2

= e(θ1−θ2) ( 1 + e(x−θ1) 1 + e(x−θ2) )2 Let r(x) = (1 + ex−θ1)/(1 + ex−θ2) r′(x) = e(x−θ1)(1 + e(x−θ2)) − (1 + e(x−θ1))e(x−θ2) (1 + e(x−θ2))2 = e(x−θ1) − e(x−θ2) (1 + e(x−θ2))2 > 0 (∵ x − θ1 > x − θ2) Therefore, the family of X has an MLR.

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 32 / 34

slide-128
SLIDE 128

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (b)

The UMP test rejects H0 if and only if f(x|1) f(x|0) = e ( 1 + ex 1 + e(x−1) )2 > k ex e x k ex e ex k X x Because under H , F x

ex ex , the rejection region of UMP level

test satisfies F x ex x log

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 33 / 34

slide-129
SLIDE 129

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (b)

The UMP test rejects H0 if and only if f(x|1) f(x|0) = e ( 1 + ex 1 + e(x−1) )2 > k 1 + ex 1 + e(x−1) > k∗ ex e ex k X x Because under H , F x

ex ex , the rejection region of UMP level

test satisfies F x ex x log

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 33 / 34

slide-130
SLIDE 130

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (b)

The UMP test rejects H0 if and only if f(x|1) f(x|0) = e ( 1 + ex 1 + e(x−1) )2 > k 1 + ex 1 + e(x−1) > k∗ 1 + ex e + ex > k∗ X x Because under H , F x

ex ex , the rejection region of UMP level

test satisfies F x ex x log

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 33 / 34

slide-131
SLIDE 131

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (b)

The UMP test rejects H0 if and only if f(x|1) f(x|0) = e ( 1 + ex 1 + e(x−1) )2 > k 1 + ex 1 + e(x−1) > k∗ 1 + ex e + ex > k∗ X > x0 Because under H , F x

ex ex , the rejection region of UMP level

test satisfies F x ex x log

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 33 / 34

slide-132
SLIDE 132

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (b)

The UMP test rejects H0 if and only if f(x|1) f(x|0) = e ( 1 + ex 1 + e(x−1) )2 > k 1 + ex 1 + e(x−1) > k∗ 1 + ex e + ex > k∗ X > x0 Because under H0, F(x|θ = 0) =

ex 1+ex , the rejection region of UMP level α

test satisfies 1 − F(x|θ = 0) = 1 1 + ex0 = α x0 = log (1 − α α )

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 33 / 34

slide-133
SLIDE 133

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (c)

Because the family of X has an MLR, UMP size α for testing H0 : θ ≤ 0

  • vs. H1 : θ > 0 should be a form of

X > x0 Pr(X > x0|θ = 0) = α Therefore, x log , which is identical to the test defined in (b).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 34 / 34

slide-134
SLIDE 134

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

. . . . Recap . . . . . Bayesian Tests . . . . . Bayesian Intervals . . . P1 . . . . . . . . P2 . . . . P3 . . . . P4

Solution for (c)

Because the family of X has an MLR, UMP size α for testing H0 : θ ≤ 0

  • vs. H1 : θ > 0 should be a form of

X > x0 Pr(X > x0|θ = 0) = α Therefore, x0 = log ( 1−α

α

) , which is identical to the test defined in (b).

Hyun Min Kang Biostatistics 602 - Lecture 25 April 18th, 2013 34 / 34