# Conditional Probability, Independence and Bayes Theorem Class 3, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Save this PDF as:

Size: px
Start display at page:

Download "Conditional Probability, Independence and Bayes Theorem Class 3, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom"

## Transcription

1 Conditional Probability, Independence and Bayes Theorem Class 3, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom 1 Learning Goals 1. Know the definitions of conditional probability and independence of events. 2. Be able to compute conditional probability directly from the definition. 3. Be able to use the multiplication rule to compute the total probability of an event. 4. Be able to check if two events are independent. 5. Be able to use Bayes formula to invert conditional probabilities. 6. Be able to organize the computation of conditional probabilities using trees and tables. 7. Understand the base rate fallacy thoroughly. 2 Conditional Probability Conditional probability answers the question how does the probability of an event change if we have extra information. We ll illustrate with an example. Example 1. Toss a fair coin 3 times. a) What is the probability of 3 heads? answer: Sample space Ω = {HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}. All outcomes are equally likely, so P (3 heads) = 1/8. b) Suppose we are told that the first toss was heads. Given this information how should we compute the probability of 3 heads? answer: We have a new (reduced) sample space: Ω ' = {HHH,HHT,HTH,HTT}. All outcomes are equally likely, so P (3 heads given that the first toss is heads) = 1/4. This is called conditional probability, since it takes into account additional conditions. To develop the notation, we rephrase (b) in terms of events. b) Let A be the event all three tosses are heads = {HHH}. Let B be the event the first toss is heads = {HHH,HHT,HTH,HTT}. The conditional probability of A knowing that B occurred is written P (A B) This is read as the conditional probability of A given B or the probability of A conditioned on B or simply the probability of A given B. We can visualize conditional probability as follows. Think of P (A) as the proportion of the area of the whole sample space taken up by A. For P (A B) we restrict our attention to B. That is, P (A B) is the proportion of area of B taken up by A, i.e. P (A B)/P (B).

2 2 B A B A Conditional probability: Abstract visualization and coin example Note, A B in the right-hand figure, so there are only two colors shown. The formal definition of conditional probability catches the gist of the above example and visualization. Formal definition of conditional probability Let A and B be events. We define the conditional probability of A given B as P (A B) P (A B) =, provided P (B) =0. (1) P (B) Let s redo the coin tossing example using this definition (1). Recall A = 3heads and B = first toss is heads. We have P (A) =1/8 and P (B) =1/2. Since A B = A, we also 1/8 have P (A B) =1/8. Now according to (1), P (A B) = 1/2 =1/4, which agrees with our answer in example (1b). 3 Multiplication Rule The following formula is called the multiplication rule. P (A B) = P (A B) P (B). (2) This is simply a rewriting of the definition (1) of conditional probability. We will see that our use of the multiplication rule is very similar to our use of the rule of product. In fact, the multiplication rule is just a souped up version of the rule of product. We start with a simple example where we can check all the probabilities directly by counting. Example 2. Draw two cards from a deck. Let S 1 = first card is a spade. Let S 2 = second card is a spade. What is the P (S 2 S 1 )? answer: We can do this directly by counting: if the first card is a spade then of the 51 cards remaining, 12 are spades. P (S 2 S 1 )=12/51. Now, let s recompute this using formula (1). We have to compute P (S 1 ), P (S 2 ) and P (S 1 S 2 ): P (S 1 )=1/4 because there are 52 equally likely ways to draw the first card and 13 of them are spades.

3 3 P (S 2 )=1/4: this follows by exactly the same logic as for P (S 1 ). This may seem surprising since we know that the value of first card affects the probabilities for the second card. However, if we look at all possible two card sequences we will see that every card in the deck has equal probability of being the second card. Since 13 of the 52 cards are spades we get P (S 2 )=13/52 = 1/4. P (S 1 S 2 )= =3/51: This is found by counting the number of ways to draw a spade followed by a second spade and dividing by the number of ways to draw any card followed by any other card). Now, using (1) we get P (S 2 S 1 ) 3/51 P (S 2 S 1 )= = =12/51. P (S 1 ) 1/4 Finally, we verify the multiplication rule by computing both sides of (2) P (S 1 S 2 )= = and P (S 2 S 1 ) P (S 1 )= =. QED Think: What is P (S 2 S 1 c )? 4 Law of Total Probability The law of total probability will allow us to use the multiplication rule to find probabilities in more interesting examples. It involves a lot of notation, but the idea is fairly simple. We show the law when the sample space is divided into 3 pieces. It is a simple matter to extend the rule when there are more than 3 pieces. Law of Total Probability Suppose the sample space Ω is divided into 3 disjoint events B 1, B 2, B 3 (see the figure below). Then for any event A: P (A) = P (A B 1 )+ P (A B 2 )+ P (A B 3 ) P (A) = P (A B 1 ) P (B 1 )+ P (A B 2 ) P (B 2 )+ P (A B 3 ) P (B 3 ) (3) The top equation says if A is divided into 3 pieces then P (A) is the sum of the probabilities of the pieces. The bottom equation (3) is called the law of total probability. It is just a rewriting of the top using the multiplication rule. Ω

