Inductive Reasoning Bayes Rule. Urn problem (1) A B A die throw determines from which urn to select balls. For outcomes 1,2, and 3, balls are picked from.

Slides:



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

Statistics Hypothesis Testing.
1 Intuitive Irrationality: Reasons for Unreason. 2 Epistemology Branch of philosophy focused on how people acquire knowledge about the world Descriptive.
Psychology 290 Special Topics Study Course: Advanced Meta-analysis April 7, 2014.
The Structure of Networks with emphasis on information and social networks T-214-SINE Summer 2011 Chapter 16 Ýmir Vigfússon.
COUNTING AND PROBABILITY
Foundations of Artificial Intelligence 1 Bayes’ Rule - Example  Medical Diagnosis  suppose we know from statistical data that flu causes fever in 80%
Binomial Distribution & Bayes’ Theorem. Questions What is a probability? What is the probability of obtaining 2 heads in 4 coin tosses? What is the probability.
Probability - 1 Probability statements are about likelihood, NOT determinism Example: You can’t say there is a 100% chance of rain (no possibility of.
Intro to Bayesian Learning Exercise Solutions Ata Kaban The University of Birmingham 2005.
Hypothesis Testing. Research hypothesis are formulated in terms of the outcome that the experimenter wants, and an alternative outcome that he doesn’t.
Processing physical evidence discovering, recognizing and examining it; collecting, recording and identifying it; packaging, conveying and storing it;
Section 9.2: What is a Test of Significance?. Remember… H o is the Null Hypothesis ▫When you are using a mathematical statement, the null hypothesis uses.
Chapter 10: Hypothesis Testing
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
Cognitive Processes PSY 334 Chapter 11 – Judgment & Decision-Making.
Solved the Maze? Start at phil’s house. At first, you can only make right turns through the maze. Each time you cross the red zigzag sign (under Carl’s.
Probability theory Much inspired by the presentation of Kren and Samuelsson.
Heuristics and Biases. Normative Model Bayes rule tells you how you should reason with probabilities – it is a normative model But do people reason like.
Social Learning. A Guessing Game Why are Wolfgang Puck restaurants so crowded? Why do employers turn down promising job candidates on the basis of rejections.
Reasoning with Uncertainty. Often, we want to reason from observable information to unobservable information We want to calculate how our prior beliefs.
Cognitive Processes PSY 334 Chapter 10 – Reasoning & Decision-Making August 21, 2003.
Jeopardy Final Jeopardy Definitions Prob Rules Tables Mixed Rules Mis- conceptions $100 $200 $300 $400 $500.
Ch. 9 Fundamental of Hypothesis Testing
Heuristics & Biases. Bayes Rule Prior Beliefs Evidence Posterior Probability.
Chapter 6 Probability.
What are the chances of that happening?. What is probability? The mathematical expression of the chances that a particular event or outcome will happen.
Hypothesis Testing – Introduction
© 2008 McGraw-Hill Higher Education The Statistical Imagination Chapter 9. Hypothesis Testing I: The Six Steps of Statistical Inference.
Hypothesis Testing.
Inference in practice BPS chapter 16 © 2006 W.H. Freeman and Company.
Chapter 1 Basics of Probability.
Copyright © 2000 by Harcourt, Inc. All rights reserved. What is Perception? Perception: The process of recognizing and understanding others By understanding.
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Probability Revision 4. Question 1 An urn has two white balls and two black balls in it. Two balls are drawn out without replacing the first ball. a.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
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.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
Digital Statisticians INST 4200 David J Stucki Spring 2015.
Warm-up Day of 8.1 and 8.2 Review. 8.2 P#20, 23 and 24 P#20 a. and b. c. Since the p-hat is along the line for reasonably likely events.
Hypothesis Testing Hypothesis Testing Topic 11. Hypothesis Testing Another way of looking at statistical inference in which we want to ask a question.
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Chapter 7 Sampling and Point Estimation Sample This Chapter 7A.
1 Reasoning Under Uncertainty Artificial Intelligence Chapter 9.
Bayesian vs. frequentist inference frequentist: 1) Deductive hypothesis testing of Popper--ruling out alternative explanations Falsification: can prove.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
MATH 2400 Ch. 15 Notes.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
Math I.  Probability is the chance that something will happen.  Probability is most often expressed as a fraction, a decimal, a percent, or can also.
Inference: Probabilities and Distributions Feb , 2012.
1 DECISION MAKING Suppose your patient (from the Brazilian rainforest) has tested positive for a rare but serious disease. Treatment exists but is risky.
V7 Foundations of Probability Theory „Probability“ : degree of confidence that an event of an uncertain nature will occur. „Events“ : we will assume that.
Decision Making. Reasoning & Problem Solving A. Two Classes of Reasoning I. Deductive Reasoning II. Inductive Reasoning.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
Uncertainty and confidence Although the sample mean,, is a unique number for any particular sample, if you pick a different sample you will probably get.
Tests of Significance We use test to determine whether a “prediction” is “true” or “false”. More precisely, a test of significance gets at the question.
The Law of Averages. What does the law of average say? We know that, from the definition of probability, in the long run the frequency of some event will.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
A. Judgment Heuristics Definition: Rule of thumb; quick decision guide When are heuristics used? - When making intuitive judgments about relative likelihoods.
Introduction to Bayesian inference POORFISH workshop Helsinki Samu Mäntyniemi Fisheries and Environmental Management group (FEM) Department.
Warm-up What is the best way to answer each of the questions below: an experiment, a sample survey, or an observational study that is not a sample survey?
Probability and Statistics
Probability Axioms and Formulas
What is Probability? Quantification of uncertainty.
Hypothesis Testing – Introduction
Is a persons’ size related to if they were bullied
Wellcome Trust Centre for Neuroimaging
Mathematical Foundations of BME Reza Shadmehr
Presentation transcript:

Inductive Reasoning Bayes Rule

Urn problem (1) A B A die throw determines from which urn to select balls. For outcomes 1,2, and 3, balls are picked from urn A; for the other outcomes, balls are picked from urn B. 1) After the urn is selected by a die throw, but before any draw is seen, what is the probability that urn A is being used? ___________________ 2) The color of the first ball is black. a) What is the probability that A was selected? _____________ b) What is the probability that B was selected? _____________ 3) The first ball is put back into the urn and a second black ball is selected from the same urn. What is the probability that A is being used? ______ Die throw 1,2,34,5,6

