Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Bayesian Inference SECTION 11.1, 11.2 Bayes rule (11.2) Bayesian inference.

Slides:



Advertisements
Similar presentations
Introducing Hypothesis Tests
Advertisements

Week 11 Review: Statistical Model A statistical model for some data is a set of distributions, one of which corresponds to the true unknown distribution.
Hypothesis Testing: Intervals and Tests
Psychology 290 Special Topics Study Course: Advanced Meta-analysis April 7, 2014.
Inference Sampling distributions Hypothesis testing.
Hypothesis Testing I 2/8/12 More on bootstrapping Random chance
Objectives (BPS chapter 12)
1 Hypothesis Testing In this section I want to review a few things and then introduce hypothesis testing.
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of Hypothesis Testing
G. Cowan Lectures on Statistical Data Analysis Lecture 10 page 1 Statistical Data Analysis: Lecture 10 1Probability, Bayes’ theorem 2Random variables and.
Dr. Kari Lock Morgan Department of Statistics Penn State University Teaching the Common Core: Making Inferences and Justifying Conclusions ASA Webinar.
Review: Probability Random variables, events Axioms of probability
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: p-value STAT 101 Dr. Kari Lock Morgan 9/25/12 SECTION 4.2 Randomization distribution.
Statistics: Unlocking the Power of Data Lock 5 Inference for Proportions STAT 250 Dr. Kari Lock Morgan Chapter 6.1, 6.2, 6.3, 6.7, 6.8, 6.9 Formulas for.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Probability SECTIONS 11.1 Probability (11.1) Odds, odds ratio (not in book)
Fall 2012Biostat 5110 (Biostatistics 511) Discussion Section Week 8 C. Jason Liang Medical Biometry I.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: Hypotheses STAT 101 Dr. Kari Lock Morgan SECTION 4.1 Statistical test Null and alternative.
6 Probability Chapter6 p Operations on events and probability An event is the basic element to which probability can be applied. Notations Event:
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007.
More Randomization Distributions, Connections
An Intuitive Explanation of Bayes' Theorem By Eliezer Yudkowsky.
Section #4 October 30 th Old: Review the Midterm & old concepts 1.New: Case II t-Tests (Chapter 11)
Statistics: Unlocking the Power of Data Lock 5 Synthesis STAT 250 Dr. Kari Lock Morgan SECTIONS 4.4, 4.5 Connecting bootstrapping and randomization (4.4)
Bayes for Beginners Presenters: Shuman ji & Nick Todd.
Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company.
Lecture 5a: Bayes’ Rule Class web site: DEA in Bioinformatics: Statistics Module Box 1Box 2Box 3.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 12/4/12 Bayesian Inference SECTION 11.1, 11.2 More probability rules (11.1)
● Final exam Wednesday, 6/10, 11:30-2:30. ● Bring your own blue books ● Closed book. Calculators and 2-page cheat sheet allowed. No cell phone/computer.
Probability and inference General probability rules IPS chapter 4.5 © 2006 W.H. Freeman and Company.
Bayesian Inference I 4/23/12 Law of total probability Bayes Rule Section 11.2 (pdf)pdf Professor Kari Lock Morgan Duke University.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
1 Chapter 10: Introduction to Inference. 2 Inference Inference is the statistical process by which we use information collected from a sample to infer.
Bayesian vs. frequentist inference frequentist: 1) Deductive hypothesis testing of Popper--ruling out alternative explanations Falsification: can prove.
Section 10.3 Hypothesis Testing for Means (Large Samples) HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
Introducing Inference with Bootstrapping and Randomization Kari Lock Morgan Department of Statistical Science, Duke University with.
MATH 2400 Ch. 15 Notes.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 11/6/12 Simple Linear Regression SECTIONS 9.1, 9.3 Inference for slope (9.1)
Not in FPP Bayesian Statistics. The Frequentist paradigm Defines probability as a long-run frequency independent, identical trials Looks at parameters.
Section 3.3: The Story of Statistical Inference Section 4.1: Testing Where a Proportion Is.
Bayesian Inference, Review 4/25/12 Frequentist inference Bayesian inference Review The Bayesian Heresy (pdf)pdf Professor Kari Lock Morgan Duke University.
Statistics: Unlocking the Power of Data Lock 5 Exam 2 Review STAT 101 Dr. Kari Lock Morgan 11/13/12 Review of Chapters 5-9.
Lecture: Forensic Evidence and Probability Characteristics of evidence Class characteristics Individual characteristics  features that place the item.
Populations III: evidence, uncertainty, and decisions Bio 415/615.
Review: Probability Random variables, events Axioms of probability Atomic events Joint and marginal probability distributions Conditional probability distributions.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Probability SECTIONS 11.1, 11.2 Probability (11.1, 11.2) Odds, Odds Ratio.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Wed, Nov 1, 2006.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 11/29/12 Probability SECTION 11.1 Events and, or, if Disjoint Independent.
PHANTOMS: A Method of Testing Hypotheses
Statistics: Unlocking the Power of Data Lock 5 Section 4.5 Confidence Intervals and Hypothesis Tests.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
G. Cowan Computing and Statistical Data Analysis / Stat 9 1 Computing and Statistical Data Analysis Stat 9: Parameter Estimation, Limits London Postgraduate.
Bayes Theorem, a.k.a. Bayes Rule
Statistics: Unlocking the Power of Data Lock 5 Inference for Means STAT 250 Dr. Kari Lock Morgan Sections 6.4, 6.5, 6.6, 6.10, 6.11, 6.12, 6.13 t-distribution.
- 1 - Outline Introduction to the Bayesian theory –Bayesian Probability –Bayes’ Rule –Bayesian Inference –Historical Note Coin trials example Bayes rule.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan SECTION 7.1 Testing the distribution of a single categorical variable : 
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Estimation: Confidence Intervals SECTION 3.2 Confidence Intervals (3.2)
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
HL2 Math - Santowski Lesson 93 – Bayes’ Theorem. Bayes’ Theorem  Main theorem: Suppose we know We would like to use this information to find if possible.
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.
Outline Historical note about Bayes’ rule Bayesian updating for probability density functions –Salary offer estimate Coin trials example Reading material:
Test of a Population Median. The Population Median (  ) The population median ( , P 50 ) is defined for population T as the value for which the following.
Inference for Proportions
An introduction to Bayesian reasoning Learning from experience:
Example Human males have one X-chromosome and one Y-chromosome,
Lecture: Forensic Evidence and Probability Characteristics of evidence
Significance Tests: The Basics
Wellcome Trust Centre for Neuroimaging
CS639: Data Management for Data Science
Presentation transcript:

Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Bayesian Inference SECTION 11.1, 11.2 Bayes rule (11.2) Bayesian inference (not in book)