4 4 The sample space Ω and the event A are each divided into 3 disjoint pieces. The law holds if we divide Ω into any number of events, so long as they are disjoint and cover all of Ω. Such a division is often called a partition of Ω. Our first example will be one where we already know the answer and can verify the law. Example 3. An urn contains 5 red balls and 2 green balls. Two balls are drawn one after the other. What is the probability that the second ball is red? answer: The sample space is Ω = {rr, rg, gr, gg}. Let R 1 be the event the first ball is red, G 1 = first ball is green, R 2 = second ball is red, G 2 = second ball is green. We are asked to find P (R 2 ). The fast way to compute this is just like P (S 2 ) in the card example above. Every ball is equally likely to be the second ball. Since 5 out of 7 balls are red, P (R 2 )=5/7. Let s compute this same value using the law of total probability (3). First, we ll find the conditional probabilities. This is a simple counting exercise. P (R 2 R 1 )=4/6, P (R 2 G 1 )=5/6. Since R 1 and G 1 partition Ω the law of total probability says Probability urns P (R 2 )= P (R 2 R 1 )P (R 1 )+ P (R 2 G 1 )P (G 1 ) (4) = = = The example above used probability urns. Their use goes back to the beginning of the subject and we would be remiss not to introduce them. This toy model is very useful. We quote from Wikipedia: In probability and statistics, an urn problem is an idealized mental exercise in which some objects of real interest (such as atoms, people, cars, etc.) are represented as colored balls in an urn or other container. One pretends to draw (remove) one or more balls from the urn; the goal is to determine the probability of drawing one color or another, or some other properties. A key parameter is whether each ball is returned to the urn after each draw. It doesn ttakemuchtomakeanexample where(3) is really thebest waytocomputethe probability. Example 4. An urn contains 5 red balls and 2 green balls. A ball is drawn. If it s green a red ball is added to the urn and if it s red a green ball is added to the urn. (The original ball is not returned to the urn.) Then a second ball is drawn. What is the probability the second ball is red? answer: The law of total probability says that P (R 2 ) can be computed using the expression in Equation (4). Only the values for the probabilities will change. We have P (R 2 R 1 )=4/7, P (R 2 G 1 )=6/7.

5 5 Therefore, P (R 2 )= P (R 2 R 1 )P (R 1 )+ P (R 2 G 1 )P (G 1 )= + = Using Trees to Organize the Computation Trees are a great way to organize computations with conditional probability and the law of total probability. The figures and examples will make clear what we mean by a tree. As with the rule of product, the key is to organize the underlying process into a sequence of actions. We start by redoing Example 4. The sequence of actions are: first draw ball 1 (and add the appropriate ball to the urn) and then draw ball 2. 5/7 2/7 R 1 G 1 4/7 3/7 6/7 1/7 R 2 G 2 R 2 G 2 You interpret this tree as follows. Each dot is called a node. The tree is organized by levels. The top node (root node) is at level 0. The next layer down is level 1 and so on. Each level shows the outcomes at one stage of the game. Level 1 shows the possible outcomes of the first draw. Level 2 shows the possible outcomes of the second draw starting from each node in level 1. Probabilities are written along the branches. The probability of R 1 (red on the first draw) is 5/7. It is written along the branch from the root node to the one labeled R 1. At the next level we put in conditional probabilities. The probability along the branch from R 1 to R 2 is P (R 2 R 1 )=4/7. It represents the probability of going to node R 2 given that you are already at R 1. The muliplication rule says that the probability of getting to any node is just the product of the probabilities along the path to get there. For example, the R 2 node at the far left 4 represents the event R 1 R 2 and P (R 1 R 2 )= P (R 1 ) P (R 2 R 1 )= The law of total probability is just the statement that P (R 2 ) is the sum of the probabilities of all paths leading to R 2 (the two circled nodes in the figure). In this case, exactly as in the previous example P (R 2 )= + =, Shorthand vs. precise trees The tree given above involves some shorthand. For example, the node marked R 2 at the far left really represents the event R 1 R 2, since it ends the path from the root through R 1 to R 2. Here is the same tree with everything labeled precisely. As you can see this tree

