Summary. Recap ... Last Lecture. Summary. Theorem

Similar documents
Last Lecture. Wald Test

Asymptotics. Hypothesis Testing UMP. Asymptotic Tests and p-values

Last Lecture. Unbiased Test

Introductory statistics

LECTURE 14 NOTES. A sequence of α-level tests {ϕ n (x)} is consistent if

Efficient GMM LECTURE 12 GMM II

Lecture Notes 15 Hypothesis Testing (Chapter 10)

STATISTICAL INFERENCE

Lecture 6 Simple alternatives and the Neyman-Pearson lemma

Resampling Methods. X (1/2), i.e., Pr (X i m) = 1/2. We order the data: X (1) X (2) X (n). Define the sample median: ( n.

5. Likelihood Ratio Tests

x = Pr ( X (n) βx ) =

Topic 9: Sampling Distributions of Estimators

Direction: This test is worth 150 points. You are required to complete this test within 55 minutes.

Statistical Inference (Chapter 10) Statistical inference = learn about a population based on the information provided by a sample.

Composite Hypotheses

Topic 9: Sampling Distributions of Estimators

32 estimating the cumulative distribution function

STAT Homework 7 - Solutions

Topic 9: Sampling Distributions of Estimators

Tests of Hypotheses Based on a Single Sample (Devore Chapter Eight)

( θ. sup θ Θ f X (x θ) = L. sup Pr (Λ (X) < c) = α. x : Λ (x) = sup θ H 0. sup θ Θ f X (x θ) = ) < c. NH : θ 1 = θ 2 against AH : θ 1 θ 2

Econ 325 Notes on Point Estimator and Confidence Interval 1 By Hiro Kasahara

Frequentist Inference

Stat 319 Theory of Statistics (2) Exercises

Let us give one more example of MLE. Example 3. The uniform distribution U[0, θ] on the interval [0, θ] has p.d.f.

Chapter 6 Principles of Data Reduction

Last Lecture. Biostatistics Statistical Inference Lecture 16 Evaluation of Bayes Estimator. Recap - Example. Recap - Bayes Estimator

Problem Set 4 Due Oct, 12

The variance of a sum of independent variables is the sum of their variances, since covariances are zero. Therefore. V (xi )= n n 2 σ2 = σ2.

Since X n /n P p, we know that X n (n. Xn (n X n ) Using the asymptotic result above to obtain an approximation for fixed n, we obtain

Properties and Hypothesis Testing

Homework for 2/3. 1. Determine the values of the following quantities: a. t 0.1,15 b. t 0.05,15 c. t 0.1,25 d. t 0.05,40 e. t 0.

Common Large/Small Sample Tests 1/55

Unbiased Estimation. February 7-12, 2008

ECE 901 Lecture 12: Complexity Regularization and the Squared Loss

2 1. The r.s., of size n2, from population 2 will be. 2 and 2. 2) The two populations are independent. This implies that all of the n1 n2

IIT JAM Mathematical Statistics (MS) 2006 SECTION A

Statistical Theory MT 2009 Problems 1: Solution sketches

Goodness-of-Fit Tests and Categorical Data Analysis (Devore Chapter Fourteen)

Math 140 Introductory Statistics

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures

Direction: This test is worth 250 points. You are required to complete this test within 50 minutes.

Introduction to Econometrics (3 rd Updated Edition) Solutions to Odd- Numbered End- of- Chapter Exercises: Chapter 3

1.010 Uncertainty in Engineering Fall 2008

Statistical Theory MT 2008 Problems 1: Solution sketches

STAT431 Review. X = n. n )

Simulation. Two Rule For Inverting A Distribution Function

Mathematical Statistics - MS

Estimation for Complete Data

SDS 321: Introduction to Probability and Statistics

Parameter, Statistic and Random Samples

Sample Size Determination (Two or More Samples)

Lecture 12: September 27

MOST PEOPLE WOULD RATHER LIVE WITH A PROBLEM THEY CAN'T SOLVE, THAN ACCEPT A SOLUTION THEY CAN'T UNDERSTAND.

ECONOMETRIC THEORY. MODULE XIII Lecture - 34 Asymptotic Theory and Stochastic Regressors

MATH 320: Probability and Statistics 9. Estimation and Testing of Parameters. Readings: Pruim, Chapter 4

Summary. Recap. Last Lecture. Let W n = W n (X 1,, X n ) = W n (X) be a sequence of estimators for

Stat 421-SP2012 Interval Estimation Section

Agreement of CI and HT. Lecture 13 - Tests of Proportions. Example - Waiting Times

HYPOTHESIS TESTS FOR ONE POPULATION MEAN WORKSHEET MTH 1210, FALL 2018

STA Learning Objectives. Population Proportions. Module 10 Comparing Two Proportions. Upon completing this module, you should be able to:

