BINF702 SPRING 2015 Chapter 7 Hypothesis Testing: One-Sample Inference

Similar documents
BINF 702 SPRING Chapter 8 Hypothesis Testing: Two-Sample Inference. BINF702 SPRING 2014 Chapter 8 Hypothesis Testing: Two- Sample Inference 1

MATH 240. Chapter 8 Outlines of Hypothesis Tests

CH.9 Tests of Hypotheses for a Single Sample

1 Statistical inference for a population mean

CHAPTER 9, 10. Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities:

SPRING 2007 EXAM C SOLUTIONS

Visual interpretation with normal approximation

Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments

MATH 728 Homework 3. Oleksandr Pavlenko

GROUPED DATA E.G. FOR SAMPLE OF RAW DATA (E.G. 4, 12, 7, 5, MEAN G x / n STANDARD DEVIATION MEDIAN AND QUARTILES STANDARD DEVIATION

Tests for Population Proportion(s)

Introduction to Statistics

STAT Chapter 8: Hypothesis Tests

Formulas and Tables. for Elementary Statistics, Tenth Edition, by Mario F. Triola Copyright 2006 Pearson Education, Inc. ˆp E p ˆp E Proportion

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

Chapter 9 Inferences from Two Samples

CHAPTER EIGHT TESTS OF HYPOTHESES

OHSU OGI Class ECE-580-DOE :Statistical Process Control and Design of Experiments Steve Brainerd Basic Statistics Sample size?

TUTORIAL 8 SOLUTIONS #

Evaluating Hypotheses

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

, 0 x < 2. a. Find the probability that the text is checked out for more than half an hour but less than an hour. = (1/2)2

Math 141. Lecture 10: Confidence Intervals. Albyn Jones 1. jones/courses/ Library 304. Albyn Jones Math 141

STAT Chapter 9: Two-Sample Problems. Paired Differences (Section 9.3)

PubH 5450 Biostatistics I Prof. Carlin. Lecture 13

Wednesday, 20 November 13. p<0.05

An interval estimator of a parameter θ is of the form θl < θ < θu at a

THE ROYAL STATISTICAL SOCIETY 2015 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 3

Person-Time Data. Incidence. Cumulative Incidence: Example. Cumulative Incidence. Person-Time Data. Person-Time Data

Introduction to Statistical Analysis

Practice Problems Section Problems

Unobservable Parameter. Observed Random Sample. Calculate Posterior. Choosing Prior. Conjugate prior. population proportion, p prior:

Sections 7.1 and 7.2. This chapter presents the beginning of inferential statistics. The two major applications of inferential statistics

(8 One- and Two-Sample Test Of Hypothesis)

STA Module 10 Comparing Two Proportions

Medical statistics part I, autumn 2010: One sample test of hypothesis

Stat 231 Exam 2 Fall 2013

A proportion is the fraction of individuals having a particular attribute. Can range from 0 to 1!

GEOMETRIC -discrete A discrete random variable R counts number of times needed before an event occurs

How do we compare the relative performance among competing models?

9-6. Testing the difference between proportions /20

Solution: First note that the power function of the test is given as follows,

Solutions to First Midterm Exam, Stat 371, Spring those values: = Or, we can use Rule 6: = 0.63.

Hypothesis Testing Chap 10p460

Basic Concepts of Inference

Chapter 10: Inferences based on two samples

Statistical Inference

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

Math 152. Rumbos Fall Solutions to Exam #2

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Dr. Maddah ENMG 617 EM Statistics 10/12/12. Nonparametric Statistics (Chapter 16, Hines)

Chapter 7 Comparison of two independent samples

Lecture Slides. Elementary Statistics. Tenth Edition. by Mario F. Triola. and the Triola Statistics Series

Review. December 4 th, Review

Generalized linear models for binary data. A better graphical exploratory data analysis. The simple linear logistic regression model

LECTURE 12 CONFIDENCE INTERVAL AND HYPOTHESIS TESTING

Inferences for Proportions and Count Data

Mark Scheme (Results) June 2008

Chapter 8 of Devore , H 1 :

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

Smoking Habits. Moderate Smokers Heavy Smokers Total. Hypertension No Hypertension Total

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

BIOSTATS Intermediate Biostatistics Spring 2017 Exam 2 (Units 3, 4 & 5) Practice Problems SOLUTIONS

Single Sample Means. SOCY601 Alan Neustadtl

Formulas and Tables for Elementary Statistics, Eighth Edition, by Mario F. Triola 2001 by Addison Wesley Longman Publishing Company, Inc.

Psychology 282 Lecture #4 Outline Inferences in SLR

Formulas and Tables. for Essentials of Statistics, by Mario F. Triola 2002 by Addison-Wesley. ˆp E p ˆp E Proportion.

Bios 6649: Clinical Trials - Statistical Design and Monitoring

Multivariate Statistical Analysis

Chapter 9. Inferences from Two Samples. Objective. Notation. Section 9.2. Definition. Notation. q = 1 p. Inferences About Two Proportions

Answer keys for Assignment 10: Measurement of study variables (The correct answer is underlined in bold text)

Permutation Tests. Noa Haas Statistics M.Sc. Seminar, Spring 2017 Bootstrap and Resampling Methods

Lecture 15: Inference Based on Two Samples

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

Reference: Chapter 7 of Devore (8e)

This paper is not to be removed from the Examination Halls

BIOS 6222: Biostatistics II. Outline. Course Presentation. Course Presentation. Review of Basic Concepts. Why Nonparametrics.

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

Nonparametric Tests. Mathematics 47: Lecture 25. Dan Sloughter. Furman University. April 20, 2006

Discrete distribution. Fitting probability models to frequency data. Hypotheses for! 2 test. ! 2 Goodness-of-fit test

Chapter 5 Confidence Intervals

Probability theory and inference statistics! Dr. Paola Grosso! SNE research group!! (preferred!)!!

A3. Statistical Inference

Suppose that you have three coins. Coin A is fair, coin B shows heads with probability 0.6 and coin C shows heads with probability 0.8.

PHP2510: Principles of Biostatistics & Data Analysis. Lecture X: Hypothesis testing. PHP 2510 Lec 10: Hypothesis testing 1

CS 543 Page 1 John E. Boon, Jr.

The t-distribution. Patrick Breheny. October 13. z tests The χ 2 -distribution The t-distribution Summary

Lecture Slides. Elementary Statistics Eleventh Edition. by Mario F. Triola. and the Triola Statistics Series 9.1-1

Formulas and Tables by Mario F. Triola

Statistical Inference

Frequency table: Var2 (Spreadsheet1) Count Cumulative Percent Cumulative From To. Percent <x<=

STAT 512 MidTerm I (2/21/2013) Spring 2013 INSTRUCTIONS

Lecture #16 Thursday, October 13, 2016 Textbook: Sections 9.3, 9.4, 10.1, 10.2

VTU Edusat Programme 16

Unit 9: Inferences for Proportions and Count Data

MIT Spring 2015

CSE 312 Final Review: Section AA

Ch 2: Simple Linear Regression

Transcription:

BINF702 SPRING 2015 Chapter 7 Hypothesis Testing: One-Sample Inference BINF702 SPRING 2014 Chapter 7 Hypothesis Testing 1

Section 7.9 One-Sample c 2 Test for the Variance of a Normal Distribution Eq. 7.40 (One-Sample c 2 Test for the Variance of a Normal Distribution (Two- Sided Alternative) We compute the test statistic X 2 = (n-1)s 2 /s 2 0 The rejection region is given by X c or X 2 2 2 2 n1, / 2 n1,1 / 2 The acceptance region is given by c X c c 2 2 2 n1, / 2 n1,1 / 2 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 2

Section 7.9 One-Sample c 2 Test for the Variance of a Normal Distribution Eq. 7.41 (p-value for a One- Sample c 2 Test for the Variance of a Normal Distribution (Two-Sided Alternative) Test Statistic X 2 n1 s 2 s 2 0 Case I s s p-value given by 2* Pr( Y X Y ~ c ) 2 2 2 0 n1 Case II s s p-value given by 2* Pr( Y X Y ~ c ) 2 2 2 0 n1 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 3

Section 7.9 One-Sample c 2 Test for the Variance of a Normal Distribution Ex. 7.46 What is s 2 and the p-value? BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 4

7.10 One-Sample Test for a Binomial Distribution Equation 7.42 (One-Sample Test for a Binomial Proportion Normal-Theory Method (Two-Sided Alternative) Let the test statistic be given by z pˆ p p q 0 0 0 / n The rejection region is given by The acceptence region is given by z z or z The test should only be used if np q 5 0 0 / 2 1 / 2 z z z / 2 1 / 2 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 5

7.10 One-Sample Test for a Binomial Distribution Equation 7.43 Computation of the p-value for the One- Sample Binomial Test Normal-Theory Method (Two-Sided Alternative) Let the test statistic be given by z If pˆ p q 0 0 0 p 0 / n pˆ p p-value=2 z If pˆ p 0 p-value 2 1 z BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 6

Approximate Binomial Testing in R prop.test(x, n, p = NULL, alternative = c("two.sided", "less","greater"), conf.level = 0.95, correct = TRUE) Problem 7.10 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 7

7.10 One-Sample Test for a Binomial Distribution Eq. 7.44 (Computation of the p-value for the One- Sample Binomial Test-Exact Method(Two-Sided Alternative) x n k nk If pˆ p0, p 2P X x min 2 p0 1 p0,1 k 0 k n n k nk If pˆ p0, p 2P X x min 2 p0 1 p0,1 kxk BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 8

7.10 One-Sample Test for a Binomial Distribution (Exact Method) binom.test(x, n, p = 0.5, alternative = c("two.sided", "less", "greater"), conf.level = 0.95) Ex. 7.49 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 9

7.10 One-Sample Test for a Binomial Distribution (Exact Method) We note that this is different from the value in the text or the value using the equation in the text. How do you compute this using R? BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 10

7.10 One-Sample Test for a Binomial Distribution Eq. 7.45 (Power for the One-Sample Binomial Test (Two-Sided Alternative)) The power of the one-sample binomial test for the hypothesis H 0 : p = p 0 vs. H 1 : p!=p 0 for the specific alternative p = p 1 is given by pq pq z p p n where np q 5 0 0 0 1 / 2 0 0 1 1 pq 0 0 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 11

7.10 One-Sample Test for a Binomial Distribution Equation 7.46 (Sample-Size Estimation for the One-Sample Test (Two-Sided Alternative)) Suppose we wish to test H 0 : p = p 0 versus H 1 : p!= p 0. The sample size needed to conduct a two-sided test with significance level and power 1 b versus the specified alternative hypothesis p = p 1 is n p q z z p p 0 0 1 / 2 1b 1 0 2 pq pq 1 1 0 0 2 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 12

7.10 One-Sample Test for a Binomial Distribution Can you write a function to implement Equation 7.46? BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 13

7.10 One-Sample Test for a Binomial Distribution Our function in action on Ex. 7.51 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 14

Section 7.11 One-Sample Inference for the Poisson Distribution Eq. 7.47 (One Sample Inference for the Poisson Distribution (Small-Sample Test Critical Value Method) Let X be a Poisson random variable with expected value = m. To test the hypothesis H 0 : m = m 0 versus H 1 : m!= m 0 using a two-sided test with significance level, 1. Obtain the two-sided 100% x (1-) confidence interval for m based on the observed value x of X. Denote the confidence interval (c 1, c 2 ) 2. If m 0 < c 1 or m 0 > c 2, then reject H 0, if c 1 <= m 0 <= c 2, then accept H 0. BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 15

Section 7.11 One-Sample Inference for the Poisson Distribution Eq. 7.48 (One-Sample Inference for the Poisson Distribution (Small-Sample Test p-value Method) Let m = expected value of a Poisson distribution. To test the hypothesis H 0 : m = m 0 versus H 1 : m!= m 0, 1. Compute x = observed number of deaths in the study population 2. Under H 0, the random variable X will follow a Poisson distribution with parameter m 0. Thus the two-sided p-value is given by min 2 x k 0 e min 21 0 k m0 k! m x k 0 e,1 if x 0 k m0 k! m m 0,1 if x m 0 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 16

Section 7.11 One-Sample Inference for the Poisson Distribution Ex. 7.54 Can you solve this using R as a calculator? BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 17

Section 7.11 One-Sample Inference for the Poisson Distribution Def. 7.16 The standardized mortality ratio (SMR) is define by 100% x O/E = 100% x the observed number of deaths in the study population divided by the expected number of deaths in the study population under the assumption that the mortality rates for the study population are the same as those for the general population. For nonfatal conditions the standardized mortality ratio is sometimes known as the standardized morbidity ratio. BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 18

Section 7.11 One-Sample Inference for the Poisson Distribution Eq. 7.49 (One-Sample Inference for the Poisson Distribution (Large-Sample Test) Let m = expected value of a Poisson random variable. To test the hypothesis H 0 : m = m 0 versus H 1 : m!= m 0 (1) Compute x = observed number of events in the study population (2) Compute the test statistic X 2 2 x m SMR 2 0 2 0 1 0 m0 100 (3) For a two-sided test at level, H is rejected if X and m 1 ~ c under H 2 2 c1,1 2 2 H0 is accepted if X c1,1 0 BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 19

Section 7.11 One-Sample Inference for the Poisson Distribution Eq. 7.49 (continued) (4) The exact p-value is given by Pr( c X ) 1 / 2 0 2 2 1 (5) This test should only be used if m 10 (6) In addition, an approximate 100% x (1- ) CI for m is given by x z x BINF702 SPRING 2013 Chapter 7 Hypothesis Testing 20