6 6 is more cumbersome to make and use. We usually use the shorthand version of trees. You should make sure you know how to interpret them precisely. P (R 1 )=5/7 P (G 1 )=2/7 R 1 G 1 P (R 2 R 1 )=4/7 P (G 2 R 1 )=3/7 P (R 2 G 1 )=6/7 P (G 2 G 1 )=1/7 R 1 R 2 R 1 G 2 G 1 R 2 G 1 G 2 6 Independence Two events are independent if knowledge that one occurred does not change the probability that the other occurred. Informally, events are independent if they do not influence one another. Example 5. Toss a coin twice. We expect the outcomes of the two tosses to be independent of one another. In real experiments this always has to be checked. If my coin lands in honey and I don t bother to clean it, then the second toss might be affected by the outcome of the first toss. More seriously, the independence of experiments can by undermined by the failure to clean or recalibrate equipment between experiments or to isolate supposedly independent observers from each other or a common influence. We ve all experienced hearing the same fact from different people. Hearing it from different sources tends to lend it credence until we learn that they all heard it from a common source. That is, our sources were not independent. Translating the verbal description of independence into symbols gives A is independent of B if P (A B) = P (A). That is, knowing that B occurred does not change the probability that A occurred. In terms of events as subsets, knowing that the realized outcome is in B does not change the probability that it is in A. If A and B are independent in the above sense, then the multiplication rule gives P (A B) = P (A B) P (B) = P (A) P (B). This justifies the following technical definition of independence. Formal definition of independence: Two events A and B are independent if P (A B) = P (A) P (B) (5) This is a nice symmetric definition which makes clear that A is independent of B if and only if B is independent of A. Unlike the equation with conditional probabilities, this definition makes sense even when P (B) = 0. In terms of conditional probabilities, we have: 1. If P (B) = 0 then A and B are independent if and only if P (A B) = P (A). 2. If P (A) = 0 then A and B are independent if and only if P (B A) = P (B). Independent events commonly arise as different trials in an experiment, as in the following example.

7 7 Example 6. Toss a fair coin twice. 1. Let H 1 = heads on first toss and let H 2 = heads on second toss. Since P (H 1 H 2 )= = 4, the events are independent. However we can ask about the independence of any two events, as in the following two examples. Example 7. Toss a fair coin 3 times. Let H 1 = heads on first toss, A = two heads total. We know P (A) =3/8. We have H 1 = {HHH, HHT, HTH, HTT}, so P (A H 1 )=2/4. Since P (A H 1 ) = P (A) the events are not independent. Example 8. Draw a card from a deck. Let s examine the independence of 3 events the card is an ace, the card is a heart and the card is red. a) Because each ace is equally likely and each suit is equally likely it makes intuitive sense that whether the card is a heart is independent of whether it s an ace. Let s show this formally. Define the events A = ace, H = hearts. We know P (A) =4/52 = 1/13, P (A H) =1/13. Since P (A) = P (A H) wehavethat A is independent of H. b) Now define the event R = red. P (A R) =2/26 = 1/13. So A is independent of R. That is, whether the card is an ace is independent of whether it s red. c) What about H and R? Since P (H) =1/4 and P (H R) =1/2, H and R are not independent. We can also see this the other way around: P (R) =1/2 and P (R H) =1, so H and R are not independent. 6.1 Paradoxes of Independence An event A with probability 0 is independent of itself, since in this case both sides of equation (5) are 0. This appears paradoxical because knowledge that A occurred certainly gives information about whether A occurred. We resolve the paradox by noting that since P (A) = 0 the statement A occurred is vacuous. Think: For what other value(s) of P (A) is A independent of itself? 7 Bayes Theorem Bayes theorem is a pillar of both probability and statistics and central to the rest of this course. For two events A and B Bayes theorem (also called Bayes rule and Bayes formula) says P (A B) P (B) P (B A) =. (6) P (A) Comments: 1. Bayes rule tells us how to invert conditional probabilities, i.e. to find

8 8 P (B A) from P (A B). 2. In practice, P (A) is often computed using the law of total probability. Proof of Bayes rule Thekey pointisthat A B is symmetric in A and B. So the multiplication rule says P (B A) P (A) = P (A B) = P (A B) P (B). Now divide through by P (A) toget Bayes rule. A common mistake is to confuse P (A B) and P (B A). They can be very different. This is illustrated in the next example. Example 9. Toss a coin 5 times. Let H 1 = first toss is heads and let H A = all 5 tosses are heads. Then P (H 1 H A ) = 1 but P (H A H 1 )=1/16. For practice, let s check this with Bayes theorem. The terms are P (H A H 1 ) = 1/16, P (H 1 )=1/2, P (H A )=1/32. So, P (H A H 1 )P (H 1 ) (1/16) (1/2) P (H 1 H A )= = =1. P (H A ) 1/ TheBaseRateFallacy The base rate fallacy is one of many examples showing that it s easy to confuse the meaning of P (B A) and P (A B) when a situation is described in words. This is one of the key examples from probability and it will inform much of our practice and interpretation of statistics. You should strive to understand it thoroughly. Example 10. The Base Rate Fallacy Consider a routine screening test for a disease. Suppose the frequency of the disease in the population (base rate) is 0.5%. The test is highly accurate with a 5% false positive rate and a 10% false negative rate. You take the test and it comes back positive. What is the probability that you have the disease? answer: We will do the computation three times: using trees, tables and symbols. We ll use the following notation for the relevant events: D+ = you have the disease D = you do not have the disease T + = you tested positive T = you tested negative. We are given P (D+) =.005 and therefore P (D ) =.995. The false positive and false negative rates are (by definition) conditional probabilities. P (false positive) = P (T + D ) =.05 and P (false negative) = P (T D+) =.1. The complementary probabilities are known as the true negative and true positive rates: P (T D ) =1 P (T + D ) =.95 and P (T + D+) = 1 P (T D+) =.9. Trees: All of these probabilities can be displayed quite nicely in a tree.

