Binomial Distribution & Bayes’ Theorem

Slides:



Advertisements
Similar presentations
Probability Probability Principles of EngineeringTM
Advertisements

13.1 Theoretical Probability
Lecture Discrete Probability. 5.2 Recap Sample space: space of all possible outcomes. Event: subset of of S. p(s) : probability of element s of.
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.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Dr. Engr. Sami ur Rahman Data Analysis Lecture 4: Binomial Distribution.
Unit 18 Section 18C The Binomial Distribution. Example 1: If a coin is tossed 3 times, what is the probability of obtaining exactly 2 heads Solution:
Lec 18 Nov 12 Probability – definitions and simulation.
Probability Probability Principles of EngineeringTM
Statistics for the Social Sciences Psychology 340 Spring 2005 Sampling distribution.
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Hypothesis testing 1.Make assumptions. One of them is the “hypothesis.” 2.Calculate the probability of what happened based on the assumptions. 3.If the.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Spring 2005 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Section 6.2 ~ Basics of Probability Introduction to Probability and Statistics Ms. Young.
1 Algorithms CSCI 235, Fall 2012 Lecture 9 Probability.
20/6/1435 h Sunday Lecture 11 Jan Mathematical Expectation مثا ل قيمة Y 13 المجموع P(y)3/41/41 Y p(y)3/4 6/4.
The Binomial Distribution Permutations: How many different pairs of two items are possible from these four letters: L, M. N, P. L,M L,N L,P M,L M,N M,P.
Probability & The Normal Distribution Statistics for the Social Sciences Psychology 340 Spring 2010.
14/6/1435 lecture 10 Lecture 9. The probability distribution for the discrete variable Satify the following conditions P(x)>= 0 for all x.
Probability The calculated likelihood that a given event will occur
The Big Picture: Counting events in a sample space allows us to calculate probabilities The key to calculating the probabilities of events is to count.
Chapter 3 Probability Larson/Farber 4th ed. Chapter Outline 3.1 Basic Concepts of Probability 3.2 Conditional Probability and the Multiplication Rule.
(c) 2007 IUPUI SPEA K300 (4392) Probability Likelihood (chance) that an event occurs Classical interpretation of probability: all outcomes in the sample.
Binomial Distribution
Discrete Math Section 16.3 Use the Binomial Probability theorem to find the probability of a given outcome on repeated independent trials. Flip a coin.
1 Outline 1.Count data 2.Properties of the multinomial experiment 3.Testing the null hypothesis 4.Examples.
AP Statistics Intro to Probability: Sample Spaces and Counting.
Binomial Probability Theorem In a rainy season, there is 60% chance that it will rain on a particular day. What is the probability that there will exactly.
Lesson 10: Using Simulation to Estimate a Probability Simulation is a procedure that will allow you to answer questions about real problems by running.
Binomial Distribution Introduction: Binomial distribution has only two outcomes or can be reduced to two outcomes. There are a lot of examples in engineering.
CHAPTER 10: Introducing Probability
Section 5.1 Day 2.
Terminologies in Probability
Outline.
Copyright © 2009 Pearson Education, Inc.
2.3 Probability and Odds Objective: Given a description an event, find the probability and/or the odds of the event happening (including replacement and.
Copyright © 2016, 2013, and 2010, Pearson Education, Inc.
Random Variables.
PROBABILITY AND PROBABILITY RULES
Math 145 September 25, 2006.
CHAPTER 12: Introducing Probability
Natural Language Processing
Unit 1: Probability and Statistics
Probability Principles of Engineering
Probability Principles of Engineering
Statistics for the Social Sciences
Introduction In probability, events are either dependent or independent. Two events are independent if the occurrence or non-occurrence of one event has.
Chapter 9 Section 1 Probability Review.
Warm Up Which of the following are combinations?
Terminologies in Probability
Lesson 10.1 Sample Spaces and Probability
Statistical Inference for Managers
Terminologies in Probability
Terminologies in Probability
Grab a penny from the front
Terminologies in Probability
Discrete & Continuous Random Variables
©G Dear 2009 – Not to be sold/Free to use
Probability Probability Principles of EngineeringTM
Probability Principles of Engineering
Math 145 June 26, 2007.
Terminologies in Probability
Math 145 February 12, 2008.
Mathematical Foundations of BME Reza Shadmehr
Terminologies in Probability
pencil, red pen, highlighter, GP notebook, calculator
Presentation transcript:

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 of obtaining 2 or more heads in 4 coin tosses? Give an concrete illustration of p(D|H) and p(H|D). Why might these be different?

Probability of Binary Events Probability of success = p p(success) = p Probability of failure = q p(failure) = q p+q = 1 q = 1-p Probability – long run relative frequency

Permutations & Combinations 1 Suppose we flip a coin 2 times H H H T T H T T Sample space shows 4 possible outcomes or sequences. Each sequence is a permutation. Order matters. There are 2 ways to get a total of one heads (HT and TH). These are combinations. Order does NOT matter.

Perm & Comb 2 HH, HT, TH, TT Suppose our interest is Heads. If the coin is fair, p(Heads) = .5; q = 1-p = .5. The probability of any permutation for 2 trials is ¼ = p*p, or p*q, or q*p, or q*q. All permutations are equally probable. The probability of exactly 1 head in any order is 2/4 = .5 = HT+TH/(HH+HT+TH+TT) [what is probability of at least 1 head?]

Perm & Comb 3 3 flips HHH, HHT, HTH, THH HTT, THT, TTH TTT All permutations equally likely = p*p*p = .53 = .125 = 1/8. p(1 Head) = 3/8

Perm & Comb 4 Factorials: N! 4! = 4*3*2*1 3! = 3*2*1 Combinations: NCr The number of ways of selecting r combinations of N objects, regardless of order. Say 2 heads from 5 trials.

Binomial Distribution 1 Is a binomial distribution with parameters N and p. N is the number of trials, p is the probability of success. Suppose we flip a fair coin 5 times; p = q = .5

Binomial 2 5 .03125 4 .15625 3 .3125 2 1

Binomial 3 Flip coins and compare observed to expected frequencies

Binomial 4 Find expected frequencies for number of 1s from a 6-sided die in five rolls.

Binomial 5 When p is .5, as N increases, the binomial approximates the Normal.

Review What is a probability? What is the probability of obtaining 2 heads in 4 coin tosses? What is the probability of obtaining 2 or more heads in 4 coin tosses?

Bayes Theorem (1) Bayesian statistics are about the revision of belief. Bayesian statisticians look into statistically optimal ways of combining new information with old beliefs. Prior probability – personal belief or data. Input. Likelihood – likelihood of data given hypothesis. Posterior probability – probability of hypothesis given data. Scientists are interested in substantive hypotheses, e.g., does Nicorette help people stop smoking. The p level that comes from the study is the probability of the sample data given the hypothesis, not the probability of the hypothesis given the data. That is

Bayes Theorem (2) Bayes theorem is old and mathematically correct. But its use is controversial. Suppose you have a hunch about the null (H0) and the alternative (H1) that specifies the probability of each before you do a study. The probabilities p(H0) and p(H1) are priors. The likelihoods are p(y| H0) and p(y| H1). Standard p values. The posterior is given by: p(H1|y)=1-p(H0|y)

Bayes Theorem (3) Suppose before a study is done that the two hypotheses are H0: p =.80 and H1: p=.40 for the proportion of male grad students. Before the study, we figure that the probability is .75 that H0 is true and .25 That H1 is true. We grab 10 grad students at random and find that 6 of 10 are male. Binomial applies.

Bayes Theorem (4) Bayes theorem says we should revise our belief of the probability that H0 is true from .75 to .70 based on new data. Small change here, but can be quite large depending on data and prior. Problems with choice of prior. Handled by empirical data or by “flat” priors. There are Bayesian applications to more complicated situations (e.g., means and correlations). Not used much in psychology yet except in meta-analysis (empricial Bayes estimates) and judgment studies (Taxis, etc). Rules for exchangeability (admissible data) need to be worked out.

Review Give an concrete illustration of p(D|H) and p(H|D). Why might these be different?