Statistics: Unlocking the Power of Data Lock 5 Review What is the definition of the p-value? a)P(statistic as extreme as that observed if H 0 is true) b)P(H 0 is true if statistic as extreme as that observed)

Statistics: Unlocking the Power of Data Lock 5 A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? a) 0-10% b) 10-25% c) 25-50% d) 50-75% e) % Breast Cancer Screening

Statistics: Unlocking the Power of Data Lock 5 1% of women at age 40 who participate in routine screening have breast cancer. 80% of women with breast cancer get positive mammographies. 9.6% of women without breast cancer get positive mammographies. A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? Breast Cancer Screening

Statistics: Unlocking the Power of Data Lock 5 A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? a) 0-10% b) 10-25% c) 25-50% d) 50-75% e) % Breast Cancer Screening

Statistics: Unlocking the Power of Data Lock 5 Breast Cancer Screening A 40-year old woman participates in routine screening and has a positive mammography. What’s the probability she has cancer? What is this asking for? a)P(cancer if positive mammography) b)P(positive mammography if cancer) c)P(positive mammography if no cancer) d)P(positive mammography) e)P(cancer)

Statistics: Unlocking the Power of Data Lock 5 Bayes Rule We know P(positive mammography if cancer)… how do we get to P(cancer if positive mammography)? How do we go from P(A if B) to P(B if A)?

Statistics: Unlocking the Power of Data Lock 5 Bayes Rule <- Bayes Rule

Statistics: Unlocking the Power of Data Lock 5 Rev. Thomas Bayes

Statistics: Unlocking the Power of Data Lock 5 Breast Cancer Screening 1% of women at age 40 who participate in routine screening have breast cancer. 80% of women with breast cancer get positive mammographies. 9.6% of women without breast cancer get positive mammographies.

Statistics: Unlocking the Power of Data Lock 5 P(positive) How do we figure out P(positive)? We know:  80% of women with breast cancer get positive mammographies.  9.6% of women without breast cancer get positive mammographies. We need to average these two numbers, weighted by the proportion of people with breast cancer:

Statistics: Unlocking the Power of Data Lock 5 Law of Total Probability If events B 1 through B k are disjoint and together make up all possibilities, then A B1B1 B2B2 B3B3

Statistics: Unlocking the Power of Data Lock 5 Law of Total Probability Special case: B and not B A Bnot B

Statistics: Unlocking the Power of Data Lock 5 P(positive) Use the law of total probability to find P(positive).

Statistics: Unlocking the Power of Data Lock 5 Breast Cancer Screening 1% of women at age 40 who participate in routine screening have breast cancer. 80% of women with breast cancer get positive mammographies. 9.6% of women without breast cancer get positive mammographies.