9 9.995 D D+.9.1 T + T T + T The question asks for the probability that you have the disease given that you tested positive, i.e. what is the value of P (D+ T +). We aren t given this value, but we do know P (T + D+), so we can use Bayes theorem. P (T + D+) P (D+) P (D + T +) =. P (T +) The two probabilities in the numerator are given. We compute the denominator P (T +) using the law of total probability. Using the tree we just have to sum the probabilities for each of the nodes marked T + Thus, P (T +) = = P (D + T +) = = % Remarks: This is called the base rate fallacy because the base rate of the disease in the population is so low that the vast majority of the people taking the test are healthy, and even with an accurate test most of the positives will be healthy people. Ask your doctor for his/her guess at the odds. To summarize the base rate fallacy with specific numbers 95% of all tests are accurate does not imply 95% of positive tests are accurate We will refer back to this example frequently. It and similar examples are at the heart of many statistical misunderstandings. Other ways to work Example 10 Tables: Another trick that is useful for computing probabilities is to make a table. Let s redo the previous example using such a table. D+ D total T T total From the table, we see there are 45 sick people who tested positive, and 543 people in total who tested positive. We construct the table as follows. Pick a number, say people, and place it as the grand total in the lower right. Using P (D+) =.005 we can fill in the number out of the who are sick (D+), likewise healthy (D ). D+ D total T + T total

10 10 Using P (T + D+) =.9 we can compute the number of sick people who tested positive as.9 50 = 45. Likewise for the other entries. D+ D total T T total Now we can add up the first (resp., second) row to get the total number people who tested positive (resp.,negative). This gives the full table at the top of the page. Using the complete table we can compute P (D + T +) = D + T + = 45 =8.3%. T = Symbols: For completeness, we show how the solution looks when written out directly in symbols. P (T + D+) P (D+) P (D + T +) = P (T +) P (T + D+) P (D+) = P (T + D+) P (D+) + P (T + D ) P (D ) = = =8.3% Visualization: The figure below illustrates the base rate fallacy. The large blue area represents all the healthy people. The much smaller red area represents the sick people. The shaded rectangle represents the the people who test positive. The shaded area covers most of the red area and only a small part of the blue area. Even so, the most of the shaded area is over the blue. That is, most of the positive tests are of healthy people. D D+ 7.2 Bayes rule in As we said at the start of this section, Bayes rule is a pillar of probability and statistics. We have seen that Bayes rule allows us to invert conditional probabilities. When we learn statistics we will see that the art of statistical inference involves deciding how to proceed when one (or more) of the terms on the right side of Bayes rule is unknown.

### Probability: Terminology and Examples Class 2, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Probability: Terminology and Examples Class 2, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom 1 Learning Goals 1. Know the definitions of sample space, event and probability function. 2. Be able to

### Bayesian Updating with Discrete Priors Class 11, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

1 Learning Goals Bayesian Updating with Discrete Priors Class 11, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom 1. Be able to apply Bayes theorem to compute probabilities. 2. Be able to identify

### 6.3 Conditional Probability and Independence

222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

### Topic 6: Conditional Probability and Independence

Topic 6: September 15-20, 2011 One of the most important concepts in the theory of probability is based on the question: How do we modify the probability of an event in light of the fact that something

### Chapter 15. Definitions: experiment: is the act of making an observation or taking a measurement.

MATH 11008: Probability Chapter 15 Definitions: experiment: is the act of making an observation or taking a measurement. outcome: one of the possible things that can occur as a result of an experiment.

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 11

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note Conditional Probability A pharmaceutical company is marketing a new test for a certain medical condition. According

### Lesson 1. Basics of Probability. Principles of Mathematics 12: Explained! www.math12.com 314

Lesson 1 Basics of Probability www.math12.com 314 Sample Spaces: Probability Lesson 1 Part I: Basic Elements of Probability Consider the following situation: A six sided die is rolled The sample space

### Probability. A random sample is selected in such a way that every different sample of size n has an equal chance of selection.

1 3.1 Sample Spaces and Tree Diagrams Probability This section introduces terminology and some techniques which will eventually lead us to the basic concept of the probability of an event. The Rare Event

### Bayesian Tutorial (Sheet Updated 20 March)

Bayesian Tutorial (Sheet Updated 20 March) Practice Questions (for discussing in Class) Week starting 21 March 2016 1. What is the probability that the total of two dice will be greater than 8, given that

### STAB47S:2003 Midterm Name: Student Number: Tutorial Time: Tutor:

STAB47S:200 Midterm Name: Student Number: Tutorial Time: Tutor: Time: 2hours Aids: The exam is open book Students may use any notes, books and calculators in writing this exam Instructions: Show your reasoning

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice,

### Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom 1 Learning Goals 1. Be able to explain the difference between the p-value and a posterior

