It applies to discrete and continuous random variables, and a mix of the two.

Size: px
Start display at page:

Download "It applies to discrete and continuous random variables, and a mix of the two."

Transcription

1 3. Bayes Theorem 3.1 Bayes Theorem A straightforward application of conditioning: using p(x, y) = p(x y) p(y) = p(y x) p(x), we obtain Bayes theorem (also called Bayes rule) p(x y) = p(y x) p(x). p(y) It applies to discrete and continuous random variables, and a mix of the two. Deceptively simple, and the predictions are counterintuitive. combination. This is a very powerful 3.2 Examples of Bayes Theorem Let s do some simple examples, adapted from the book The Drunkard s Walk How Randomness Rules Our Lives by Leonard Mlodinow. (The solutions to these problems are given at the end of the chapter (Sec. 3.); they will be made available after the class. One of the purposes of this lecture is to demonstrate how counterintuitive probability can be.) Girls named Lulu Case 1: A family has two children. What is the probability that both are girls? Case 2: A family has two children. Given that one of them is a girl, what is the probability that both are girls? Case 3: A family has two children. Given that one of them is a girl named Lulu, what is the probability that both are girls? Disease diagnosis Doctors were asked to estimate the probability that a woman with no symptoms, between and 5 years old, who has a positive mammogram (i.e. the test reports cancer), actually has breast cancer. The doctors were given the following facts: The facts 7% of mammograms give false positives. 1% of mammograms give false negatives. Actual incidence of breast cancer in her age group is.8%. Date compiled: March 15, 218 1

2 Results Germany: A third of doctors said 9%, the median estimate was 7%. USA: 95% said the probability was approximately 75%. What do you think? Aren t you tempted to say 93%? Prosecutor s fallacy The facts Couple s first child died of SIDS (Sudden Infant Death Syndrome) at 11 weeks. They had another child, who also died of SIDS at 8 weeks. They were arrested and accused of smothering their children, even though there was no physical evidence. Results The prosecutor brought in an expert, who made a simple argument: the odds of SIDS are 1 in 8,53. Therefore, for two children: 1 in 73 million. The couple was convicted. Do you agree with the conviction? 3.3 Combining Priors with Observations Bayes theorem: x: unknown quantity of interest (in this class, usually the system state). p(x z) = p(z x) p(x) p(z) p(x): prior belief of state. z: observation related to state (usually a sensor measurement). p(z x): observation model: for a given state, what is the probability of observing z? p(x z): posterior belief of state: for a given observation, what is the probability that the state is x? p(z) = x p(z x) p(x), by the total probability theorem (here, for discrete random variables): probability of observation, essentially a normalization constant (does not depend on x). This is a systematic way of combining prior beliefs with observations. Question: If we observe the state x through z, doesn t that tell us the state directly? No! 1. Dimension: dim(z) usually smaller than dim(x). 2. Noise: p(z x) is not necessarily sharp. 2

3 Generalization to Multiple Observations We have N observations, each of which can be vector valued: z 1,..., z N. Often, we can assume conditional independence: p(z 1,..., z N x) = p(z 1 x) p(z N x) One interpretation: each measurement is a function of the state x corrupted by noise, and the noise is independent. Example: z i = g i (x, w i ); p(w 1,..., w N ) = p(w 1 ) p(w N ). Then: p(x z 1,..., z N ) = }} posterior Normalization: prior }} p(x) observation likelihood }} p(z i x) i p(z 1,..., z N ) }} normalization p(z 1,..., z N ) = x X p(x) i p(z i x) Example by the total probability theorem (here, for discrete random variables). Let the random variable z denote the outcome of N consecutive coin tosses. More specifically, we set z to be the number of times we observed heads. The coin might potentially be biased, but we have no prior information about the bias. We model the bias using the continuous random variable x, which we assume to be uniformly distributed in [, 1]. Given the bias x [, 1], heads occurs with probability x, whereas tails occurs with probability 1 x for a single coin toss. Calculate the posterior distribution of the coin bias, provided that we observed z heads in the N consecutive coin tosses. Given the bias x [, 1], the number of heads observed in N consecutive coin tosses is distributed according to a Binomial distribution. Hence, we have that ( ) N z x B(N, x), p z x ( z x) = x z (1 x) N z, z where ( ) N := z N! z!(n z)!. We can now use Bayes rule to infer the posterior distribution of the bias x. This leads to p x z ( x z) = p z x( z x) p x ( x) p z ( z) = ( N z ) x z (1 x) N z. p z ( z) 3

