ELEC 303 – Random Signals Lecture 17 – Hypothesis testing 2 Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 2, 2009.

Slides:



Advertisements
Similar presentations
Bayes rule, priors and maximum a posteriori
Advertisements

Tests of Hypotheses Based on a Single Sample
Hypothesis testing Another judgment method of sampling data.
Lecture XXIII.  In general there are two kinds of hypotheses: one concerns the form of the probability distribution (i.e. is the random variable normally.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Fast Bayesian Matching Pursuit Presenter: Changchun Zhang ECE / CMR Tennessee Technological University November 12, 2010 Reading Group (Authors: Philip.
Likelihood ratio tests
ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009.
Hypothesis testing Week 10 Lecture 2.
Bayesian Decision Theory Chapter 2 (Duda et al.) – Sections
Chapter Seventeen HYPOTHESIS TESTING
Evaluating Hypotheses Chapter 9. Descriptive vs. Inferential Statistics n Descriptive l quantitative descriptions of characteristics.
Hypothesis Testing: Type II Error and Power.
Probability & Statistics for Engineers & Scientists, by Walpole, Myers, Myers & Ye ~ Chapter 10 Notes Class notes for ISE 201 San Jose State University.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Overview of Lecture Independent and Dependent Variables Between and Within Designs.
Inference about a Mean Part II
IENG 486 Statistical Quality & Process Control
Thanks to Nir Friedman, HU
Chapter 9 Hypothesis Testing.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Bayesian Decision Theory Making Decisions Under uncertainty 1.
Binary Variables (1) Coin flipping: heads=1, tails=0 Bernoulli Distribution.
Chapter Nine: Evaluating Results from Samples Review of concepts of testing a null hypothesis. Test statistic and its null distribution Type I and Type.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
Presented by Mohammad Adil Khan
Hypothesis Testing.
Hypothesis Testing.
Chapter 8 Hypothesis testing 1. ▪Along with estimation, hypothesis testing is one of the major fields of statistical inference ▪In estimation, we: –don’t.
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 12 – More on conditional expectation and variance Dr. Farinaz Koushanfar ECE Dept., Rice.
Inference for the mean vector. Univariate Inference Let x 1, x 2, …, x n denote a sample of n from the normal distribution with mean  and variance 
Let’s flip a coin. Making Data-Based Decisions We’re going to flip a coin 10 times. What results do you think we will get?
Overview Basics of Hypothesis Testing
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Making decisions about distributions: Introduction to the Null Hypothesis 47:269: Research Methods I Dr. Leonard April 14, 2010.
1 Lecture 19: Hypothesis Tests Devore, Ch Topics I.Statistical Hypotheses (pl!) –Null and Alternative Hypotheses –Testing statistics and rejection.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 5 – Probability Mass Function Farinaz Koushanfar ECE Dept., Rice University Sept 8, 2009.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
ELEC 303 – Random Signals Lecture 18 – Classical Statistical Inference, Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 4, 2010.
Physics 270 – Experimental Physics. Let say we are given a functional relationship between several measured variables Q(x, y, …) x ±  x and x ±  y What.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Unit 11 Binomial Distribution IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 11 Binomial Distribution.
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 3 – Conditional probability Farinaz Koushanfar ECE Dept., Rice University Sept 1, 2009.
Ch15: Decision Theory & Bayesian Inference 15.1: INTRO: We are back to some theoretical statistics: 1.Decision Theory –Make decisions in the presence of.
Computer simulation Sep. 9, QUIZ 2 Determine whether the following experiments have discrete or continuous out comes A fair die is tossed and the.
© Copyright McGraw-Hill 2004
Sampling and Statistical Analysis for Decision Making A. A. Elimam College of Business San Francisco State University.
Discrete Random Variables. Introduction In previous lectures we established a foundation of the probability theory; we applied the probability theory.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
CHAPTER 3: BAYESIAN DECISION THEORY. Making Decision Under Uncertainty Based on E Alpaydın 2004 Introduction to Machine Learning © The MIT Press (V1.1)
Chapter Ten McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. One-Sample Tests of Hypothesis.
Hypothesis Tests. An Hypothesis is a guess about a situation that can be tested, and the test outcome can be either true or false. –The Null Hypothesis.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. Part Four ANALYSIS AND PRESENTATION OF DATA.
Applied statistics Usman Roshan.
Lecture 1.31 Criteria for optimal reception of radio signals.
Dr.MUSTAQUE AHMED MBBS,MD(COMMUNITY MEDICINE), FELLOWSHIP IN HIV/AIDS
Hypothesis Testing: Hypotheses
Statistical Process Control
When we free ourselves of desire,
CONCEPTS OF HYPOTHESIS TESTING
Chapter 9 Hypothesis Testing.
Discrete Event Simulation - 4
Confidence Intervals.
Inference as Decision Section 10.4.
Mathematical Foundations of BME Reza Shadmehr
Presentation transcript:

ELEC 303 – Random Signals Lecture 17 – Hypothesis testing 2 Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 2, 2009

outline Reading: 8.2,9.3 Bayesian Hypothesis testing Likelihood Hypothesis testing

Four versions of MAP rule  discrete, X discrete  discrete, X continuous  continuous, X discrete  continuous, X continuous

Example – spam filter may be spam or legitimate Parameter , taking values 1,2, corresponding to spam/legitimate, prob p  (1), P  (2) given Let  1,…,  n be a collection of special words, whose appearance suggests a spam For each i, let X i be the Bernoulli RV that denotes the appearance of  i in the message Assume that the conditional prob are known Use the MAP rule to decide if spam or not.

Bayesian Hypothesis testing Binary hypothesis: two cases Once the value x of X is observed, Use the Bayes rule to calculate the posterior P  |X (  |x) Select the hypothesis with the larger posterior If g MAP (x) is the selected hypothesis, the correct decision’s probability isP(  = g MAP (x)|X=x) If Si is set of all x in the MAP, the overall probability of correct decision is P(  = g MAP (x))=  i P(  =  i,X  S i ) The probability of error is:  i P(  i,X  S i )

Multiple hypothesis

Example – biased coin, single toss Two biased coins, with head prob. p 1 and p 2 Randomly select a coin and infer its identity based on a single toss  =1 (Hypothesis 1),  =2 (Hypothesis 2) X=0 (tail), X=1(head) MAP compares P  (1)P X|  (x|1) ? P  (2)P X|  (x|2) Compare P X|  (x|1) and P X|  (x|2) (WHY?) E.g., p 1 =.46 and p 2 =.52, and the outcome tail

Example – biased coin, multiple tosses Assume that we toss the selected coin n times Let X be the number of heads obtained ?

Example – signal detection and matched filter A transmitter sending two messages  =1,  =2 Massages expanded: – If  =1, S=(a 1,a 2,…,a n ), if  =2, S=(b 1,b 2,…,b n ) The receiver observes the signal with corrupted noise: X i =S i +W i, i=1,…,n Assume W i  N(0,1)

Likelihood Approach to Binary Hypothesis Testing

BHT and Associated Error

Likelihood Approach to BHT (Cont’d)

Binary hypothesis testing H 0 : null hypothesis, H 1 : alternative hypothesis Observation vector X=(X 1,…,X n ) The distribution of the elements of X depend on the hypothesis P(X  A;H j ) denotes the probability that X belongs to a set A, when H j is true

Rejection/acceptance A decision rule: – A partition of the set of all possible values of the observation vector in two subsets: “rejection region” and “acceptance region” 2 possible errors for a rejection region: – Type I error (false rejection): Reject H 0, even though H 0 is true – Type II error (false acceptance): Accept H 0, even though H 0 is false

Probability of regions False rejection: – Happens with probability  (R) = P(X  R; H 0 ) False acceptance: – Happens with probability  (R) = P(X  R; H 1 )

Analogy with Bayesian Assume that we have two hypothesis  =  0 and  =  1, with priors p  (  0 ) and p  (  1 ) The overall probability of error is minimized using the MAP rule: – Given observations x of X,  =  1 is true if – p  (  0 ) p X|  (x|  0 ) < p  (  1 ) p X|  (x|  1 ) – Define:  = p  (  0 ) / p  (  1 ) – L(x) = p X|  (x|  1 ) / p X|  (x|  0 )  =  1 is true if the observed values of x satisfy the inequality: L(x)> 

More on testing Motivated by the MAP rule, the rejection region has the form R={x|L(x)>  } The likelihood ratio test – Discrete: L(x)= p X (x;H 1 ) / p X (x;H 0 ) – Continuous: L(x) = f X (x;H 1 ) / f X (x;H 0 )

Example Six sided die Two hypothesis Find the likelihood ratio test (LRT) and probability of error

Error probabilities for LRT Choosing  trade-offs between the two error types, as  increases, the rejection region becomes smaller – The false rejection probability  (R) decreases – The false acceptance probability  (R) increases

LRT Start with a target value  for the false rejection probability Choose a value  such that the false rejection probability is equal to  : P(L(X) >  ; H 0 ) =  Once the value x of X is observed, reject H 0 if L(x) >  The choices for  are 0.1, 0.05, and 0.01

Requirements for LRT Ability to compute L(x) for observations X Compare the L(x) with the critical value  Either use the closed form for L(x) (or log L(x)) or use simulations to approximate

Example A camera checking a certain area Recording the detection signal X=W, and X=1+W depending on the presence of the intruders (hypothesis H 0 and H 1 ) Assume W~N(0,  ) Find the LRT and acceptance/rejection region

Example

Example (Cont’d)

Error Probabilities

Example: Binary Channel

Example: More on BHT