### Grade 7/8 Math Circles Fall 2012 Probability

1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Fall 2012 Probability Probability is one of the most prominent uses of mathematics

### EXAM. Exam #3. Math 1430, Spring 2002. April 21, 2001 ANSWERS

EXAM Exam #3 Math 1430, Spring 2002 April 21, 2001 ANSWERS i 60 pts. Problem 1. A city has two newspapers, the Gazette and the Journal. In a survey of 1, 200 residents, 500 read the Journal, 700 read the

### 33 Probability: Some Basic Terms

33 Probability: Some Basic Terms In this and the coming sections we discuss the fundamental concepts of probability at a level at which no previous exposure to the topic is assumed. Probability has been

### For two disjoint subsets A and B of Ω, say that A and B are disjoint events. For disjoint events A and B we take an axiom P(A B) = P(A) + P(B)

Basic probability A probability space or event space is a set Ω together with a probability measure P on it. This means that to each subset A Ω we associate the probability P(A) = probability of A with

### 36 Odds, Expected Value, and Conditional Probability

36 Odds, Expected Value, and Conditional Probability What s the difference between probabilities and odds? To answer this question, let s consider a game that involves rolling a die. If one gets the face

### Lesson 1: Experimental and Theoretical Probability

Lesson 1: Experimental and Theoretical Probability Probability is the study of randomness. For instance, weather is random. In probability, the goal is to determine the chances of certain events happening.

### Basics of Probability

Basics of Probability August 27 and September 1, 2009 1 Introduction A phenomena is called random if the exact outcome is uncertain. The mathematical study of randomness is called the theory of probability.

### Graph Theory. Directed and undirected graphs make useful mental models for many situations. These objects are loosely defined as follows:

Graph Theory Directed and undirected graphs make useful mental models for many situations. These objects are loosely defined as follows: Definition An undirected graph is a (finite) set of nodes, some

### If we know that LeBron s next field goal attempt will be made in a game after 3 days or more rest, it would be natural to use the statistic

Section 7.4: Conditional Probability and Tree Diagrams Sometimes our computation of the probability of an event is changed by the knowledge that a related event has occurred (or is guaranteed to occur)

### MATH 13150: Freshman Seminar Unit 14

MATH 13150: Freshman Seminar Unit 14 1. Powers in mod p arithmetic In this Unit, we will study powers a n (mod p). It will turn out that these are much easier to compute then one would imagine. Let s recall

### A (random) experiment is an activity with observable results. The sample space S of an experiment is the set of all outcomes.

Chapter 7 Probability 7.1 Experiments, Sample Spaces, and Events A (random) experiment is an activity with observable results. The sample space S of an experiment is the set of all outcomes. Each outcome

### Chapter 4: Probabilities and Proportions

Stats 11 (Fall 2004) Lecture Note Introduction to Statistical Methods for Business and Economics Instructor: Hongquan Xu Chapter 4: Probabilities and Proportions Section 4.1 Introduction In the real world,

### STAT 270 Probability Basics

STAT 270 Probability Basics Richard Lockhart Simon Fraser University Spring 2015 Surrey 1/28 Purposes of These Notes Jargon: experiment, sample space, outcome, event. Set theory ideas and notation: intersection,

### ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

### 2. Methods of Proof Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try.

2. METHODS OF PROOF 69 2. Methods of Proof 2.1. Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try. Trivial Proof: If we know q is true then

### Lecture 2: Probability

Lecture 2: Probability Assist. Prof. Dr. Emel YAVUZ DUMAN MCB1007 Introduction to Probability and Statistics İstanbul Kültür University Outline 1 Introduction 2 Sample Spaces 3 Event 4 The Probability

### Discrete Mathematics for CS Fall 2006 Papadimitriou & Vazirani Lecture 22

CS 70 Discrete Mathematics for CS Fall 2006 Papadimitriou & Vazirani Lecture 22 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice, roulette

### Lecture Note 1 Set and Probability Theory. MIT 14.30 Spring 2006 Herman Bennett

Lecture Note 1 Set and Probability Theory MIT 14.30 Spring 2006 Herman Bennett 1 Set Theory 1.1 Definitions and Theorems 1. Experiment: any action or process whose outcome is subject to uncertainty. 2.

### A fairly quick tempo of solutions discussions can be kept during the arithmetic problems.

Distributivity and related number tricks Notes: No calculators are to be used Each group of exercises is preceded by a short discussion of the concepts involved and one or two examples to be worked out

### EQUATIONS. Main Overarching Questions: 1. What is a variable and what does it represent?

EQUATIONS Introduction to Variables, Algebraic Expressions, and Equations (2 days) Overview of Objectives, students should be able to: Main Overarching Questions: 1. Evaluate algebraic expressions given

### An event is any set of outcomes of a random experiment; that is, any subset of the sample space of the experiment. The probability of a given event

An event is any set of outcomes of a random experiment; that is, any subset of the sample space of the experiment. The probability of a given event is the sum of the probabilities of the outcomes in the

