Lecture 23 April 11th, 2013 Biostatistics 602 - Lecture 23 Hyun - - PowerPoint PPT Presentation

lecture 23
SMART_READER_LITE
LIVE PREVIEW

Lecture 23 April 11th, 2013 Biostatistics 602 - Lecture 23 Hyun - - PowerPoint PPT Presentation

. . . . .. . . .. . . .. . . .. . . .. . . Lecture 23 April 11th, 2013 Biostatistics 602 - Lecture 23 Hyun Min Kang April 11th, 2013 Hyun Min Kang Interval Estimation Biostatistics 602 - Statistical Inference .. . . .


slide-1
SLIDE 1

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

. .

Biostatistics 602 - Statistical Inference Lecture 23 Interval Estimation

Hyun Min Kang April 11th, 2013

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 1 / 1

slide-2
SLIDE 2

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size ?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-3
SLIDE 3

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size ?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-4
SLIDE 4

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size α?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-5
SLIDE 5

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size α?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-6
SLIDE 6

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size α?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-7
SLIDE 7

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

Last Lecture

  • What is p-value?
  • What is the advantage of p-value compared to hypothesis testing

procedure with size α?

  • How can one construct a valid p-value?
  • What is Fisher’s exact p-value?
  • Is Fisher’s exact p-value uniformly distributed under null hypothesis?

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 1

slide-8
SLIDE 8

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

p-Values

.

Conclusions from Hypothesis Testing

. .

  • Reject H0 or accept H0.
  • If size of the test is ( ) small, the decision to reject H is convincing.
  • If

is large, the decision may not be very convincing. .

Definition: p-Value

. . . . . . . . A p-value p X is a test statistic satisfying p x for every sample point x. Small values of p X given evidence that H is true. A p-value is valid if, for every and every , Pr p X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 1

slide-9
SLIDE 9

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

p-Values

.

Conclusions from Hypothesis Testing

. .

  • Reject H0 or accept H0.
  • If size of the test is (α) small, the decision to reject H0 is convincing.
  • If

is large, the decision may not be very convincing. .

Definition: p-Value

. . . . . . . . A p-value p X is a test statistic satisfying p x for every sample point x. Small values of p X given evidence that H is true. A p-value is valid if, for every and every , Pr p X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 1

slide-10
SLIDE 10

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

p-Values

.

Conclusions from Hypothesis Testing

. .

  • Reject H0 or accept H0.
  • If size of the test is (α) small, the decision to reject H0 is convincing.
  • If α is large, the decision may not be very convincing.

.

Definition: p-Value

. . . . . . . . A p-value p X is a test statistic satisfying p x for every sample point x. Small values of p X given evidence that H is true. A p-value is valid if, for every and every , Pr p X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 1

slide-11
SLIDE 11

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

p-Values

.

Conclusions from Hypothesis Testing

. .

  • Reject H0 or accept H0.
  • If size of the test is (α) small, the decision to reject H0 is convincing.
  • If α is large, the decision may not be very convincing.

.

Definition: p-Value

. . A p-value p(X) is a test statistic satisfying 0 ≤ p(x) ≤ 1 for every sample point x. Small values of p(X) given evidence that H1 is true. A p-value is valid if, for every θ ∈ Ω0 and every 0 ≤ α ≤ 1, Pr p X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 1

slide-12
SLIDE 12

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

p-Values

.

Conclusions from Hypothesis Testing

. .

  • Reject H0 or accept H0.
  • If size of the test is (α) small, the decision to reject H0 is convincing.
  • If α is large, the decision may not be very convincing.

.

Definition: p-Value

. . A p-value p(X) is a test statistic satisfying 0 ≤ p(x) ≤ 1 for every sample point x. Small values of p(X) given evidence that H1 is true. A p-value is valid if, for every θ ∈ Ω0 and every 0 ≤ α ≤ 1, Pr(p(X) ≤ α|θ) ≤ α

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 1

slide-13
SLIDE 13

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

Constructing a valid p-value

.

Theorem 8.3.27.

. . Let W(X) be a test statistic such that large values of W give evidence that H1 is true. For each sample point x, define p x sup Pr W X W x Then p X is a valid p-value.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 4 / 1

slide-14
SLIDE 14

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

Constructing a valid p-value

.

Theorem 8.3.27.

. . Let W(X) be a test statistic such that large values of W give evidence that H1 is true. For each sample point x, define p(x) = sup

θ∈Ω0

Pr(W(X) ≥ W(x)|θ) Then p X is a valid p-value.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 4 / 1

slide-15
SLIDE 15

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

Constructing a valid p-value

.

Theorem 8.3.27.

. . Let W(X) be a test statistic such that large values of W give evidence that H1 is true. For each sample point x, define p(x) = sup

θ∈Ω0

Pr(W(X) ≥ W(x)|θ) Then p(X) is a valid p-value.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 4 / 1

slide-16
SLIDE 16

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

p-Values by conditioning on on sufficient statistic

Suppose S(X) is a sufficient statistic for the model {f(x|θ) : θ ∈ Ω0}. (not necessarily including alternative hypothesis). If the null hypothesis is true, the conditional distribution of X given S s does not depend on . Again, let W X denote a test statistic where large value give evidence that H is true. Define p x Pr W X W x S S x If we consider only the conditional distribution, by Theorem 8.3.27, this is a valid p-value, meaning that Pr p X S s

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 5 / 1

slide-17
SLIDE 17

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

p-Values by conditioning on on sufficient statistic

Suppose S(X) is a sufficient statistic for the model {f(x|θ) : θ ∈ Ω0}. (not necessarily including alternative hypothesis). If the null hypothesis is true, the conditional distribution of X given S = s does not depend on θ. Again, let W X denote a test statistic where large value give evidence that H is true. Define p x Pr W X W x S S x If we consider only the conditional distribution, by Theorem 8.3.27, this is a valid p-value, meaning that Pr p X S s

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 5 / 1

slide-18
SLIDE 18

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