4 The normalization constant p z ( z) is independent of x and can be calculated by applying the total probability theorem, 1 1 ( ) ( ) N N z!(n z)! p z ( z) = p z x ( z λ) p x (λ) dλ = λ z (1 λ) N z dλ = z z (N + 1)!. The above integral can be evaluated using repeated integration by parts. This yields p x z ( x z) = (N + 1)! z!(n z)! x z (1 x) N z. We consider the special case when z = N, meaning that we observed N heads during the N consecutive coin tosses. The posterior probability density function of the bias reduces in that case to p x z ( x N) = (N + 1) x N. The probability density function p x z ( x N) is shown below. As N increases, the likelihood of having a coin with a bias towards heads increases. 1 p x z ( x N) 5 N = N = N = x We consider the case when z = N/2 and N is even. This represents the case that we observed N/2 heads and N/2 tails during the N coin tosses. The posterior probability density function of the bias reduces to p x z ( x N/2) = (N + 1)! ((N/2)!) 2 xn/2 (1 x) N/2 and is shown below. Note the symmetry around x = 1/2. 3 N = 1 p x z ( x N/2) 2 1 N = N = x

5 3. Solutions to Bayes Theorem Examples of Section Girls named Lulu Case 1: A family has two children. What is the probability that both are girls? Hopefully you said 1. (Assuming that the probability of a child being a boy or a girl is 1 2.) Case 2: A family has two children. Given that one of them is a girl, what is the probability that both are girls? The answer is 1 3, which can be seen as follows: Define: x = 1 : no boys in the family : boy in the family y = 1 : no girls in the family : girl in the family Then p x (1) = 1, p x() = 3, p y(1) = 1, p y() = 3 Therefore p x y (1 ) = p y x( 1)p x(1) p y() = = 1 3 Alternative approach: Generally, there are four possible gender combinations for the two children, which are all equally likely: (B,B), (B,G), (G,B), (G,G). Knowing that one of the children is a girl, only three options remain: (B,G), (G,B), (G,G). Therefore, the probability of (G,G) is 1 out of 3. Case 3: A family has two children. Given that one of them is a girl named Lulu, what is the probability that both are girls? Here, the key is that Lulu is an unusual name for a girl. Define: x = 1 : no boys in the family : boy in the family We want to know: p x y (1 ) = p y x( 1) p x (1) p y () y = 1 : no girl named Lulu in the family : one girl named Lulu in the family What is p y x ( 1)? Given that they are both girls, what is probability that there is a girl named Lulu in the family? Let r be the probability that someone names a girl Lulu, where we assume that r 1 (do you know anyone named Lulu?). Then consider the random variables c 1 and c 2, where c 1 refers to the first child, c 2 to the second child (note that we exclude the case that two girls in the same family are both named Lulu): c i = : not named Lulu 1 : named Lulu Therefore p y x ( 1) = 2r r 2 2r since r 1. c 1 c 2 p c1,c 2 x( c 1, c 2 1) (1 r)(1 r) 1 (1 r)r 1 r 1 1 How about p y (), the probability that there is a girl named Lulu in the family? Proceed similarly to above: 5

6 : boy c i = 1 : girl, not named Lulu 2 : girl, named Lulu c 1 c 2 p(c 1, c 2 ) (1 r) 2.25r 1.25(1 r) (1 r) r(1 r) 2.25r r 2 2 (Sanity check (sum):.25(1 + 1 r + r + 1 r + 1 2r + r 2 + r r 2 + 2r) =.25() = 1.) Therefore, p y () =.75r +.25r.25r 2 r. From the above, we get p x y (1 ) = p y x( 1) p x (1) p y () = (2r r2 ) 1 r 1 r2 2r 1 r 1 r = 1 2. Even though you can follow all the steps, the end result probably still seems wrong. An alternate, heuristic way to calculate this: assume 1 in 1 girls is named Lulu. Of 1, families with two children, 75, will have at least one girl: 5, will have a girl and a boy, and 25, will have two girls. Of the 5, girl/boy families, we expect 5 to have a girl named Lulu. Of the 25, girl/girl families, we expect 5 to have a girl named Lulu: 25 where the first-born is Lulu, 25 where the second born is Lulu. The probability is thus Disease diagnosis Define the following random variables: 1 : patient does not have cancer x = : patient has cancer y = 1 : test provides a negative result : test provides a positive result We want to know: We calculate p x y ( ) = p y x( ) p x (). p y () p y x ( ) =.9 (false negative rate = 1%), p x () =.8, and, using the total probability theorem p(y) = x p(y x) p(x), Therefore, we get p y () = p y x ( ) p x () + p y x ( 1) p x (1) p x y ( ) = = The probability is 9.%! Reason: most positive results are due to false positives. 6

7 3..3 Prosecutor s fallacy Problems with the conviction: The events are not independent. A more detailed study showed, chances of two cases of SIDS are 1 in 2.75 million however, these are still small odds. Inversion: the probability that two children die of SIDS is actually of no interest. What we want to know: (1) Given that two children have died, what is the probability that they died of SIDS? (2) Given that two children have died, what is the probability that they were murdered? These were calculated, and (1) is nine times more likely than (2). The conviction was eventually overturned. 7

Lecture Stat 302 Introduction to Probability - Slides 5

Lecture Stat 302 Introduction to Probability - Slides 5 Lecture Stat 302 Introduction to Probability - Slides 5 AD Jan. 2010 AD () Jan. 2010 1 / 20 Conditional Probabilities Conditional Probability. Consider an experiment with sample space S. Let E and F be