Overview. p 2. Chapter 9. Pooled Estimate of. q = 1 p. Notation for Two Proportions. Inferences about Two Proportions. Assumptions

Module 1 Fundamentals in statistics

Lecture 11 and 12: Basic estimation theory

[ ] ( ) ( ) [ ] ( ) 1 [ ] [ ] Sums of Random Variables Y = a 1 X 1 + a 2 X 2 + +a n X n The expected value of Y is:

Probability and Statistics

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

Sequences and Series of Functions

Statistical inference: example 1. Inferential Statistics

April 18, 2017 CONFIDENCE INTERVALS AND HYPOTHESIS TESTING, UNDERGRADUATE MATH 526 STYLE

Math 152. Rumbos Fall Solutions to Review Problems for Exam #2. Number of Heads Frequency

Machine Learning Brett Bernstein

Expectation and Variance of a random variable

Chapter 13: Tests of Hypothesis Section 13.1 Introduction

This exam contains 19 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

Lecture 2: Monte Carlo Simulation

KLMED8004 Medical statistics. Part I, autumn Estimation. We have previously learned: Population and sample. New questions

6 Sample Size Calculations

Discrete Mathematics for CS Spring 2008 David Wagner Note 22

Final Examination Statistics 200C. T. Ferguson June 10, 2010

TAMS24: Notations and Formulas

A statistical method to determine sample size to estimate characteristic value of soil parameters

Section 9.2. Tests About a Population Proportion 12/17/2014. Carrying Out a Significance Test H A N T. Parameters & Hypothesis

Exam II Review. CEE 3710 November 15, /16/2017. EXAM II Friday, November 17, in class. Open book and open notes.

Chapter 22. Comparing Two Proportions. Copyright 2010, 2007, 2004 Pearson Education, Inc.

First Year Quantitative Comp Exam Spring, Part I - 203A. f X (x) = 0 otherwise

Estimation of the Mean and the ACVF

Lecture 9: September 19

Stat410 Probability and Statistics II (F16)

A quick activity - Central Limit Theorem and Proportions. Lecture 21: Testing Proportions. Results from the GSS. Statistics and the General Population

Chapter 22. Comparing Two Proportions. Copyright 2010 Pearson Education, Inc.

Exponential Families and Bayesian Inference

Lecture 23: Minimal sufficiency

Lecture 33: Bootstrap

Large Sample Theory. Convergence. Central Limit Theorems Asymptotic Distribution Delta Method. Convergence in Probability Convergence in Distribution

Testing Statistical Hypotheses for Compare. Means with Vague Data

- E < p. ˆ p q ˆ E = q ˆ = 1 - p ˆ = sample proportion of x failures in a sample size of n. where. x n sample proportion. population proportion

TMA4245 Statistics. Corrected 30 May and 4 June Norwegian University of Science and Technology Department of Mathematical Sciences.

Class 23. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

Transcription:

Last Lecture Biostatistics 602 - Statistical Iferece Lecture 23 Hyu Mi Kag April 11th, 2013 What is p-value? What is the advatage of p-value compared to hypothesis testig procedure with size α? How ca oe costruct a valid p-value? What is Fisher s exact p-value? Is Fisher s exact p-value uiformly distributed uder ull hypothesis? Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 1 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 2 / 29 p-values Costructig a valid p-value Coclusios from Hypothesis Testig Reject H 0 or accept H 0 If size of the test is α) small, the decisio to reject H 0 is covicig If α is large, the decisio may ot be very covicig Defiitio: p-value A p-value p) is a test statistic satisfyig 0 px) 1 for every sample poit x Small values of p) give evidece that H 1 is true A p-value is valid if, for every θ Ω 0 ad every 0 α 1, Prp) α θ) α Theorem 8327 Let W) be a test statistic such that large values of W give evidece that H 1 is true For each sample poit x, defie px) sup PrW) Wx) θ) θ Ω 0 The p) is a valid p-value Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 3 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 4 / 29