p-Values by conditioning on on sufficient statistic

Suppose S(X) is a sufficient statistic for the model {f(x|θ) : θ ∈ Ω0}. (not necessarily including alternative hypothesis). If the null hypothesis is true, the conditional distribution of X given S = s does not depend on θ. Again, let W(X) denote a test statistic where large value give evidence that H1 is true. Define p(x) = Pr(W(X) ≥ W(x)|S = S(x)) If we consider only the conditional distribution, by Theorem 8.3.27, this is a valid p-value, meaning that Pr p X S s

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 5 / 1

slide-19
SLIDE 19

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

p-Values by conditioning on on sufficient statistic

Suppose S(X) is a sufficient statistic for the model {f(x|θ) : θ ∈ Ω0}. (not necessarily including alternative hypothesis). If the null hypothesis is true, the conditional distribution of X given S = s does not depend on θ. Again, let W(X) denote a test statistic where large value give evidence that H1 is true. Define p(x) = Pr(W(X) ≥ W(x)|S = S(x)) If we consider only the conditional distribution, by Theorem 8.3.27, this is a valid p-value, meaning that Pr(p(X) ≤ α|S = s) ≤ α

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 5 / 1

slide-20
SLIDE 20

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

Example - Fisher’s Exact Test

.

Problem

. . Let X1 and X2 be independent observations with X1 ∼ Binomial(n1, p1), and X2 ∼ Binomial(n2, p2). Consider testing H0 : p1 = p2 versus H1 : p1 > p2. Find a valid p-value function. .

Solution

. . . . . . . . Under H , if we let p denote the common value of p p . Then the join pmf of X X is f x x p n x px p n

x

n x px p n

x

n x n x px

x

p n

n x x

Therefore S X X is a sufficient statistic under H .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 1

slide-21
SLIDE 21

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

Example - Fisher’s Exact Test

.

Problem

. . Let X1 and X2 be independent observations with X1 ∼ Binomial(n1, p1), and X2 ∼ Binomial(n2, p2). Consider testing H0 : p1 = p2 versus H1 : p1 > p2. Find a valid p-value function. .

Solution

. . Under H0, if we let p denote the common value of p1 = p2. Then the join pmf of (X1, X2) is f x x p n x px p n

x

n x px p n

x

n x n x px

x

p n

n x x

Therefore S X X is a sufficient statistic under H .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 1

slide-22
SLIDE 22

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

Example - Fisher’s Exact Test

.

Problem

. . Let X1 and X2 be independent observations with X1 ∼ Binomial(n1, p1), and X2 ∼ Binomial(n2, p2). Consider testing H0 : p1 = p2 versus H1 : p1 > p2. Find a valid p-value function. .

Solution

. . Under H0, if we let p denote the common value of p1 = p2. Then the join pmf of (X1, X2) is f(x1, x2|p) = (n1 x1 ) px1(1 − p)n1−x1 (n2 x2 ) px2(1 − p)n2−x2 n x n x px

x

p n

n x x

Therefore S X X is a sufficient statistic under H .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 1

slide-23
SLIDE 23

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

Example - Fisher’s Exact Test

.

Problem

. . Let X1 and X2 be independent observations with X1 ∼ Binomial(n1, p1), and X2 ∼ Binomial(n2, p2). Consider testing H0 : p1 = p2 versus H1 : p1 > p2. Find a valid p-value function. .

Solution

. . Under H0, if we let p denote the common value of p1 = p2. Then the join pmf of (X1, X2) is f(x1, x2|p) = (n1 x1 ) px1(1 − p)n1−x1 (n2 x2 ) px2(1 − p)n2−x2 = (n1 x1 )(n2 x2 ) px1+x2(1 − p)n1+n2−x1−x2 Therefore S X X is a sufficient statistic under H .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 1

slide-24
SLIDE 24

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

Example - Fisher’s Exact Test

.

Problem

. . Let X1 and X2 be independent observations with X1 ∼ Binomial(n1, p1), and X2 ∼ Binomial(n2, p2). Consider testing H0 : p1 = p2 versus H1 : p1 > p2. Find a valid p-value function. .

Solution

. . Under H0, if we let p denote the common value of p1 = p2. Then the join pmf of (X1, X2) is f(x1, x2|p) = (n1 x1 ) px1(1 − p)n1−x1 (n2 x2 ) px2(1 − p)n2−x2 = (n1 x1 )(n2 x2 ) px1+x2(1 − p)n1+n2−x1−x2 Therefore S = X1 + X2 is a sufficient statistic under H0.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 1

slide-25
SLIDE 25

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

Solution - Fisher’s Exact Test (cont’d)

Given the value of S = s, it is reasonable to use X1 as a test statistic and reject H0 in favor of H1 for large values of X1,because large values of X1 correspond to small values of X2 = s − X1. The conditional distribution of X given S s is a hypergeometric distribution. f X x s

n x n s x n n s

Thus, the p-value conditional on the sufficient statistic s x x is p x x

min n s j x

f j s

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 7 / 1

slide-26
SLIDE 26

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

Solution - Fisher’s Exact Test (cont’d)

Given the value of S = s, it is reasonable to use X1 as a test statistic and reject H0 in favor of H1 for large values of X1,because large values of X1 correspond to small values of X2 = s − X1. The conditional distribution of X1 given S = s is a hypergeometric distribution. f(X1 = x1|s) = (n1

x1

)( n2

s−x1

) (n1+n2

s

) Thus, the p-value conditional on the sufficient statistic s x x is p x x

min n s j x

f j s

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 7 / 1

slide-27
SLIDE 27

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

Solution - Fisher’s Exact Test (cont’d)

Given the value of S = s, it is reasonable to use X1 as a test statistic and reject H0 in favor of H1 for large values of X1,because large values of X1 correspond to small values of X2 = s − X1. The conditional distribution of X1 given S = s is a hypergeometric distribution. f(X1 = x1|s) = (n1

x1

)( n2

s−x1

) (n1+n2

s

) Thus, the p-value conditional on the sufficient statistic s = x1 + x2 is p(x1, x2) =