More information

CSC Discrete Math I, Spring Discrete Probability

CSC Discrete Math I, Spring Discrete Probability CSC 125 - Discrete Math I, Spring 2017 Discrete Probability Probability of an Event Pierre-Simon Laplace s classical theory of probability: Definition of terms: An experiment is a procedure that yields

More information

2 Chapter 2: Conditional Probability

2 Chapter 2: Conditional Probability STAT 421 Lecture Notes 18 2 Chapter 2: Conditional Probability Consider a sample space S and two events A and B. For example, suppose that the equally likely sample space is S = {0, 1, 2,..., 99} and A

More information

Probability and Probability Distributions. Dr. Mohammed Alahmed

Probability and Probability Distributions. Dr. Mohammed Alahmed Probability and Probability Distributions 1 Probability and Probability Distributions Usually we want to do more with data than just describing them! We might want to test certain specific inferences about

More information

Computational Perception. Bayesian Inference

Computational Perception. Bayesian Inference Computational Perception 15-485/785 January 24, 2008 Bayesian Inference The process of probabilistic inference 1. define model of problem 2. derive posterior distributions and estimators 3. estimate parameters

More information

1 INFO 2950, 2 4 Feb 10

1 INFO 2950, 2 4 Feb 10 First a few paragraphs of review from previous lectures: A finite probability space is a set S and a function p : S [0, 1] such that p(s) > 0 ( s S) and s S p(s) 1. We refer to S as the sample space, subsets

More information

Recursive Estimation

Recursive Estimation Recursive Estimation Raffaello D Andrea Spring 08 Problem Set : Bayes Theorem and Bayesian Tracking Last updated: March, 08 Notes: Notation: Unless otherwise noted, x, y, and z denote random variables,

More information

4.2 Probability Models

4.2 Probability Models 4.2 Probability Models Ulrich Hoensch Tuesday, February 19, 2013 Sample Spaces Examples 1. When tossing a coin, the sample space is S = {H, T }, where H = heads, T = tails. 2. When randomly selecting a

More information

Introduction to Bayesian Inference

Introduction to Bayesian Inference Introduction to Bayesian Inference p. 1/2 Introduction to Bayesian Inference September 15th, 2010 Reading: Hoff Chapter 1-2 Introduction to Bayesian Inference p. 2/2 Probability: Measurement of Uncertainty

More information

UNIT 5 ~ Probability: What Are the Chances? 1

UNIT 5 ~ Probability: What Are the Chances? 1 UNIT 5 ~ Probability: What Are the Chances? 1 6.1: Simulation Simulation: The of chance behavior, based on a that accurately reflects the phenomenon under consideration. (ex 1) Suppose we are interested

More information

With Question/Answer Animations. Chapter 7

With Question/Answer Animations. Chapter 7 With Question/Answer Animations Chapter 7 Chapter Summary Introduction to Discrete Probability Probability Theory Bayes Theorem Section 7.1 Section Summary Finite Probability Probabilities of Complements

More information

Conditional Probability

Conditional Probability Chapter 3 Conditional Probability 3.1 Definition of conditional probability In spite of our misgivings, let us persist with the frequency definition of probability. Consider an experiment conducted N times

More information

Discrete Structures for Computer Science

Discrete Structures for Computer Science Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #24: Probability Theory Based on materials developed by Dr. Adam Lee Not all events are equally likely

More information

Introduction: MLE, MAP, Bayesian reasoning (28/8/13)

Introduction: MLE, MAP, Bayesian reasoning (28/8/13) STA561: Probabilistic machine learning Introduction: MLE, MAP, Bayesian reasoning (28/8/13) Lecturer: Barbara Engelhardt Scribes: K. Ulrich, J. Subramanian, N. Raval, J. O Hollaren 1 Classifiers In this

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Lecture 6 (MWF) Conditional probabilities and associations Suhasini Subba Rao Review of previous lecture

More information

Quantitative Understanding in Biology 1.7 Bayesian Methods

Quantitative Understanding in Biology 1.7 Bayesian Methods Quantitative Understanding in Biology 1.7 Bayesian Methods Jason Banfelder October 25th, 2018 1 Introduction So far, most of the methods we ve looked at fall under the heading of classical, or frequentist

More information

P (E) = P (A 1 )P (A 2 )... P (A n ).