p-values by coditioig o o sufficiet statistic - Fisher s Exact Test Suppose S) is a sufficiet statistic for the model fx θ) : θ Ω 0 } ot ecessarily icludig alterative hypothesis) If the ull hypothesis is true, the coditioal distributio of give S s does ot deped o θ Agai, let W) deote a test statistic where large value give evidece that H 1 is true Defie px) PrW) Wx) S Sx)) If we cosider oly the coditioal distributio, by Theorem 8327, this is a valid p-value, meaig that Prp) α S s) α Problem Let 1 ad 2 be idepedet observatios with 1 Biomial 1, p 1 ), ad 2 Biomial 2, p 2 ) Cosider testig H 0 : p 1 p 2 versus H 1 : p 1 > p 2 Fid a valid p-value fuctio Solutio Uder H 0, if we let p deote the commo value of p 1 p 2 The the joi pmf of 1, 2 ) is ) ) 1 fx 1, x 2 p) p x 1 1 p) 1 x 1 2 p x 2 1 p) 2 x 2 x 1 x 2 ) ) 1 2 p x 1+x 2 1 p) 1+ 2 x 1 x 2 x 1 x 2 Therefore S 1 + 2 is a sufficiet statistic uder H 0 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 5 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 6 / 29 Solutio - Fisher s Exact Test cot d) Give the value of S s, it is reasoable to use 1 as a test statistic ad reject H 0 i favor of H 1 for large values of 1,because large values of 1 correspod to small values of 2 s 1 The coditioal distributio of 1 give S s is a hypergeometric distributio f 1 x 1 s) 1 ) 2 x 1 ) 1 + 2 s s x 1 ) Thus, the p-value coditioal o the sufficiet statistic s x 1 + x 2 is px 1, x 2 ) mi 1,s) jx 1 fj s) ˆθ) is usually represeted as a poit estimator Iterval Estimator Let [L), U)], where L) ad U) are fuctios of sample ad L) U) Based o the observed sample x, we ca make a iferece that θ [L), U)] The we call [L), U)] a iterval estimator of θ Three types of itervals Two-sided iterval [L), U)] Oe-sided with lower-boud) iterval [L), ) Oe-sided with upper-boud) iterval, U)] Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 7 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 8 / 29

Defiitios Let i iid N µ, 1) Defie 1 A poit estimator of µ : Pr µ) 0 2 A iterval estimator of µ : [ 1, + 1] Prµ [ 1, + 1]) Pr 1 µ + 1) as, where Z N 0, 1) Prµ 1 µ + 1) Pr µ) ) Pr Z ) P 1 Defiitio : Coverage Probability Give a iterval estimator [L), U)] of θ, its coverage probability is defied as Prθ [L), U)]) I other words, the probability of a radom variable i iterval [L), U)] covers the parameter θ Defiitio: Cofidece Coefficiet Cofidece coefficiet is defied as if Prθ [L), U)]) θ Ω Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 9 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 10 / 29 Defiitios How to costruct cofidece iterval? Defiitio : Give a iterval estimator [L), U)] of θ, if its cofidece coefficiet is 1 α, we call it a 1 α) cofidece iterval Defiitio: Expected Legth Give a iterval estimator [L), U)] of θ, its expected legth is defied as E[U) L)] A cofidece iterval ca be obtaied by ivertig the acceptace regio of a test There is a oe-to-oe correspodece betwee tests ad cofidece itervals or cofidece sets) where are radom samples from f x θ) I other words, it is the average legth of the iterval estimator Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 11 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 12 / 29

iid i N θ, σ 2 ) where σ 2 is kow Cosider H 0 : θ θ 0 vs H 1 : θ θ 0 As previously show, level α LRT test reject H 0 if ad oly if θ 0 σ/ > Equivaletly, we accept H 0 if θ 0 σ/ Acceptig H 0 : θ θ 0 because we believe our data agrees with the hypothesis θ θ 0 θ 0 σ/ cot d) As this is size α test, the probability of acceptig H 0 is 1 α 1 α Pr θ 0 σ θ 0 + σ ) Pr σ θ 0 + σ ) Sice θ 0 is arbitrary, 1 α Pr σ θ + σ ) θ 0 σ z α/2 θ 0 + σ z α/2 } Acceptace regio is x : θ 0 σ x θ 0 + σ Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 13 / 29 Therefore, [ σ, + σ ] is 1 α) cofidece iterval CI) Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 14 / 29 Cofidece itervals ad level α test Theorem 922 1 For each θ 0 Ω, let Aθ 0 ) be the acceptace regio of a level α test of H 0 : θ θ 0 vs H 1 : θ θ 0 Defie a set C) θ : x Aθ)}, the the radom set C) is a 1 α cofidece set 2 Coversely, if C) is a 1 α) cofidece set for θ, for ay θ 0, defie the acceptace regio of a test for the hypothesis H 0 : θ θ 0 by Aθ 0 ) x : θ 0 Cx)} The the test has level α iid For i N θ, σ 2 ), the acceptace regio Aθ 0 ) is a subset of the sample space Aθ 0 ) x : θ 0 σ θ 0 + σ } The cofidece set C) is a subset of the parameter space C) θ : θ σ θ + σ } θ : σ θ + σ } Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 15 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 16 / 29