min(n1,s)

j=x1

f(j|s)

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 7 / 1

slide-28
SLIDE 28

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . . . . . . . Let L X U X , where L X and U X are functions of sample X and L X U X . Based on the observed sample x, we can make an inference that L X U X Then we call L X U X an interval estimator of . Three types of intervals

  • Two-sided interval L X

U X

  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-29
SLIDE 29

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that L X U X Then we call L X U X an interval estimator of . Three types of intervals

  • Two-sided interval L X

U X

  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-30
SLIDE 30

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call L X U X an interval estimator of . Three types of intervals

  • Two-sided interval L X

U X

  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-31
SLIDE 31

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call [L(X), U(X)] an interval estimator of θ. Three types of intervals

  • Two-sided interval L X

U X

  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-32
SLIDE 32

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call [L(X), U(X)] an interval estimator of θ. Three types of intervals

  • Two-sided interval L X

U X

  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-33
SLIDE 33

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call [L(X), U(X)] an interval estimator of θ. Three types of intervals

  • Two-sided interval [L(X), U(X)]
  • One-sided (with lower-bound) interval L X
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-34
SLIDE 34

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call [L(X), U(X)] an interval estimator of θ. Three types of intervals

  • Two-sided interval [L(X), U(X)]
  • One-sided (with lower-bound) interval [L(X), ∞)
  • One-sided (with upper-bound) interval

U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-35
SLIDE 35

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

Interval Estimation

ˆ θ(X) is usually represented as a point estimator .

Interval Estimator

. . Let [L(X), U(X)], where L(X) and U(X) are functions of sample X and L(X) ≤ U(X). Based on the observed sample x, we can make an inference that θ ∈ [L(X), U(X)] Then we call [L(X), U(X)] an interval estimator of θ. Three types of intervals

  • Two-sided interval [L(X), U(X)]
  • One-sided (with lower-bound) interval [L(X), ∞)
  • One-sided (with upper-bound) interval (−∞, U(X)]

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 1

slide-36
SLIDE 36

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of

: X Pr X

  • 2. An interval estimator of

: X X Pr X X Pr X X Pr X Pr n n X n Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-37
SLIDE 37

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of

: X X Pr X X Pr X X Pr X Pr n n X n Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-38
SLIDE 38

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of µ : [X − 1, X + 1]

Pr X X Pr X X Pr X Pr n n X n Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-39
SLIDE 39

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of µ : [X − 1, X + 1]

Pr(µ ∈ [X − 1, X + 1]) = Pr(X − 1 ≤ µ ≤ X + 1) Pr X Pr n n X n Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-40
SLIDE 40

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of µ : [X − 1, X + 1]

Pr(µ ∈ [X − 1, X + 1]) = Pr(X − 1 ≤ µ ≤ X + 1) = Pr(µ − 1 ≤ X ≤ µ + 1) Pr n n X n Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-41
SLIDE 41

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of µ : [X − 1, X + 1]

Pr(µ ∈ [X − 1, X + 1]) = Pr(X − 1 ≤ µ ≤ X + 1) = Pr(µ − 1 ≤ X ≤ µ + 1) = Pr(−√n ≤ √n(X − µ) ≤ √n) Pr n Z n

P

as n , where Z .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-42
SLIDE 42

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

Example

Let Xi

i.i.d.

∼ N(µ, 1). Define

  • 1. A point estimator of µ : X

Pr(X = µ) = 0

  • 2. An interval estimator of µ : [X − 1, X + 1]

Pr(µ ∈ [X − 1, X + 1]) = Pr(X − 1 ≤ µ ≤ X + 1) = Pr(µ − 1 ≤ X ≤ µ + 1) = Pr(−√n ≤ √n(X − µ) ≤ √n) = Pr(−√n ≤ Z ≤ √n)

P

→ 1

as n → ∞, where Z ∼ N(0, 1).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 1

slide-43
SLIDE 43

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

Definitions

.

Definition : Coverage Probability

. . Given an interval estimator [L(X), U(X)] of θ, its coverage probability is defined as Pr L X U X In other words, the probability of a random variable in interval L X U X covers the parameter . .

Definition: Confidence Coefficient

. . . . . . . . Confidence coefficient is defined as inf Pr L X U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 1

slide-44
SLIDE 44

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

Definitions

.

Definition : Coverage Probability

. . Given an interval estimator [L(X), U(X)] of θ, its coverage probability is defined as Pr(θ ∈ [L(X), U(X)]) In other words, the probability of a random variable in interval L X U X covers the parameter . .

Definition: Confidence Coefficient

. . . . . . . . Confidence coefficient is defined as inf Pr L X U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 1

slide-45
SLIDE 45

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

Definitions

.

Definition : Coverage Probability

. . Given an interval estimator [L(X), U(X)] of θ, its coverage probability is defined as Pr(θ ∈ [L(X), U(X)]) In other words, the probability of a random variable in interval [L(X), U(X)] covers the parameter θ. .

Definition: Confidence Coefficient

. . . . . . . . Confidence coefficient is defined as inf Pr L X U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 1

slide-46
SLIDE 46

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

Definitions

.

Definition : Coverage Probability

. . Given an interval estimator [L(X), U(X)] of θ, its coverage probability is defined as Pr(θ ∈ [L(X), U(X)]) In other words, the probability of a random variable in interval [L(X), U(X)] covers the parameter θ. .

Definition: Confidence Coefficient

. . Confidence coefficient is defined as inf Pr L X U X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 1

slide-47
SLIDE 47

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

Definitions

.

Definition : Coverage Probability

. . Given an interval estimator [L(X), U(X)] of θ, its coverage probability is defined as Pr(θ ∈ [L(X), U(X)]) In other words, the probability of a random variable in interval [L(X), U(X)] covers the parameter θ. .

Definition: Confidence Coefficient

. . Confidence coefficient is defined as inf

θ∈Ω Pr(θ ∈ [L(X), U(X)])

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 1