Some common answers Incorrect: 2a) 1/2 b) 1/2 Each urn is equally likely to be selected beforehand but what did you learn from the draw? 2a) (1/2)(2/3) (b) (1/2)(1/3) probabilities have to sum up to one – the outcome is either urn A or B. Hint: need to rescale the numbers to make them add up to one. Correct: 1) 1/2 2a) (1/2)(2/3) / [ (1/2)(2/3)+(1/2)(1/3) ] = 2/3 2b) (1/2)(1/3) / [ (1/2)(2/3)+(1/2)(1/3) ] = 1/3 3) (1/2)(4/9) / [ (1/2)(4/9)+(1/2)(1/9) ] = 4/5

Urn problem (2) Now the problem is a little different.... Only when the die comes up with number “1”, balls are picked from urn A; for all other outcomes, balls are picked from urn B. 1) After the urn is selected by a die throw, but before any draw is seen, what is the probability that urn A is being used? ____________ 2) The color of the first ball is black. a) What is the probability that A was selected? ________ b) What is the probability that B was selected? ________ 3) The first ball is put back into the urn and a second black ball is selected from the same urn. What is the probability that A is being used? _______ Die throw 12,3,4,5,6 A B

Answers Correct: 1) 1/6 2a) (1/6)(2/3) / [ (1/6)(2/3)+(5/6)(1/3) ] = 2/7 2b) (1/6)(1/3) / [ (1/6)(2/3)+(5/6)(1/3) ] = 5/7 3) (1/6)(4/9) / [ (1/6)(4/9)+(5/6)(1/9) ] = 4/9

Medical Test In the 1980’s in the US, a HIV test was used that had the following properties: There were 4% false positives There were 100% true positives About 0.4% of the male population was HIV positive If a man tested HIV positive, what is the probability he is actually HIV positive?

A counting heuristic Let’s take 1000 people. On average, 4 out of 1000 actually have the disease and all 4 of those will test positive (100% true positive rate) Among the 996 who do not have the disease, the test will falsely identify 4% as having it. 4% of 996 ≈ 40 On average, out of 1000 people: 4 test positive and they have the disease 40 test positive and they do not have the disease. Therefore, a positive test outcome implies a 4/(4+40)≈9% chance of having the disease