P (E) = P (A 1 )P (A 2 )... P (A n ). Lecture 9: Conditional probability II: breaking complex events into smaller events, methods to solve probability problems, Bayes rule, law of total probability, Bayes theorem Discrete Structures II (Summer

More information

Probability. Patrick Breheny. September 1. Events and probability Working with probabilities Additional theorems/rules Summary

Probability. Patrick Breheny. September 1. Events and probability Working with probabilities Additional theorems/rules Summary Probability Patrick Breheny September 1 Patrick Breheny University of Iowa Biostatistical Methods I (BIOS 5710) 1 / 52 Probability Events and probability Mathematical definitions Meaning and interpretation

More information

STOR 435 Lecture 5. Conditional Probability and Independence - I

STOR 435 Lecture 5. Conditional Probability and Independence - I STOR 435 Lecture 5 Conditional Probability and Independence - I Jan Hannig UNC Chapel Hill 1 / 16 Motivation Basic point Think of probability as the amount of belief we have in a particular outcome. If

More information

STOR Lecture 6. Conditional Probability and Independence - II

STOR Lecture 6. Conditional Probability and Independence - II STOR 435.001 Lecture 6 Conditional Probability and Independence - II Jan Hannig UNC Chapel Hill 1 / 30 Motivation: Conditional probability and mammograms https://plus.maths.org/content/understanding-uncertainty-breastscreening-statistical-controversy

More information

Lecture 4: Independent Events and Bayes Theorem

Lecture 4: Independent Events and Bayes Theorem Lecture 4: Independent Events and Bayes Theorem Independent Events Law of Total Probability Bayes Theorem Case Study: Prosecutor s Fallacy Dr. Shaobo Han, STA111: Probability and Statistical Inference

More information

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch Monty Hall Puzzle Example: You are asked to select one of the three doors to open. There is a large prize behind one of the doors and if you select that door, you win the prize. After you select a door,

More information

Chapter 7: Hypothesis Testing

Chapter 7: Hypothesis Testing Chapter 7: Hypothesis Testing *Mathematical statistics with applications; Elsevier Academic Press, 2009 The elements of a statistical hypothesis 1. The null hypothesis, denoted by H 0, is usually the nullification

More information

5.3 Conditional Probability and Independence

5.3 Conditional Probability and Independence 28 CHAPTER 5. PROBABILITY 5. Conditional Probability and Independence 5.. Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

More information

Probability, Statistics, and Bayes Theorem Session 3

Probability, Statistics, and Bayes Theorem Session 3 Probability, Statistics, and Bayes Theorem Session 3 1 Introduction Now that we know what Bayes Theorem is, we want to explore some of the ways that it can be used in real-life situations. Often the results

More information

Probability Notes (A) , Fall 2010

Probability Notes (A) , Fall 2010 Probability Notes (A) 18.310, Fall 2010 We are going to be spending around four lectures on probability theory this year. These notes cover approximately the first three lectures on it. Probability theory

More information

Lecture 1: Probability Fundamentals

Lecture 1: Probability Fundamentals Lecture 1: Probability Fundamentals IB Paper 7: Probability and Statistics Carl Edward Rasmussen Department of Engineering, University of Cambridge January 22nd, 2008 Rasmussen (CUED) Lecture 1: Probability

More information

Discrete Probability

Discrete Probability MAT 258 Discrete Mathematics Discrete Probability Kenneth H. Rosen and Kamala Krithivasan Discrete Mathematics 7E Global Edition Chapter 7 Reproduced without explicit consent Fall 2016 Week 11 Probability

More information

Probability II. Patrick Breheny. February 16. Basic rules (cont d) Advanced rules Summary

Probability II. Patrick Breheny. February 16. Basic rules (cont d) Advanced rules Summary Probability II Patrick Breheny February 16 Patrick Breheny University of Iowa Introduction to Biostatistics (BIOS 4120) 1 / 48 Balls in urns Basic rules (cont d) The multiplication rule Imagine a random

More information

1 Review of Probability

1 Review of Probability Review of Probability Denition : Probability Space The probability space, also called the sample space, is a set which contains ALL the possible outcomes We usually label this with a Ω or an S (Ω is the

More information

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio 4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio Wrong is right. Thelonious Monk 4.1 Three Definitions of

More information

Chapter 6. Probability

Chapter 6. Probability Chapter 6 robability Suppose two six-sided die is rolled and they both land on sixes. Or a coin is flipped and it lands on heads. Or record the color of the next 20 cars to pass an intersection. These

More information

ORF 245 Fundamentals of Statistics Chapter 5 Probability

ORF 245 Fundamentals of Statistics Chapter 5 Probability ORF 245 Fundamentals of Statistics Chapter 5 Probability Robert Vanderbei Oct 2015 Slides last edited on October 14, 2015 http://www.princeton.edu/ rvdb Sample Spaces (aka Populations) and Events When

More information

Quantitative Methods for Decision Making

Quantitative Methods for Decision Making January 14, 2012 Lecture 3 Probability Theory Definition Mutually exclusive events: Two events A and B are mutually exclusive if A B = φ Definition Special Addition Rule: Let A and B be two mutually exclusive

More information

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 15 Notes. Class URL:

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 15 Notes. Class URL: Notes slides from before lecture CSE 21, Winter 2017, Section A00 Lecture 15 Notes Class URL: http://vlsicad.ucsd.edu/courses/cse21-w17/ Notes slides from before lecture Notes March 6 (1) This week: Days

More information

lecture notes October 22, Probability Theory

lecture notes October 22, Probability Theory 8.30 lecture notes October 22, 203 Probability Theory Lecturer: Michel Goemans These notes cover the basic definitions of discrete probability theory, and then present some results including Bayes rule,

More information

BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES

BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES COMMON TERMS RELATED TO PROBABILITY Probability is the measure of the likelihood that an event will occur Probability values are

More information

1 of 14 7/15/2009 9:25 PM Virtual Laboratories > 2. Probability Spaces > 1 2 3 4 5 6 7 5. Independence As usual, suppose that we have a random experiment with sample space S and probability measure P.

More information

CS 441 Discrete Mathematics for CS Lecture 19. Probabilities. CS 441 Discrete mathematics for CS. Probabilities

CS 441 Discrete Mathematics for CS Lecture 19. Probabilities. CS 441 Discrete mathematics for CS. Probabilities CS 441 Discrete Mathematics for CS Lecture 19 Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Experiment: a procedure that yields one of the possible outcomes Sample space: a set of possible outcomes

More information

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias Recap Announcements Lecture 5: Statistics 101 Mine Çetinkaya-Rundel September 13, 2011 HW1 due TA hours Thursday - Sunday 4pm - 9pm at Old Chem 211A If you added the class last week please make sure to

More information

Announcements. Topics: To Do:

Announcements. Topics: To Do: Announcements Topics: In the Probability and Statistics module: - Sections 1 + 2: Introduction to Stochastic Models - Section 3: Basics of Probability Theory - Section 4: Conditional Probability; Law of

More information

Chapter Summary. 7.1 Discrete Probability 7.2 Probability Theory 7.3 Bayes Theorem 7.4 Expected value and Variance

Chapter Summary. 7.1 Discrete Probability 7.2 Probability Theory 7.3 Bayes Theorem 7.4 Expected value and Variance Chapter 7 Chapter Summary 7.1 Discrete Probability 7.2 Probability Theory 7.3 Bayes Theorem 7.4 Expected value and Variance Section 7.1 Introduction Probability theory dates back to 1526 when the Italian

More information

18.05 Problem Set 5, Spring 2014 Solutions

18.05 Problem Set 5, Spring 2014 Solutions 8.0 Problem Set, Spring 04 Solutions Problem. (0 pts.) (a) We know that y i ax i b = ε i N(0,σ ). y i = ε i + ax i + b N(ax i + b, σ ). That is, Therefore f(y i a, b, x i,σ)= e (y i ax i b) σ π σ. (b)

More information

Math 140 Introductory Statistics

Math 140 Introductory Statistics Math 140 Introductory Statistics Professor Silvia Fernández Lecture 8 Based on the book Statistics in Action by A. Watkins, R. Scheaffer, and G. Cobb. 5.1 Models of Random Behavior Outcome: Result or answer

More information

Lecture 4. August 24, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Lecture 4. August 24, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University. random Lecture 4 Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University August 24, 2007 random 1 2 3 4 random 5 6 7 8 9 random 1 Define random 2 and 3 4 Co

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10 Introduction to Basic Discrete Probability In the last note we considered the probabilistic experiment where we flipped

More information

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution Random Variable Theoretical Probability Distribution Random Variable Discrete Probability Distributions A variable that assumes a numerical description for the outcome of a random eperiment (by chance).

More information

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability Chapter 2 Conditional Probability and Independence 2.1 Conditional Probability Probability assigns a likelihood to results of experiments that have not yet been conducted. Suppose that the experiment has

More information

Sec$on Summary. Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability

Sec$on Summary. Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability Section 7.2 Sec$on Summary Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability Independence Bernoulli Trials and the Binomial Distribution Random Variables

More information

Refresher on Discrete Probability

Refresher on Discrete Probability Refresher on Discrete Probability STAT 27725/CMSC 25400: Machine Learning Shubhendu Trivedi University of Chicago October 2015 Background Things you should have seen before Events, Event Spaces Probability

More information

Random processes. Lecture 17: Probability, Part 1. Probability. Law of large numbers

Random processes. Lecture 17: Probability, Part 1. Probability. Law of large numbers Random processes Lecture 17: Probability, Part 1 Statistics 10 Colin Rundel March 26, 2012 A random process is a situation in which we know what outcomes could happen, but we don t know which particular

More information

Bibliography. The Drunkard s Walk: How Randomness Rules Our Lives by Leonard Mlodinow. Duelling Idiots and Other Probability Puzzlers by Paul J.

Bibliography. The Drunkard s Walk: How Randomness Rules Our Lives by Leonard Mlodinow. Duelling Idiots and Other Probability Puzzlers by Paul J. Bibliography The Drunkard s Walk: How Randomness Rules Our Lives by Leonard Mlodinow Duelling Idiots and Other Probability Puzzlers by Paul J. Nahin The History of mathematics by David M. Burton Is God

More information

Security Analytics. Topic 3: Review of Probability. Purdue University Prof. Ninghui Li Based on slides by Prof. Jenifer Neville and Chris Clifton

Security Analytics. Topic 3: Review of Probability. Purdue University Prof. Ninghui Li Based on slides by Prof. Jenifer Neville and Chris Clifton Security Analytics Topic 3: Review of Probability Purdue University Prof. Ninghui Li Based on slides by Prof. Jenifer Neville and Chris Clifton Readings Chapter 4 Data Analysis and Uncertainty Sections

More information

Terminology. Experiment = Prior = Posterior =

Terminology. Experiment = Prior = Posterior = Review: probability RVs, events, sample space! Measures, distributions disjoint union property (law of total probability book calls this sum rule ) Sample v. population Law of large numbers Marginals,

More information

Lecture 3. January 7, () Lecture 3 January 7, / 35

Lecture 3. January 7, () Lecture 3 January 7, / 35 Lecture 3 January 7, 2013 () Lecture 3 January 7, 2013 1 / 35 Outline This week s lecture: Fast review of last week s lecture: Conditional probability. Partition, Partition theorem. Bayes theorem and its

More information

AMS7: WEEK 2. CLASS 2

AMS7: WEEK 2. CLASS 2 AMS7: WEEK 2. CLASS 2 Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio Friday April 10, 2015 Probability: Introduction Probability:

More information

Bayesian Inference. Introduction

Bayesian Inference. Introduction Bayesian Inference Introduction The frequentist approach to inference holds that probabilities are intrinsicially tied (unsurprisingly) to frequencies. This interpretation is actually quite natural. What,

More information

9. DISCRETE PROBABILITY DISTRIBUTIONS

9. DISCRETE PROBABILITY DISTRIBUTIONS 9. DISCRETE PROBABILITY DISTRIBUTIONS Random Variable: A quantity that takes on different values depending on chance. Eg: Next quarter s sales of Coca Cola. The proportion of Super Bowl viewers surveyed

More information

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B). Lectures 7-8 jacques@ucsdedu 41 Conditional Probability Let (Ω, F, P ) be a probability space Suppose that we have prior information which leads us to conclude that an event A F occurs Based on this information,

More information

7.1 What is it and why should we care?

7.1 What is it and why should we care? Chapter 7 Probability In this section, we go over some simple concepts from probability theory. We integrate these with ideas from formal language theory in the next chapter. 7.1 What is it and why should

More information

Math 140 Introductory Statistics

Math 140 Introductory Statistics 5. Models of Random Behavior Math 40 Introductory Statistics Professor Silvia Fernández Chapter 5 Based on the book Statistics in Action by A. Watkins, R. Scheaffer, and G. Cobb. Outcome: Result or answer

More information

What is the probability of getting a heads when flipping a coin

What is the probability of getting a heads when flipping a coin Chapter 2 Probability Probability theory is a branch of mathematics dealing with chance phenomena. The origins of the subject date back to the Italian mathematician Cardano about 1550, and French mathematicians

More information

Selected problems from past exams and a few additional problems

Selected problems from past exams and a few additional problems Discrete Structures CS2800 Prelim 1 sample questions s Selected problems from past exams and a few additional problems 1. Compute (10101) 2 + (101) 2. Express your answer in both binary and decimal. There

More information

Baye s theorem. Baye s Theorem Let E and F be two possible events of an experiment, then P (F ) P (E F ) P (F ) P (E F ) + P (F ) P (E F ).

Baye s theorem. Baye s Theorem Let E and F be two possible events of an experiment, then P (F ) P (E F ) P (F ) P (E F ) + P (F ) P (E F ). Baye s Theorem Assume that you know the probability that a child will be born with blond hair given that both his parents have blond hair. You might also be interested in knowing the probability that a

More information

4. Conditional Probability

4. Conditional Probability 1 of 13 7/15/2009 9:25 PM Virtual Laboratories > 2. Probability Spaces > 1 2 3 4 5 6 7 4. Conditional Probability Definitions and Interpretations The Basic Definition As usual, we start with a random experiment

More information

Today we ll discuss ways to learn how to think about events that are influenced by chance.

Today we ll discuss ways to learn how to think about events that are influenced by chance. Overview Today we ll discuss ways to learn how to think about events that are influenced by chance. Basic probability: cards, coins and dice Definitions and rules: mutually exclusive events and independent

More information

Conditional probability

Conditional probability CHAPTER 4 Conditional probability 4.1. Introduction Suppose there are 200 men, of which 100 are smokers, and 100 women, of which 20 are smokers. What is the probability that a person chosen at random will

More information

CS 540: Machine Learning Lecture 2: Review of Probability & Statistics

CS 540: Machine Learning Lecture 2: Review of Probability & Statistics CS 540: Machine Learning Lecture 2: Review of Probability & Statistics AD January 2008 AD () January 2008 1 / 35 Outline Probability theory (PRML, Section 1.2) Statistics (PRML, Sections 2.1-2.4) AD ()

More information

ORF 245 Fundamentals of Statistics Chapter 1 Probability

ORF 245 Fundamentals of Statistics Chapter 1 Probability ORF 245 Fundamentals of Statistics Chapter 1 Probability Robert Vanderbei Sept 2014 Slides last edited on September 19, 2014 http://www.princeton.edu/ rvdb Course Info Prereqs: Textbook: Three semesters

More information

Introduction and basic definitions

Introduction and basic definitions Chapter 1 Introduction and basic definitions 1.1 Sample space, events, elementary probability Exercise 1.1 Prove that P( ) = 0. Solution of Exercise 1.1 : Events S (where S is the sample space) and are

More information

Problems and results for the ninth week Mathematics A3 for Civil Engineering students

Problems and results for the ninth week Mathematics A3 for Civil Engineering students Problems and results for the ninth week Mathematics A3 for Civil Engineering students. Production line I of a factor works 0% of time, while production line II works 70% of time, independentl of each other.

More information

An AI-ish view of Probability, Conditional Probability & Bayes Theorem

An AI-ish view of Probability, Conditional Probability & Bayes Theorem An AI-ish view of Probability, Conditional Probability & Bayes Theorem Review: Uncertainty and Truth Values: a mismatch Let action A t = leave for airport t minutes before flight. Will A 15 get me there

More information

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty.

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty. An AI-ish view of Probability, Conditional Probability & Bayes Theorem Review: Uncertainty and Truth Values: a mismatch Let action A t = leave for airport t minutes before flight. Will A 15 get me there

More information

Introduction to Machine Learning

Introduction to Machine Learning Introduction to Machine Learning CS4375 --- Fall 2018 Bayesian a Learning Reading: Sections 13.1-13.6, 20.1-20.2, R&N Sections 6.1-6.3, 6.7, 6.9, Mitchell 1 Uncertainty Most real-world problems deal with

More information

Probability Distributions. Conditional Probability.

Probability Distributions. Conditional Probability. Probability Distributions. Conditional Probability. CSE21 Winter 2017, Day 21 (B00), Day 14 (A00) March 6, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Probability Rosen p. 446, 453 Sample space, S:

More information

A.I. in health informatics lecture 2 clinical reasoning & probabilistic inference, I. kevin small & byron wallace

A.I. in health informatics lecture 2 clinical reasoning & probabilistic inference, I. kevin small & byron wallace A.I. in health informatics lecture 2 clinical reasoning & probabilistic inference, I kevin small & byron wallace today a review of probability random variables, maximum likelihood, etc. crucial for clinical

More information

6.867 Machine Learning

6.867 Machine Learning 6.867 Machine Learning Problem set 1 Due Thursday, September 19, in class What and how to turn in? Turn in short written answers to the questions explicitly stated, and when requested to explain or prove.

More information

Discrete Probability and State Estimation

Discrete Probability and State Estimation 6.01, Fall Semester, 2007 Lecture 12 Notes 1 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science 6.01 Introduction to EECS I Fall Semester, 2007 Lecture 12 Notes

More information

COMP61011! Probabilistic Classifiers! Part 1, Bayes Theorem!

COMP61011! Probabilistic Classifiers! Part 1, Bayes Theorem! COMP61011 Probabilistic Classifiers Part 1, Bayes Theorem Reverend Thomas Bayes, 1702-1761 p ( T W ) W T ) T ) W ) Bayes Theorem forms the backbone of the past 20 years of ML research into probabilistic