### Session 8 Probability

Key Terms for This Session Session 8 Probability Previously Introduced frequency New in This Session binomial experiment binomial probability model experimental probability mathematical probability outcome

### Definition of Random Variable A random variable is a function from a sample space S into the real numbers.

.4 Random Variable Motivation example In an opinion poll, we might decide to ask 50 people whether they agree or disagree with a certain issue. If we record a for agree and 0 for disagree, the sample space

### Math 016. Materials With Exercises

Math 06 Materials With Exercises June 00, nd version TABLE OF CONTENTS Lesson Natural numbers; Operations on natural numbers: Multiplication by powers of 0; Opposite operations; Commutative Property of

### Unit 29 Chi-Square Goodness-of-Fit Test

Unit 29 Chi-Square Goodness-of-Fit Test Objectives: To perform the chi-square hypothesis test concerning proportions corresponding to more than two categories of a qualitative variable To perform the Bonferroni

### MATH 10: Elementary Statistics and Probability Chapter 3: Probability Topics

MATH 10: Elementary Statistics and Probability Chapter 3: Probability Topics Tony Pourmohamad Department of Mathematics De Anza College Spring 2015 Objectives By the end of this set of slides, you should

### Review of Probability

Review of Probability Table of Contents Part I: Basic Equations and Notions Sample space Event Mutually exclusive Probability Conditional probability Independence Addition rule Multiplicative rule Using

### WHERE DOES THE 10% CONDITION COME FROM?

1 WHERE DOES THE 10% CONDITION COME FROM? The text has mentioned The 10% Condition (at least) twice so far: p. 407 Bernoulli trials must be independent. If that assumption is violated, it is still okay

### Homework 5 Solutions

Homework 5 Solutions 4.2: 2: a. 321 = 256 + 64 + 1 = (01000001) 2 b. 1023 = 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = (1111111111) 2. Note that this is 1 less than the next power of 2, 1024, which

### Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

### Induction. Margaret M. Fleck. 10 October These notes cover mathematical induction and recursive definition

Induction Margaret M. Fleck 10 October 011 These notes cover mathematical induction and recursive definition 1 Introduction to induction At the start of the term, we saw the following formula for computing

### Ch. 13.3: More about Probability

Ch. 13.3: More about Probability Complementary Probabilities Given any event, E, of some sample space, U, of a random experiment, we can always talk about the complement, E, of that event: this is the

### 21-110: Problem Solving in Recreational Mathematics

-0: Problem Solving in Recreational Mathematics Homework assignment solutions Problem. An urn contains five red balls and three yellow balls. Two balls are drawn from the urn at random, without replacement.

### I. WHAT IS PROBABILITY?

C HAPTER 3 PROBABILITY Random Experiments I. WHAT IS PROBABILITY? The weatherman on 0 o clock news program states that there is a 20% chance that it will snow tomorrow, a 65% chance that it will rain and

0.7 Quadratic Equations 8 0.7 Quadratic Equations In Section 0..1, we reviewed how to solve basic non-linear equations by factoring. The astute reader should have noticed that all of the equations in that

### MATH Fundamental Mathematics II.

MATH 10032 Fundamental Mathematics II http://www.math.kent.edu/ebooks/10032/fun-math-2.pdf Department of Mathematical Sciences Kent State University December 29, 2008 2 Contents 1 Fundamental Mathematics

### Using Laws of Probability. Sloan Fellows/Management of Technology Summer 2003

Using Laws of Probability Sloan Fellows/Management of Technology Summer 2003 Uncertain events Outline The laws of probability Random variables (discrete and continuous) Probability distribution Histogram

### Pattern matching probabilities and paradoxes A new variation on Penney s coin game

Osaka Keidai Ronshu, Vol. 63 No. 4 November 2012 Pattern matching probabilities and paradoxes A new variation on Penney s coin game Yutaka Nishiyama Abstract This paper gives an outline of an interesting

### Pythagorean Theorem. Inquiry Based Unit Plan

Pythagorean Theorem Inquiry Based Unit Plan By: Renee Carey Grade: 8 Time: 5 days Tools: Geoboards, Calculators, Computers (Geometer s Sketchpad), Overhead projector, Pythagorean squares and triangle manipulatives,

### Probability. a number between 0 and 1 that indicates how likely it is that a specific event or set of events will occur.

Probability Probability Simple experiment Sample space Sample point, or elementary event Event, or event class Mutually exclusive outcomes Independent events a number between 0 and 1 that indicates how

### Statistics 100A Homework 2 Solutions

Statistics Homework Solutions Ryan Rosario Chapter 9. retail establishment accepts either the merican Express or the VIS credit card. total of percent of its customers carry an merican Express card, 6

### CURVE FITTING LEAST SQUARES APPROXIMATION

CURVE FITTING LEAST SQUARES APPROXIMATION Data analysis and curve fitting: Imagine that we are studying a physical system involving two quantities: x and y Also suppose that we expect a linear relationship

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 3 Random Variables: Distribution and Expectation Random Variables Question: The homeworks of 20 students are collected