Statistics: Unlocking the Power of Data Lock 5 CancerCancer-free Positive Result Negative Result If we randomly pick a ball from the Cancer bin, it’s more likely to be red/positive. If we randomly pick a ball the Cancer-free bin, it’s more likely to be green/negative. Everyone We randomly pick a ball from the Everyone bin. C C C C C FFFFFFFFFFFF FFFFFFFFFFF FFFFFFFFFF FFFFFFFFF FFFFFFFF FFFFFFF FFFFFF FFFFF If the ball is red/positive, is it more likely to be from the Cancer or Cancer-free bin?

Statistics: Unlocking the Power of Data Lock 5 100,000 women in the population 1% Thus, 800/(800+9,504) = 7.8% of positive results have cancer 1000 have cancer99,000 cancer-free 99% 80%20% 800 test positive 200 test negative 9.6%90.4% 9,504 test positive 89,496 test negative

Statistics: Unlocking the Power of Data Lock 5 Hypotheses H 0 : no cancer H a : cancer Data: positive mammography p-value = P(statistic as extreme as observed if H 0 true) = P(positive mammography if no cancer) = The probability of getting a positive mammography just by random chance, if the woman does not have cancer, is

Statistics: Unlocking the Power of Data Lock 5 Hypotheses H 0 : no cancer H a : cancer Data: positive mammography You don’t really want the p-value, you want the probability that the woman has cancer! You want P(H 0 true if data), not P(data if H 0 true)

Statistics: Unlocking the Power of Data Lock 5 Hypotheses H 0 : no cancer H a : cancer Data: positive mammography Using Bayes Rule: P(H a true if data) = P(cancer if data) = P(H 0 true if data) = P(no cancer | data) = This tells a very different story than a p-value of 0.096!

Statistics: Unlocking the Power of Data Lock 5 Frequentist Inference Frequentist Inference considers what would happen if the data collection process (sampling or experiment) was repeated many times Probability is considered to be the proportion of times an event would happen if repeated many times In frequentist inference, we condition on some unknown truth, and find the probability of our data given this unknown truth

Statistics: Unlocking the Power of Data Lock 5 Frequentist Inference Everything we have done so far in class is based on frequentist inference A confidence interval is created to capture the truth for a specified proportion of all samples A p-value is the proportion of times you would get results as extreme as those observed, if the null hypothesis were true

Statistics: Unlocking the Power of Data Lock 5 Bayesian Inference Bayesian inference does not think about repeated sampling or repeating the experiment, but only what you can tell from your single observed data set Probability is considered to be the subjective degree of belief in some statement In Bayesian inference we condition on the data, and find the probability of some unknown parameter, given the data

Statistics: Unlocking the Power of Data Lock 5 Fixed and Random In frequentist inference, the parameter is considered fixed and the sample statistic is random In Bayesian inference, the statistic is considered fixed, and the parameter is considered random

Statistics: Unlocking the Power of Data Lock 5 Bayesian Inference Frequentist: P(data if truth) Bayesian: P(truth if data) How are they connected?

Statistics: Unlocking the Power of Data Lock 5 Bayesian Inference PRIOR Probability POSTERIOR Probability Prior probability: probability of a statement being true, before looking at the data Posterior probability: probability of the statement being true, after updating the prior probability based on the data

Statistics: Unlocking the Power of Data Lock 5 Breast Cancer Before getting the positive result from her mammography, the prior probability that the woman has breast cancer is 1% Given data (the positive mammography), update this probability using Bayes rule: The posterior probability of her having breast cancer is

Statistics: Unlocking the Power of Data Lock 5 Paternity A woman is pregnant. However, she slept with two different guys (call them Al and Bob) close to the time of conception, and does not know who the father is. What is the prior probability that Al is the father? The baby is born with blue eyes. Al has brown eyes and Bob has blue eyes. Update based on this information to find the posterior probability that Al is the father.

Statistics: Unlocking the Power of Data Lock 5 Eye Color In reality eye color comes from several genes, and there are several possibilities but let’s simplify here: Brown is dominant, blue is recessive One gene comes from each parent BB, bB, Bb would all result in brown eyes Only bb results in blue eyes To make it a bit easier: You know that Al’s mother and the mother of the child both have blue eyes.

Statistics: Unlocking the Power of Data Lock 5 Paternity What is the probability that Al is the father? a)1/2 b)1/3 c)1/4 d)1/5 e)No idea

Statistics: Unlocking the Power of Data Lock 5 Paternity

Statistics: Unlocking the Power of Data Lock 5 Bayesian Inference Why isn’t everyone a Bayesian? Need some “prior belief” for the probability of the truth Also, until recently, it was hard to be a Bayesian (needed complicated math.) Now, we can let computers do the work for us! ???

Statistics: Unlocking the Power of Data Lock 5 Inference Both kinds of inference have the same goal, and it is a goal fundamental to statistics: to use information from the data to gain information about the unknown truth

Statistics: Unlocking the Power of Data Lock 5 To Do Read 11.2 Do Project 2 (due Wednesday, 4/23) Do Homework 9 (due Wednesday, 4/23)

Statistics: Unlocking the Power of Data Lock 5 Course Evaluations