More information

Week 3 Sept. 17 Sept. 21

Week 3 Sept. 17 Sept. 21 Week 3 Sept. 7 Sept. 2 Lecture 6. Bu on s needle Review: Last week, the sample space is R or a subset of R. Let X be a random variable with X 2 R. The cumulative distribution function (cdf) is de ned as

More information

Introduction to Machine Learning

Introduction to Machine Learning Uncertainty Introduction to Machine Learning CS4375 --- Fall 2018 a Bayesian Learning Reading: Sections 13.1-13.6, 20.1-20.2, R&N Sections 6.1-6.3, 6.7, 6.9, Mitchell Most real-world problems deal with

More information

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun ECE 340 Probabilistic Methods in Engineering M/W 3-4:15 Lecture 2: Random Experiments Prof. Vince Calhoun Reading This class: Section 2.1-2.2 Next class: Section 2.3-2.4 Homework: Assignment 1: From the

More information

Probability Distributions. Conditional Probability

Probability Distributions. Conditional Probability Probability Distributions. Conditional Probability Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck http://cseweb.ucsd.edu/classes/sp16/cse21-bd/ May 16, 2016 In probability, we want to

More information

Philosophy 148 Announcements & Such. Independence, Correlation, and Anti-Correlation 1

Philosophy 148 Announcements & Such. Independence, Correlation, and Anti-Correlation 1 Branden Fitelson Philosophy 148 Lecture 1 Branden Fitelson Philosophy 148 Lecture 2 Philosophy 148 Announcements & Such Independence, Correlation, and Anti-Correlation 1 Administrative Stuff Raul s office