slide-48
SLIDE 48

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

Definitions

.

Definition : Confidence Interval

. . Given an interval estimator [L(X), U(X)] of θ, if its confidence coefficient is 1 − α, we call it a (1 − α) confidence interval .

Definition: Expected Length

. . . . . . . . Given an interval estimator L X U X

  • f

, its expected length is defined as E U X L X where X are random samples from fX x . In other words, it is the average length of the interval estimator.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 11 / 1

slide-49
SLIDE 49

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

Definitions

.

Definition : Confidence Interval

. . Given an interval estimator [L(X), U(X)] of θ, if its confidence coefficient is 1 − α, we call it a (1 − α) confidence interval .

Definition: Expected Length

. . Given an interval estimator [L(X), U(X)] of θ, its expected length is defined as E U X L X where X are random samples from fX x . In other words, it is the average length of the interval estimator.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 11 / 1

slide-50
SLIDE 50

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

Definitions

.

Definition : Confidence Interval

. . Given an interval estimator [L(X), U(X)] of θ, if its confidence coefficient is 1 − α, we call it a (1 − α) confidence interval .

Definition: Expected Length

. . Given an interval estimator [L(X), U(X)] of θ, its expected length is defined as E[U(X) − L(X)] where X are random samples from fX x . In other words, it is the average length of the interval estimator.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 11 / 1

slide-51
SLIDE 51

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

Definitions

.

Definition : Confidence Interval

. . Given an interval estimator [L(X), U(X)] of θ, if its confidence coefficient is 1 − α, we call it a (1 − α) confidence interval .

Definition: Expected Length

. . Given an interval estimator [L(X), U(X)] of θ, its expected length is defined as E[U(X) − L(X)] where X are random samples from fX(x|θ). In other words, it is the average length of the interval estimator.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 11 / 1

slide-52
SLIDE 52

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

How to construct confidence interval?

A confidence interval can be obtained by inverting the acceptance region

  • f a test.

There is a one-to-one correspondence between tests and confidence intervals (or confidence sets).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 12 / 1

slide-53
SLIDE 53

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

How to construct confidence interval?

A confidence interval can be obtained by inverting the acceptance region

  • f a test.

There is a one-to-one correspondence between tests and confidence intervals (or confidence sets).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 12 / 1

slide-54
SLIDE 54

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if X n z Equivalently, we accept H if

X n

z . Accepting H because we believe our data ”agrees with” the hypothesis . z

X n

z nz X nz Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-55
SLIDE 55

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H if

X n

z . Accepting H because we believe our data ”agrees with” the hypothesis . z

X n

z nz X nz Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-56
SLIDE 56

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H0 if

  • X−θ0

σ/√n

  • ≤ zα/2.

Accepting H because we believe our data ”agrees with” the hypothesis . z

X n

z nz X nz Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-57
SLIDE 57

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H0 if

  • X−θ0

σ/√n

  • ≤ zα/2.

Accepting H0 : θ = θ0 because we believe our data ”agrees with” the hypothesis θ = θ0. z

X n

z nz X nz Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-58
SLIDE 58

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H0 if

  • X−θ0

σ/√n

  • ≤ zα/2.

Accepting H0 : θ = θ0 because we believe our data ”agrees with” the hypothesis θ = θ0. −zα/2 ≤

X−θ0 σ/√n

≤ zα/2 nz X nz Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-59
SLIDE 59

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H0 if

  • X−θ0

σ/√n

  • ≤ zα/2.

Accepting H0 : θ = θ0 because we believe our data ”agrees with” the hypothesis θ = θ0. −zα/2 ≤

X−θ0 σ/√n

≤ zα/2 θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 Acceptance region is x

nz

x

nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-60
SLIDE 60

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

Example

Xi

i.i.d.

∼ N(θ, σ2) where σ2 is known. Consider H0 : θ = θ0 vs. H1 : θ ̸= θ0.

As previously shown, level α LRT test reject H0 if and only if

  • X − θ0

σ/√n

  • > zα/2

Equivalently, we accept H0 if

  • X−θ0

σ/√n

  • ≤ zα/2.

Accepting H0 : θ = θ0 because we believe our data ”agrees with” the hypothesis θ = θ0. −zα/2 ≤

X−θ0 σ/√n

≤ zα/2 θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 Acceptance region is { x : θ0 −

σ √nzα/2 ≤ x ≤ θ0 + σ √nzα/2

}

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 1

slide-61
SLIDE 61

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

Example (cont’d)

As this is size α test, the probability of accepting H0 is 1 − α. 1 − α = Pr ( θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 ) Pr X nz X nz Since is arbitrary, Pr X nz X nz Therefore, X

nz

X

nz

is confidence interval (CI).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 14 / 1

slide-62
SLIDE 62

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

Example (cont’d)

As this is size α test, the probability of accepting H0 is 1 − α. 1 − α = Pr ( θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 ) = Pr ( X − σ √nzα/2 ≤ θ0 ≤ X + σ √nzα/2 ) Since is arbitrary, Pr X nz X nz Therefore, X

nz

X

nz

is confidence interval (CI).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 14 / 1

slide-63
SLIDE 63

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

Example (cont’d)

As this is size α test, the probability of accepting H0 is 1 − α. 1 − α = Pr ( θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 ) = Pr ( X − σ √nzα/2 ≤ θ0 ≤ X + σ √nzα/2 ) Since θ0 is arbitrary, 1 − α = Pr ( X − σ √nzα/2 ≤ θ ≤ X + σ √nzα/2 ) Therefore, X

nz

X

nz

is confidence interval (CI).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 14 / 1

slide-64
SLIDE 64

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

Example (cont’d)

As this is size α test, the probability of accepting H0 is 1 − α. 1 − α = Pr ( θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 ) = Pr ( X − σ √nzα/2 ≤ θ0 ≤ X + σ √nzα/2 ) Since θ0 is arbitrary, 1 − α = Pr ( X − σ √nzα/2 ≤ θ ≤ X + σ √nzα/2 ) Therefore, [X −

σ √nzα/2, X + σ √nzα/2] is (1 − α) confidence interval (CI).

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 14 / 1