Reasoning with Uncertainty Often, we want to reason from observable information to unobservable information We want to calculate how our prior beliefs change given new available evidence Bayes rule tells us how to optimally reason with uncertainty. Do people reason like Bayes rule?

Example of reasoning with uncertainty Medical diagnosis: –before seeing the patient, there is a prior probability that the patient has a disease. After diagnosis and running tests, the doctor assesses the posterior probability that the patient has a disease –test outcomes, symptoms (observable)  disease (unobservable) Law –(real story) Several elderly patients die. A nurse is accused of mishandling the patients under her care. Some lawyers argue that the elderly patients could have died by chance. How likely is it the nurse is guilty? –facts (observable)  guilt (unobservable, uncertain) Scientific reasoning: –Before running an experiment, scientists have a certain belief in their hypothesis being true. Their belief in their theory is updated in the light of the evidence gathered from experiments –evidence (observations from experiment)  hypothesis (unobservable)

Bayes Rule Prior probability Evidence Posterior Probability Bayes rule tells us how the available evidence should alter our belief in something being true

Evidence: E 1 = outcome 1 E 2 = outcome 2 Hypotheses: H 1 = hypothesis 1 H 2 = hypothesis 2 Given: P( H 1 ) (prior probability) P( H 2 ) (prior probability) P( E 1 | H 1 ) (likelihood) P( E 1 | H 2 ) (likelihood) We can calculate: P( H 1 | E 1 ) (posterior prob.)

Bayes Rule (‘flipping rule’) (the denominator normalizes the probabilities)

Medical Test In the 1980’s in the US, a HIV test was used that had the following properties: There were 4% false positives There were 100% true positives About 0.4% of the male population was HIV positive If a man tested HIV positive, what is the probability he is actually HIV positive?

Representation for medical problem E 1 Positive Test Outcome E 2 Negative Test Outcome H 1 HIV positive H 2 Not HIV positive Prior probability: P( H 1 ) =.004, P( H 2 ) =.996 False positive:P( E 1 | H 2 ) =.04 P( E 2 | H 2 )=.96 False negative: P( E 2 | H 1 ) = 0 P( E 1 | H 1 )=1 P( H 1 | E 1 ) = ??

Applying Bayes Rule

Normative Model Bayes rule tells you how you should reason with probabilities – it is a prescriptive (i.e., normative) model But do people reason like Bayes? (Tversky & Kahneman) –Bayes rate neglect –Conservatism

The Taxi Problem A witness sees a crime involving a taxi in Carborough. The witness says that the taxi is blue. It is known from previous research that witnesses are correct 80% of the time when making such statements. What is the probability that a blue taxi was involved in the crime?

The Taxi Problem A witness sees a crime involving a taxi in Carborough. The witness says that the taxi is blue. It is known from previous research that witnesses are correct 80% of the time when making such statements. The police also know that 15% of the taxis in Carborough are blue, the other 85% being green. What is the probability that a blue taxi was involved in the crime?

Base Rate Neglect: The Taxi Problem Failure to take prior probabilities (i.e., base rates) into account In the taxi story, the addition of: “The police also know that 15% of the taxis in Carborough are blue, the other 85% being green.” has little influence on rated probability

Base Rate Neglect (2) Kahneman & Tversky (1973). What is probability of picking an engineer in group A and B? Subject group A: 70 engineers and 30 lawyers Subject group B: 30 engineers and 70 lawyers Subjects can do this …

Providing additional information “Jack is a 45 year-old man. He is married and has four children. He is generally conservative, careful, and ambitious. He shows no interest in political and social issues and spends most of his free time on his many hobbies, which include home carpentry, sailing, and mathematical puzzles” What now is probability Jack is an engineer? Both group A and group B gave P =.9

“Dick is a 30-year-old man. He is married with no children. A man of high ability and high motivation, he promises to be quite successful in his field. He is well liked by his colleagues” What now is the probability that Dick is an engineer? Both group A and B gave P =.5

Conservatism Once people form a probability estimate, they are often slow to change the estimate given new information URN A: 70 red balls, 30 blue balls URN B: 30 red balls, 70 blue balls A number of balls are selected from a randomly picked urn. What is probability of getting from urn A: Estimated ProbabilityActual Probability One red Two red Three red