More information

Some Probability and Statistics

Some Probability and Statistics Some Probability and Statistics David M. Blei COS424 Princeton University February 12, 2007 D. Blei ProbStat 01 1 / 42 Who wants to scribe? D. Blei ProbStat 01 2 / 42 Random variable Probability is about

More information

Probability is related to uncertainty and not (only) to the results of repeated experiments

Probability is related to uncertainty and not (only) to the results of repeated experiments Uncertainty probability Probability is related to uncertainty and not (only) to the results of repeated experiments G. D Agostini, Probabilità e incertezze di misura - Parte 1 p. 40 Uncertainty probability

More information

Probability Rules. MATH 130, Elements of Statistics I. J. Robert Buchanan. Fall Department of Mathematics

Probability Rules. MATH 130, Elements of Statistics I. J. Robert Buchanan. Fall Department of Mathematics Probability Rules MATH 130, Elements of Statistics I J. Robert Buchanan Department of Mathematics Fall 2018 Introduction Probability is a measure of the likelihood of the occurrence of a certain behavior

More information

Probability in Programming. Prakash Panangaden School of Computer Science McGill University

Probability in Programming. Prakash Panangaden School of Computer Science McGill University Probability in Programming Prakash Panangaden School of Computer Science McGill University Two crucial issues Two crucial issues Correctness of software: Two crucial issues Correctness of software: with