slide-65
SLIDE 65

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

Confidence intervals and level α test

.

Theorem 9.2.2

. .

. 1 For each θ0 ∈ Ω, let A(θ0) be the acceptance region of a level α test

  • f H0 : θ = θ0 vs. H1 : θ ̸= θ0 Define a set C(X) = {θ : x ∈ A(θ)},

then the random set C(X) is a 1 − α confidence set.

. . 2 Conversely, if C X is a

confidence set for , for any , define the acceptance region of a test for the hypothesis H by A x C x . Then the test has level .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 15 / 1

slide-66
SLIDE 66

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

Confidence intervals and level α test

.

Theorem 9.2.2

. .

. 1 For each θ0 ∈ Ω, let A(θ0) be the acceptance region of a level α test

  • f H0 : θ = θ0 vs. H1 : θ ̸= θ0 Define a set C(X) = {θ : x ∈ A(θ)},

then the random set C(X) is a 1 − α confidence set.

. . 2 Conversely, if C(X) is a (1 − α) confidence set for θ, for any θ0,

define the acceptance region of a test for the hypothesis H0 : θ = θ0 by A(θ0) = {x : θ0 ∈ C(x)}. Then the test has level α.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 15 / 1

slide-67
SLIDE 67

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

Example

For Xi

i.i.d.

∼ N(θ, σ2), the acceptance region A(θ0) is a subset of the

sample space A(θ0) = { x : θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 } The confidence set C X is a subset of the parameter space C X nz X nz X nz X nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 16 / 1

slide-68
SLIDE 68

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

Example

For Xi

i.i.d.

∼ N(θ, σ2), the acceptance region A(θ0) is a subset of the

sample space A(θ0) = { x : θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 } The confidence set C(X) is a subset of the parameter space C(X) = { θ : θ − σ √nzα/2 ≤ X ≤ θ + σ √nzα/2 } X nz X nz

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 16 / 1

slide-69
SLIDE 69

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

Example

For Xi

i.i.d.

∼ N(θ, σ2), the acceptance region A(θ0) is a subset of the

sample space A(θ0) = { x : θ0 − σ √nzα/2 ≤ X ≤ θ0 + σ √nzα/2 } The confidence set C(X) is a subset of the parameter space C(X) = { θ : θ − σ √nzα/2 ≤ X ≤ θ + σ √nzα/2 } = { θ : X − σ √nzα/2 ≤ θ ≤ X + σ √nzα/2 }

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 16 / 1

slide-70
SLIDE 70

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

Confidence set and confidence interval

There is no guarantee that the confidence set obtained from Theorem 9.2.2 is an interval, but quite often

. . 1 To obtain

two-sided CI L X U X , we invert the acceptance region of a level test for H

  • vs. H

. . 2 To obtain a lower-bounded CI L X

, then we invert the acceptance region of a test for H

  • vs. H

, where .

. . 3 To obtain a upper-bounded CI

U X , then we invert the acceptance region of a test for H

  • vs. H

, where .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 17 / 1

slide-71
SLIDE 71

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

Confidence set and confidence interval

There is no guarantee that the confidence set obtained from Theorem 9.2.2 is an interval, but quite often

. . 1 To obtain (1 − α) two-sided CI [L(X), U(X)], we invert the

acceptance region of a level α test for H0 : θ = θ0 vs. H1 : θ ̸= θ0

. . 2 To obtain a lower-bounded CI L X

, then we invert the acceptance region of a test for H

  • vs. H

, where .

. . 3 To obtain a upper-bounded CI

U X , then we invert the acceptance region of a test for H

  • vs. H

, where .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 17 / 1

slide-72
SLIDE 72

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

Confidence set and confidence interval

There is no guarantee that the confidence set obtained from Theorem 9.2.2 is an interval, but quite often

. . 1 To obtain (1 − α) two-sided CI [L(X), U(X)], we invert the

acceptance region of a level α test for H0 : θ = θ0 vs. H1 : θ ̸= θ0

. . 2 To obtain a lower-bounded CI [L(X), ∞), then we invert the

acceptance region of a test for H0 : θ = θ0 vs. H1 : θ > θ0, where Ω = {θ : θ ≥ θ0}.

. . 3 To obtain a upper-bounded CI

U X , then we invert the acceptance region of a test for H

  • vs. H

, where .

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 17 / 1

slide-73
SLIDE 73

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

Confidence set and confidence interval

There is no guarantee that the confidence set obtained from Theorem 9.2.2 is an interval, but quite often

. . 1 To obtain (1 − α) two-sided CI [L(X), U(X)], we invert the

acceptance region of a level α test for H0 : θ = θ0 vs. H1 : θ ̸= θ0

. . 2 To obtain a lower-bounded CI [L(X), ∞), then we invert the

acceptance region of a test for H0 : θ = θ0 vs. H1 : θ > θ0, where Ω = {θ : θ ≥ θ0}.

. . 3 To obtain a upper-bounded CI (−∞, U(X)], then we invert the

acceptance region of a test for H0 : θ = θ0 vs. H1 : θ < θ0, where Ω = {θ : θ ≤ θ0}.

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 17 / 1

slide-74
SLIDE 74

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

Example

.

Problem

. . Xi

i.i.d.

∼ N(µ, σ2) where both parameters are unknown.

. . 1 Find

two-sided CI for

. . 2 Find

upper bound for

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 18 / 1

slide-75
SLIDE 75

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

Example

.

Problem

. . Xi

i.i.d.

∼ N(µ, σ2) where both parameters are unknown.

. . 1 Find 1 − α two-sided CI for µ . . 2 Find 1 − α upper bound for µ

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 18 / 1

slide-76
SLIDE 76

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if X sX n tn The acceptance region is A x x sx n tn The confidence set is C x x sx n tn tn x sx n tn x sx ntn x sx ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-77
SLIDE 77

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if

  • X − µ0