Cofidece set ad cofidece iterval There is o guaratee that the cofidece set obtaied from Theorem 922 is a iterval, but quite ofte 1 To obtai 1 α) two-sided CI [L), U)], we ivert the acceptace regio of a level α test for H 0 : θ θ 0 vs H 1 : θ θ 0 2 To obtai a lower-bouded CI [L), ), the we ivert the acceptace regio of a test for H 0 : θ θ 0 vs H 1 : θ > θ 0, where Ω θ : θ θ 0 } 3 To obtai a upper-bouded CI, U)], the we ivert the acceptace regio of a test for H 0 : θ θ 0 vs H 1 : θ < θ 0, where Ω θ : θ θ 0 } Problem iid i N µ, σ 2 ) where both parameters are ukow 1 Fid 1 α two-sided CI for µ 2 Fid 1 α upper boud for µ Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 17 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 18 / 29 - two-sided CI - Solutio - upper-bouded CI - Solutio H 0 : µ µ 0 vs H 1 : µ µ 0 The LRT test rejects if ad oly if µ 0 s / > t 1,α/2 The acceptace regio is Aµ 0 ) x : } x µ 0 s x / t 1,α/2 The cofidece set is } Cx) µ : x µ s x / t 1,α/2 µ : t 1,α/2 x µ } s x / t 1,α/2 µ : x s x t 1,α/2 µ x + s } x t 1,α/2 The CI is, U)] We eed to ivert a testig procedure for H 0 : µ µ 0 vs H 1 : µ < µ 0 LRT statistic is Ω 0 µ, σ 2 ) : µ µ 0, σ 2 > 0} Ω µ, σ 2 ) : µ µ 0, σ 2 > 0} λx) Lˆµ 0, ˆσ 2 0 x) Lˆµ, ˆσ 2 x) where ˆµ 0, ˆσ 2 0 ) is the MLE restricted to Ω 0, adˆµ, ˆσ 2 ) is the MLE restricted to Ω, ad Withi Ω 0, ˆµ 0 µ 0, ad ˆσ 2 0 i1 i µ 0 ) 2 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 19 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 20 / 29

- upper bouded CI - Solutio cot d) - upper bouded CI - Solutio cot d) Withi Ω, the MLE is ˆµ ˆσ 2 i1 i ) 2 if µ 0 ˆµ µ 0 ˆσ 2 i1 i µ 0 ) 2 if > µ 0 λx) 1 if > µ 0 1 2πσ 2 1 2πσ 2 ) exp ) exp i1 i µ 0 ) 2 2ˆσ 0 2 i1 i ) 2 2ˆσ 2 0 1 if > µ 0 ) 1 s2 2 if µ 0 1 s2 + µ 0) 2 } } if µ 0 For 0 < c < 1, LRT test rejects H 0 if µ 0 ad 1 1 s2 ) 2 s2 + µ 0) 2 1 1 + µ 0) 2 s 2 x 2 µ 0 ) 2 s 2 < c < c > c µ 0 s / > c Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 21 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 22 / 29 - upper bouded CI - Solutio cot d) - upper bouded CI - Solutio cot d) c is chose to satisfy α Prreject H 0 µ 0 ) ) µ0 Pr s / > c ) µ0 Pr s / < c PrT 1 < c ) 1 α PrT 1 > c ) c t 1,1 α t 1,α Therefore, LRT level α test reject H 0 if µ 0 s / < t 1,α Acceptace regio is Aµ 0 ) Ivertig the above to get CI x : µ } 0 s / t 1,α C) µ : Aµ)} µ : µ } s / t 1,α µ : µ s } t 1,α µ : µ + s } t 1,α, + s ] t 1,α Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 23 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 24 / 29

- lower bouded CI - solutio LRT level α test reject H 0 if ad oly if Acceptace regio is Aµ 0 ) µ 0 s / > t 1,α x : µ } 0 s / t 1,α Cofidece iterval is C) µ : Aµ)} µ : µ } s / t 1,α µ : µ s } t 1,α [ s ) t 1,α, Problem 1,, are iid samples from a distributio with mea µ ad fiite variace σ 2 Costruct asymptotic 1 α) two-sided iterval for µ Solutio Let be a method of momet estimator for µ By law of large umber, is cosistet for ) µ, ad by cetral limit theorem, AN µ, σ2 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 25 / 29 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 26 / 29 cot d) cot d) Cosider testig H 0 : µ µ 0 vs H 1 : µ µ 0 The Wald statistic Z µ 0 S for a cosistet estimator of σ/ From previous lectures, we kow that 1 i ) 2 P σ 2 1 i1 i1 i ) 2 P σ 1) The Wald level α test µ 0 ) i1 i ) 2 1 > Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 27 / 29 The acceptace regio is 1 α) CI is Aµ 0 ) x : x µ 0 ) i1 x i x) 2 1 Cx) µ : x Aµ)} µ : x µ) i1 x i x) 2 1 [ ] x 1 i1 x i x) 2 1, x + 1 i1 x i x) 2 1 Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 28 / 29

Today Next Lectures Reviews ad Problems every lecture) E-M algorithm No-iformative priors Bayesia Tests Hyu Mi Kag Biostatistics 602 - Lecture 23 April 11th, 2013 29 / 29