More information

Brief Review of Probability

Brief Review of Probability Brief Review of Probability Nuno Vasconcelos (Ken Kreutz-Delgado) ECE Department, UCSD Probability Probability theory is a mathematical language to deal with processes or experiments that are non-deterministic

More information

2 TWO OR MORE RANDOM VARIABLES

2 TWO OR MORE RANDOM VARIABLES 2 TWO OR MORE RANDOM VARIABLES Many problems in probability theory relate to two or more random variables. You might have equipment which is controlled by two computers and you are interested in knowing

More information

Question Bank In Mathematics Class IX (Term II)

Question Bank In Mathematics Class IX (Term II) Question Bank In Mathematics Class IX (Term II) PROBABILITY A. SUMMATIVE ASSESSMENT. PROBABILITY AN EXPERIMENTAL APPROACH. The science which measures the degree of uncertainty is called probability.. In

More information

COMP 551 Applied Machine Learning Lecture 19: Bayesian Inference

COMP 551 Applied Machine Learning Lecture 19: Bayesian Inference COMP 551 Applied Machine Learning Lecture 19: Bayesian Inference Associate Instructor: (herke.vanhoof@mcgill.ca) Class web page: www.cs.mcgill.ca/~jpineau/comp551 Unless otherwise noted, all material posted