sX/√n

  • > tn−1,α/2

The acceptance region is A x x sx n tn The confidence set is C x x sx n tn tn x sx n tn x sx ntn x sx ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-78
SLIDE 78

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if

  • X − µ0

sX/√n

  • > tn−1,α/2

The acceptance region is A(µ0) = { x :

  • x − µ0

sx/√n

  • ≤ tn−1,α/2

} The confidence set is C x x sx n tn tn x sx n tn x sx ntn x sx ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-79
SLIDE 79

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if

  • X − µ0

sX/√n

  • > tn−1,α/2

The acceptance region is A(µ0) = { x :

  • x − µ0

sx/√n

  • ≤ tn−1,α/2

} The confidence set is C(x) = { µ :

  • x − µ

sx/√n

  • ≤ tn−1,α/2

} tn x sx n tn x sx ntn x sx ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-80
SLIDE 80

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if

  • X − µ0

sX/√n

  • > tn−1,α/2

The acceptance region is A(µ0) = { x :

  • x − µ0

sx/√n

  • ≤ tn−1,α/2

} The confidence set is C(x) = { µ :

  • x − µ

sx/√n

  • ≤ tn−1,α/2

} = { µ : −tn−1,α/2 ≤ x − µ sx/√n ≤ tn−1,α/2 } x sx ntn x sx ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-81
SLIDE 81

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

Example - two-sided CI - Solution

H0 : µ = µ0 vs H1 : µ ̸= µ0. The LRT test rejects if and only if

  • X − µ0

sX/√n

  • > tn−1,α/2

The acceptance region is A(µ0) = { x :

  • x − µ0

sx/√n

  • ≤ tn−1,α/2

} The confidence set is C(x) = { µ :

  • x − µ

sx/√n

  • ≤ tn−1,α/2

} = { µ : −tn−1,α/2 ≤ x − µ sx/√n ≤ tn−1,α/2 } = { µ : x − sx √ntn−1,α/2 ≤ µ ≤ x + sx √ntn−1,α/2 }

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 1

slide-82
SLIDE 82

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. LRT statistic is x L x L x where is the MLE restricted to , and is the MLE restricted to , and Within , , and

n i

Xi n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-83
SLIDE 83

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. Ω0 = {(µ, σ2) : µ = µ0, σ2 > 0} LRT statistic is x L x L x where is the MLE restricted to , and is the MLE restricted to , and Within , , and

n i

Xi n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-84
SLIDE 84

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. Ω0 = {(µ, σ2) : µ = µ0, σ2 > 0} Ω = {(µ, σ2) : µ ≤ µ0, σ2 > 0} LRT statistic is x L x L x where is the MLE restricted to , and is the MLE restricted to , and Within , , and

n i

Xi n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-85
SLIDE 85

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. Ω0 = {(µ, σ2) : µ = µ0, σ2 > 0} Ω = {(µ, σ2) : µ ≤ µ0, σ2 > 0} LRT statistic is λ(x) = L(ˆ µ0, ˆ σ2

0|x)

L(ˆ µ, ˆ σ2|x) where is the MLE restricted to , and is the MLE restricted to , and Within , , and

n i

Xi n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-86
SLIDE 86

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. Ω0 = {(µ, σ2) : µ = µ0, σ2 > 0} Ω = {(µ, σ2) : µ ≤ µ0, σ2 > 0} LRT statistic is λ(x) = L(ˆ µ0, ˆ σ2

0|x)

L(ˆ µ, ˆ σ2|x) where (ˆ µ0, ˆ σ2

0) is the MLE restricted to Ω0, and(ˆ

µ, ˆ σ2) is the MLE restricted to Ω, and Within , , and

n i

Xi n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-87
SLIDE 87

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

Example - upper-bounded CI - Solution

The CI is (−∞, U(X)]. We need to invert a testing procedure for H0 : µ = µ0 vs H1 : µ < µ0. Ω0 = {(µ, σ2) : µ = µ0, σ2 > 0} Ω = {(µ, σ2) : µ ≤ µ0, σ2 > 0} LRT statistic is λ(x) = L(ˆ µ0, ˆ σ2

0|x)

L(ˆ µ, ˆ σ2|x) where (ˆ µ0, ˆ σ2

0) is the MLE restricted to Ω0, and(ˆ

µ, ˆ σ2) is the MLE restricted to Ω, and Within Ω0, ˆ µ0 = µ0, and ˆ σ2

0 = ∑n

i=1(Xi−µ0)2

n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 1

slide-88
SLIDE 88

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

Example - upper bounded CI - Solution (cont’d)

Within Ω, the MLE is X

n i

Xi X n

if X

n i

Xi n

if X x if X

n

exp

n i Xi n

exp

n i Xi X

if X if X

n n sX n n sX

X

n

if X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 1

slide-89
SLIDE 89

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

Example - upper bounded CI - Solution (cont’d)