### Section 6-5 Sample Spaces and Probability

492 6 SEQUENCES, SERIES, AND PROBABILITY 52. How many committees of 4 people are possible from a group of 9 people if (A) There are no restrictions? (B) Both Juan and Mary must be on the committee? (C)

### 6.2 Unions and Intersections

22 CHAPTER 6. PROBABILITY 6.2 Unions and Intersections The probability of a union of events Exercise 6.2- If you roll two dice, what is the probability of an even sum or a sum of 8 or more? Exercise 6.2-2

### Problem Set 5 SOLUTIONS

University of Alabama Department of Physics and Astronomy PH 10- / LeClair Spring 008 Problem Set 5 SOLUTIONS 1. 5 points. Are the two headlights of a car wired in series or in parallel? How can you tell?

### Pigeonhole Principle Solutions

Pigeonhole Principle Solutions 1. Show that if we take n + 1 numbers from the set {1, 2,..., 2n}, then some pair of numbers will have no factors in common. Solution: Note that consecutive numbers (such

### Events. Independence. Coin Tossing. Random Phenomena

Random Phenomena Events A random phenomenon is a situation in which we know what outcomes could happen, but we don t know which particular outcome did or will happen For any random phenomenon, each attempt,

### 5.1 Radical Notation and Rational Exponents

Section 5.1 Radical Notation and Rational Exponents 1 5.1 Radical Notation and Rational Exponents We now review how exponents can be used to describe not only powers (such as 5 2 and 2 3 ), but also roots

### If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question

### 14.30 Introduction to Statistical Methods in Economics Spring 2009

MIT OpenCourseWare http://ocw.mit.edu 4.30 Introduction to Statistical Methods in Economics Spring 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

### Math 141. Lecture 2: More Probability! Albyn Jones 1. jones@reed.edu www.people.reed.edu/ jones/courses/141. 1 Library 304. Albyn Jones Math 141

Math 141 Lecture 2: More Probability! Albyn Jones 1 1 Library 304 jones@reed.edu www.people.reed.edu/ jones/courses/141 Outline Law of total probability Bayes Theorem the Multiplication Rule, again Recall

### Pythagorean Triples. Chapter 2. a 2 + b 2 = c 2

Chapter Pythagorean Triples The Pythagorean Theorem, that beloved formula of all high school geometry students, says that the sum of the squares of the sides of a right triangle equals the square of the

### Chapter 3: The basic concepts of probability

Chapter 3: The basic concepts of probability Experiment: a measurement process that produces quantifiable results (e.g. throwing two dice, dealing cards, at poker, measuring heights of people, recording

### 34 Probability and Counting Techniques

34 Probability and Counting Techniques If you recall that the classical probability of an event E S is given by P (E) = n(e) n(s) where n(e) and n(s) denote the number of elements of E and S respectively.

### E3: PROBABILITY AND STATISTICS lecture notes

E3: PROBABILITY AND STATISTICS lecture notes 2 Contents 1 PROBABILITY THEORY 7 1.1 Experiments and random events............................ 7 1.2 Certain event. Impossible event............................

### AP Stats - Probability Review

AP Stats - Probability Review Multiple Choice Identify the choice that best completes the statement or answers the question. 1. I toss a penny and observe whether it lands heads up or tails up. Suppose

### A Few Basics of Probability

A Few Basics of Probability Philosophy 57 Spring, 2004 1 Introduction This handout distinguishes between inductive and deductive logic, and then introduces probability, a concept essential to the study

### ARE211, Fall2012. Contents. 2. Linear Algebra Preliminary: Level Sets, upper and lower contour sets and Gradient vectors 1

ARE11, Fall1 LINALGEBRA1: THU, SEP 13, 1 PRINTED: SEPTEMBER 19, 1 (LEC# 7) Contents. Linear Algebra 1.1. Preliminary: Level Sets, upper and lower contour sets and Gradient vectors 1.. Vectors as arrows.

### CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce

### with "a", "b" and "c" representing real numbers, and "a" is not equal to zero.

3.1 SOLVING QUADRATIC EQUATIONS: * A QUADRATIC is a polynomial whose highest exponent is. * The "standard form" of a quadratic equation is: ax + bx + c = 0 with "a", "b" and "c" representing real numbers,

### 94 Counting Solutions for Chapter 3. Section 3.2

94 Counting 3.11 Solutions for Chapter 3 Section 3.2 1. Consider lists made from the letters T, H, E, O, R, Y, with repetition allowed. (a How many length-4 lists are there? Answer: 6 6 6 6 = 1296. (b

### Probabilistic Strategies: Solutions

Probability Victor Xu Probabilistic Strategies: Solutions Western PA ARML Practice April 3, 2016 1 Problems 1. You roll two 6-sided dice. What s the probability of rolling at least one 6? There is a 1

### Summary of some Rules of Probability with Examples

Summary of some Rules of Probability with Examples CEE 201L. Uncertainty, Design, and Optimization Department of Civil and Environmental Engineering Duke University Henri P. Gavin Spring, 2016 Introduction

### 1.7 Graphs of Functions

64 Relations and Functions 1.7 Graphs of Functions In Section 1.4 we defined a function as a special type of relation; one in which each x-coordinate was matched with only one y-coordinate. We spent most

### Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University

Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University 1 Chapter 1 Probability 1.1 Basic Concepts In the study of statistics, we consider experiments

### Random variables, probability distributions, binomial random variable

Week 4 lecture notes. WEEK 4 page 1 Random variables, probability distributions, binomial random variable Eample 1 : Consider the eperiment of flipping a fair coin three times. The number of tails that

### PROBABILITY NOTIONS. Summary. 1. Random experiment

PROBABILITY NOTIONS Summary 1. Random experiment... 1 2. Sample space... 2 3. Event... 2 4. Probability calculation... 3 4.1. Fundamental sample space... 3 4.2. Calculation of probability... 3 4.3. Non

### calculating probabilities

4 calculating probabilities Taking Chances What s the probability he s remembered I m allergic to non-precious metals? Life is full of uncertainty. Sometimes it can be impossible to say what will happen

### Worked examples Basic Concepts of Probability Theory

Worked examples Basic Concepts of Probability Theory Example 1 A regular tetrahedron is a body that has four faces and, if is tossed, the probability that it lands on any face is 1/4. Suppose that one

### Chapter 4. Probability and Probability Distributions

Chapter 4. robability and robability Distributions Importance of Knowing robability To know whether a sample is not identical to the population from which it was selected, it is necessary to assess the

### 1 Gaussian Elimination

Contents 1 Gaussian Elimination 1.1 Elementary Row Operations 1.2 Some matrices whose associated system of equations are easy to solve 1.3 Gaussian Elimination 1.4 Gauss-Jordan reduction and the Reduced

### 5 =5. Since 5 > 0 Since 4 7 < 0 Since 0 0

a p p e n d i x e ABSOLUTE VALUE ABSOLUTE VALUE E.1 definition. The absolute value or magnitude of a real number a is denoted by a and is defined by { a if a 0 a = a if a

### Homework 3 Solution, due July 16

Homework 3 Solution, due July 16 Problems from old actuarial exams are marked by a star. Problem 1*. Upon arrival at a hospital emergency room, patients are categorized according to their condition as

### Click on the links below to jump directly to the relevant section

Click on the links below to jump directly to the relevant section Basic review Writing fractions in simplest form Comparing fractions Converting between Improper fractions and whole/mixed numbers Operations

### + Section 6.2 and 6.3

Section 6.2 and 6.3 Learning Objectives After this section, you should be able to DEFINE and APPLY basic rules of probability CONSTRUCT Venn diagrams and DETERMINE probabilities DETERMINE probabilities

### Sampling Distributions and the Central Limit Theorem

135 Part 2 / Basic Tools of Research: Sampling, Measurement, Distributions, and Descriptive Statistics Chapter 10 Sampling Distributions and the Central Limit Theorem In the previous chapter we explained

### Finite and discrete probability distributions

8 Finite and discrete probability distributions To understand the algorithmic aspects of number theory and algebra, and applications such as cryptography, a firm grasp of the basics of probability theory

### Chapter 6. 1. What is the probability that a card chosen from an ordinary deck of 52 cards is an ace? Ans: 4/52.

Chapter 6 1. What is the probability that a card chosen from an ordinary deck of 52 cards is an ace? 4/52. 2. What is the probability that a randomly selected integer chosen from the first 100 positive

### It is not immediately obvious that this should even give an integer. Since 1 < 1 5

Math 163 - Introductory Seminar Lehigh University Spring 8 Notes on Fibonacci numbers, binomial coefficients and mathematical induction These are mostly notes from a previous class and thus include some

### Students in their first advanced mathematics classes are often surprised

CHAPTER 8 Proofs Involving Sets Students in their first advanced mathematics classes are often surprised by the extensive role that sets play and by the fact that most of the proofs they encounter are

### Math 117 Chapter 7 Sets and Probability

Math 117 Chapter 7 and Probability Flathead Valley Community College Page 1 of 15 1. A set is a well-defined collection of specific objects. Each item in the set is called an element or a member. Curly

### 3. Examples of discrete probability spaces.. Here α ( j)

3. EXAMPLES OF DISCRETE PROBABILITY SPACES 13 3. Examples of discrete probability spaces Example 17. Toss n coins. We saw this before, but assumed that the coins are fair. Now we do not. The sample space

### Free Pre-Algebra Lesson 24 page 1

Free Pre-Algebra Lesson page 1 Lesson Equations with Negatives You ve worked with equations for a while now, and including negative numbers doesn t really change any of the rules. Everything you ve already

### Unit 21 Student s t Distribution in Hypotheses Testing

Unit 21 Student s t Distribution in Hypotheses Testing Objectives: To understand the difference between the standard normal distribution and the Student's t distributions To understand the difference between