More information

MATH1231 Algebra, 2017 Chapter 9: Probability and Statistics

MATH1231 Algebra, 2017 Chapter 9: Probability and Statistics MATH1231 Algebra, 2017 Chapter 9: Probability and Statistics A/Prof. Daniel Chan School of Mathematics and Statistics University of New South Wales danielc@unsw.edu.au Daniel Chan (UNSW) MATH1231 Algebra

More information

Info 2950, Lecture 4

Info 2950, Lecture 4 Info 2950, Lecture 4 7 Feb 2017 More Programming and Statistics Boot Camps? This week (only): PG Wed Office Hour 8 Feb at 3pm Prob Set 1: due Mon night 13 Feb (no extensions ) Note: Added part to problem

More information

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability Chapter 2 Conditional Probability and Independence 2.1 Conditional Probability Example: Two dice are tossed. What is the probability that the sum is 8? This is an easy exercise: we have a sample space

More information

Probability: Why do we care? Lecture 2: Probability and Distributions. Classical Definition. What is Probability?

Probability: Why do we care? Lecture 2: Probability and Distributions. Classical Definition. What is Probability? Probability: Why do we care? Lecture 2: Probability and Distributions Sandy Eckel seckel@jhsph.edu 22 April 2008 Probability helps us by: Allowing us to translate scientific questions into mathematical

More information

Exam 1 Review With Solutions Instructor: Brian Powers

Exam 1 Review With Solutions Instructor: Brian Powers Exam Review With Solutions Instructor: Brian Powers STAT 8, Spr5 Chapter. In how many ways can 5 different trees be planted in a row? 5P 5 = 5! =. ( How many subsets of S = {,,,..., } contain elements?

More information

Contents. Decision Making under Uncertainty 1. Meanings of uncertainty. Classical interpretation

Contents. Decision Making under Uncertainty 1. Meanings of uncertainty. Classical interpretation Contents Decision Making under Uncertainty 1 elearning resources Prof. Ahti Salo Helsinki University of Technology http://www.dm.hut.fi Meanings of uncertainty Interpretations of probability Biases in

More information

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010 Outline Math 143 Department of Mathematics and Statistics Calvin College Spring 2010 Outline Outline 1 Review Basics Random Variables Mean, Variance and Standard Deviation of Random Variables 2 More Review

More information

Intelligent Systems: Reasoning and Recognition. Reasoning with Bayesian Networks

Intelligent Systems: Reasoning and Recognition. Reasoning with Bayesian Networks Intelligent Systems: Reasoning and Recognition James L. Crowley ENSIMAG 2 / MoSIG M1 Second Semester 2016/2017 Lesson 13 24 march 2017 Reasoning with Bayesian Networks Naïve Bayesian Systems...2 Example

More information