Within Ω, the MLE is { ˆ µ = X ˆ σ2 =

∑n

i=1(Xi−X)2

n

if X ≤ µ0

n i

Xi n

if X x if X

n

exp

n i Xi n

exp

n i Xi X

if X if X

n n sX n n sX

X

n

if X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 1

slide-90
SLIDE 90

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

Example - upper bounded CI - Solution (cont’d)

Within Ω, the MLE is { ˆ µ = X ˆ σ2 =

∑n

i=1(Xi−X)2

n

if X ≤ µ0 ˆ µ = µ0 ˆ σ2 =

∑n

i=1(Xi−µ0)2

n

if X > µ0 x if X

n

exp

n i Xi n

exp

n i Xi X

if X if X

n n sX n n sX

X

n

if X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 1

slide-91
SLIDE 91

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

Example - upper bounded CI - Solution (cont’d)

Within Ω, the MLE is { ˆ µ = X ˆ σ2 =

∑n

i=1(Xi−X)2

n

if X ≤ µ0 ˆ µ = µ0 ˆ σ2 =

∑n

i=1(Xi−µ0)2

n

if X > µ0 λ(x) =        1 if X > µ0

(

1

2πσ2

)n exp { −

∑n i=1(Xi−µ0)2 2ˆ σ2

} (

1

2πσ2

)n exp { −

∑n i=1(Xi−X)2 2ˆ σ2

}

if X ≤ µ0 if X

n n sX n n sX

X

n

if X

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 1

slide-92
SLIDE 92

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

Example - upper bounded CI - Solution (cont’d)

Within Ω, the MLE is { ˆ µ = X ˆ σ2 =

∑n

i=1(Xi−X)2

n

if X ≤ µ0 ˆ µ = µ0 ˆ σ2 =

∑n

i=1(Xi−µ0)2

n

if X > µ0 λ(x) =        1 if X > µ0

(

1

2πσ2

)n exp { −

∑n i=1(Xi−µ0)2 2ˆ σ2

} (

1

2πσ2

)n exp { −

∑n i=1(Xi−X)2 2ˆ σ2

}

if X ≤ µ0 =    1 if X > µ0 (

n−1 n s2 X n−1 n s2 X+(X−µ0)2

) n

2

if X ≤ µ0

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 1

slide-93
SLIDE 93

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

Example - upper bounded CI - Solution (cont’d)

For 0 < c < 1, LRT test rejects H0 if X ≤ µ0 and

n n sX n n sX

X

n

c

n n n n X sx

n

c X sX c X sX n c

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 1

slide-94
SLIDE 94

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

Example - upper bounded CI - Solution (cont’d)

For 0 < c < 1, LRT test rejects H0 if X ≤ µ0 and (

n−1 n s2 X n−1 n s2 X + (X − µ0)2

) n

2

< c

n n n n X sx

n

c X sX c X sX n c

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 1

slide-95
SLIDE 95

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

Example - upper bounded CI - Solution (cont’d)

For 0 < c < 1, LRT test rejects H0 if X ≤ µ0 and (

n−1 n s2 X n−1 n s2 X + (X − µ0)2

) n

2

< c  

n−1 n n−1 n

+ (X−µ0)2

s2

x

 

n 2

< c X sX c X sX n c

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 1

slide-96
SLIDE 96

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

Example - upper bounded CI - Solution (cont’d)

For 0 < c < 1, LRT test rejects H0 if X ≤ µ0 and (

n−1 n s2 X n−1 n s2 X + (X − µ0)2

) n

2

< c  

n−1 n n−1 n

+ (X−µ0)2

s2

x

 

n 2

< c (X − µ0)2 s2

X

> c∗ X sX n c

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 1

slide-97
SLIDE 97

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

Example - upper bounded CI - Solution (cont’d)

For 0 < c < 1, LRT test rejects H0 if X ≤ µ0 and (

n−1 n s2 X n−1 n s2 X + (X − µ0)2

) n

2

< c  

n−1 n n−1 n

+ (X−µ0)2

s2

x

 

n 2

< c (X − µ0)2 s2

X

> c∗ µ0 − X sX/√n > c∗∗

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 1

slide-98
SLIDE 98

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) Pr X sX n c Pr X sX n c Pr Tn c Pr Tn c c tn tn Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-99
SLIDE 99

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) Pr X sX n c Pr Tn c Pr Tn c c tn tn Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-100
SLIDE 100

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) Pr Tn c Pr Tn c c tn tn Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-101
SLIDE 101

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) = Pr(Tn−1 < −c∗∗) Pr Tn c c tn tn Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-102
SLIDE 102

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) = Pr(Tn−1 < −c∗∗) 1 − α = Pr(Tn−1 > −c∗∗) c tn tn Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-103
SLIDE 103

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) = Pr(Tn−1 < −c∗∗) 1 − α = Pr(Tn−1 > −c∗∗) c∗∗ = −tn−1,1−α = tn−1,α Therefore, LRT level test reject H if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-104
SLIDE 104

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) = Pr(Tn−1 < −c∗∗) 1 − α = Pr(Tn−1 > −c∗∗) c∗∗ = −tn−1,1−α = tn−1,α Therefore, LRT level α test reject H0 if X sX n tn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-105
SLIDE 105

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

Example - upper bounded CI - Solution (cont’d)

c∗∗ is chosen to satisfy α = Pr(reject H0|µ0) = Pr (µ0 − X sX/√n > c∗∗ ) = Pr (X − µ0 sX/√n < −c∗∗ ) = Pr(Tn−1 < −c∗∗) 1 − α = Pr(Tn−1 > −c∗∗) c∗∗ = −tn−1,1−α = tn−1,α Therefore, LRT level α test reject H0 if X − µ0 sX/√n < −tn−1,α

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 1

slide-106
SLIDE 106

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C X X A X sX n tn X sX ntn X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-107
SLIDE 107

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C(X) = {µ : X ∈ A(µ)} X sX n tn X sX ntn X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-108
SLIDE 108

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≥ −tn−1,α } X sX ntn X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-109
SLIDE 109

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≥ −tn−1,α } = { µ : X − µ ≥ − sX √ntn−1,α } X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-110
SLIDE 110

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≥ −tn−1,α } = { µ : X − µ ≥ − sX √ntn−1,α } = { µ : µ ≤ X + sX √ntn−1,α } X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-111
SLIDE 111

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

Example - upper bounded CI - Solution (cont’d)

Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≥ −tn−1,α } Inverting the above to get CI C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≥ −tn−1,α } = { µ : X − µ ≥ − sX √ntn−1,α } = { µ : µ ≤ X + sX √ntn−1,α } = ( −∞, X + sX √ntn−1,α ]

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 1

slide-112
SLIDE 112

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

Example - lower bounded CI - solution

LRT level α test reject H0 if and only if X − µ0 sX/√n > tn−1,α Acceptance region is A x X sX n tn Confidence interval is C X X A X sX n tn X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 1

slide-113
SLIDE 113

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

Example - lower bounded CI - solution

LRT level α test reject H0 if and only if X − µ0 sX/√n > tn−1,α Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≤ tn−1,α } Confidence interval is C X X A X sX n tn X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 1

slide-114
SLIDE 114

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

Example - lower bounded CI - solution

LRT level α test reject H0 if and only if X − µ0 sX/√n > tn−1,α Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≤ tn−1,α } Confidence interval is C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≤ tn−1,α } X sX ntn X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 1

slide-115
SLIDE 115

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

Example - lower bounded CI - solution

LRT level α test reject H0 if and only if X − µ0 sX/√n > tn−1,α Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≤ tn−1,α } Confidence interval is C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≤ tn−1,α } = { µ : µ ≥ X − sX √ntn−1,α } X sX ntn

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 1

slide-116
SLIDE 116

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

Example - lower bounded CI - solution

LRT level α test reject H0 if and only if X − µ0 sX/√n > tn−1,α Acceptance region is A(µ0) = { x : X − µ0 sX/√n ≤ tn−1,α } Confidence interval is C(X) = {µ : X ∈ A(µ)} = { µ : X − µ sX/√n ≤ tn−1,α } = { µ : µ ≥ X − sX √ntn−1,α } = [ X − sX √ntn−1,α, ∞ )

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 1

slide-117
SLIDE 117

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

Example

.

Problem

. . X1, · · · , Xn are iid samples from a distribution with mean µ and finite variance σ2. Construct asymptotic (1 − α) two-sided interval for µ .

Solution

. . . . . . . . Let X be a method of moment estimator for . By law of large number, X is consistent for , and by central limit theorem, X n

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 26 / 1

slide-118
SLIDE 118

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

Example

.

Problem

. . X1, · · · , Xn are iid samples from a distribution with mean µ and finite variance σ2. Construct asymptotic (1 − α) two-sided interval for µ .

Solution

. . Let X be a method of moment estimator for µ. By law of large number, X is consistent for µ, and by central limit theorem, X ∼ AN ( µ, σ2 n )

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 26 / 1

slide-119
SLIDE 119

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

Example (cont’d)

Consider testing H0 : µ = µ0 vs. H1 : µ ̸= µ0. The Wald statistic Zn = X − µ0 Sn for a consistent estimator of σ/√n. From previous lectures, we know that n

n i

Xi X

P n i

Xi X n n

P

n The Wald level test X n

n i

Xi X n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 27 / 1

slide-120
SLIDE 120

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

Example (cont’d)

Consider testing H0 : µ = µ0 vs. H1 : µ ̸= µ0. The Wald statistic Zn = X − µ0 Sn for a consistent estimator of σ/√n. From previous lectures, we know that 1 n − 1

n

i=1

(Xi − X)2

P

σ2

n i

Xi X n n

P

n The Wald level test X n

n i

Xi X n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 27 / 1

slide-121
SLIDE 121

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

Example (cont’d)

Consider testing H0 : µ = µ0 vs. H1 : µ ̸= µ0. The Wald statistic Zn = X − µ0 Sn for a consistent estimator of σ/√n. From previous lectures, we know that 1 n − 1

n

i=1

(Xi − X)2

P

σ2 √∑n

i=1(Xi − X)2

(n − 1)n

P

σ √n The Wald level test X n

n i

Xi X n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 27 / 1

slide-122
SLIDE 122

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

Example (cont’d)

Consider testing H0 : µ = µ0 vs. H1 : µ ̸= µ0. The Wald statistic Zn = X − µ0 Sn for a consistent estimator of σ/√n. From previous lectures, we know that 1 n − 1

n

i=1

(Xi − X)2

P

σ2 √∑n

i=1(Xi − X)2

(n − 1)n

P

σ √n The Wald level α test

  • (X − µ0)√n

√∑n

i=1(Xi−X)2

n−1

  • > zα/2

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 27 / 1

slide-123
SLIDE 123

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

Example (cont’d)

The acceptance region is A(µ0) =   x :

  • (x − µ0)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   CI is C x x A x n

n i

xi x n

z x

n

n i

xi x n

z x

n

n i

xi x n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 28 / 1

slide-124
SLIDE 124

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

Example (cont’d)

The acceptance region is A(µ0) =   x :

  • (x − µ0)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   (1 − α) CI is C(x) = {µ : x ∈ A(µ)} x n

n i

xi x n

z x

n

n i

xi x n

z x

n

n i

xi x n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 28 / 1

slide-125
SLIDE 125

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

Example (cont’d)

The acceptance region is A(µ0) =   x :

  • (x − µ0)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   (1 − α) CI is C(x) = {µ : x ∈ A(µ)} =   µ :

  • (x − µ)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   x

n

n i

xi x n

z x

n

n i

xi x n

z

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 28 / 1

slide-126
SLIDE 126

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

Example (cont’d)

The acceptance region is A(µ0) =   x :

  • (x − µ0)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   (1 − α) CI is C(x) = {µ : x ∈ A(µ)} =   µ :

  • (x − µ)√n

√ ∑n

i=1(xi−x)2

n−1

  • ≤ zα/2

   = [ x −

1 √n

√∑n

i=1(xi−x)2

n−1

zα/2, x +

1 √n

√∑n

i=1(xi−x)2

n−1

zα/2 ]

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 28 / 1

slide-127
SLIDE 127

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

Summary

.

Today

. .

  • Interval Estimation
  • Confidence Interval

.

Next Lectures

. . . . . . . .

  • Reviews and Example Problems (every lecture)
  • E-M algorithm
  • Non-informative priors
  • Bayesian Tests

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 29 / 1

slide-128
SLIDE 128

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

Summary

.

Today

. .

  • Interval Estimation
  • Confidence Interval

.

Next Lectures

. .

  • Reviews and Example Problems (every lecture)
  • E-M algorithm
  • Non-informative priors
  • Bayesian Tests

Hyun Min Kang Biostatistics 602 - Lecture 23 April 11th, 2013 29 / 1