Probability 2.0. Independent Events Events can be "Independent", meaning each event is not affected by any other events. Example: Tossing a coin. Each.

Slides:



Advertisements
Similar presentations
Bayesian analysis with a discrete distribution Source: Stattrek.com.
Advertisements

Probability Three basic types of probability: Probability as counting
Randomness and Probability
COUNTING AND PROBABILITY
How likely something is to happen.
Conditional Probability Life is full of random events! You need to get a "feel" for them to be a smart and successful person.
Probability Sample Space Diagrams.
Mathematics.
1 Chapter 6: Probability— The Study of Randomness 6.1The Idea of Probability 6.2Probability Models 6.3General Probability Rules.
Bayes’ Theorem.
Statistics Continued. Purpose of Inferential Statistics Try to reach conclusions that extend beyond the immediate data Make judgments about whether an.
Chapter 1 Basics of Probability.
Page 79 Exercise 5A Homework - using GCSE notes for review prior to starting this unit.
Probability: Simple and Compound Independent and Dependent Experimental and Theoretical.
“PROBABILITY” Some important terms Event: An event is one or more of the possible outcomes of an activity. When we toss a coin there are two possibilities,
Warm-Up 1. What is Benford’s Law?
PROBABILITY. Counting methods can be used to find the number of possible ways to choose objects with and without regard to order. The Fundamental Counting.
Chapter 6 Lesson 9 Probability and Predictions pgs What you’ll learn: Find the probability of simple events Use a sample to predict the actions.
Topic 4A: Independent and Dependent Events Using the Product Rule
Chapter 9 Review. 1. Give the probability of each outcome.
Warm-Up A woman and a man (unrelated) each have two children .
Bayes’ Theorem Susanna Kujanpää OUAS Bayes’ Theorem This is a theorem with two distinct interpretations. 1) Bayesian interpretation: it shows.
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
Warm Up Tyler has a bucket of 30 blocks. There are
Probability INDEPENDENT EVENTS. Independent Events  Life is full of random events!  You need to get a "feel" for them to be a smart and successful person.
7th Probability You can do this! .
Mathematics Conditional Probability Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund
SECTION 11-3 Conditional Probability; Events Involving “And” Slide
Miss Zeuggin February 6th 2009
Rules of Probability. Recall: Axioms of Probability 1. P[E] ≥ P[S] = 1 3. Property 3 is called the additive rule for probability if E i ∩ E j =
Math I.  Probability is the chance that something will happen.  Probability is most often expressed as a fraction, a decimal, a percent, or can also.
Math I.  Probability is the chance that something will happen.  Probability is most often expressed as a fraction, a decimal, a percent, or can also.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
Homework Determine if each event is dependent or independent. 1. drawing a red ball from a bucket and then drawing a green ball without replacing the first.
10-5 Independent and Dependent Events Course 3 Warm Up Warm Up Problem of the Day Problem of the Day Lesson Presentation Lesson Presentation.
Warm Up Multiply. Write each fraction in simplest form. 1. 2.  Write each fraction as a decimal
Learn to find the probabilities of independent and dependent events. Course Independent and Dependent Events.
Probability What’s the chance of that happening? MM1D2 a, b, c.
Probability A quantitative measure of uncertainty A quantitative measure of uncertainty A measure of degree of belief in a particular statement or problem.
Math 30-2 Probability & Odds. Acceptable Standards (50-79%)  The student can express odds for or odds against as a probability determine the probability.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
Chapter three Conditional Probability and Independence
Pre-Algebra 9-7 Independent and Dependent Events Learn to find the probabilities of independent and dependent events.
Holt CA Course Independent and Dependent Events Warm Up Warm Up California Standards California Standards Lesson Presentation Lesson PresentationPreview.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
Warm Up: Quick Write Which is more likely, flipping exactly 3 heads in 10 coin flips or flipping exactly 4 heads in 5 coin flips ?
2.5 Additive Rules: Theorem 2.10: If A and B are any two events, then: P(A  B)= P(A) + P(B)  P(A  B) Corollary 1: If A and B are mutually exclusive.
Independent and Dependent Events Lesson 6.6. Getting Started… You roll one die and then flip one coin. What is the probability of : P(3, tails) = 2. P(less.
7/20 The following table shows the number of people that like a particular fast food restaurant. 1)What is the probability that a person likes Wendy’s?
Aim: How do we find the conditional probability of an event? TEST TUESDAY.
CHAPTER 1 Probability Chapter 1 1. Introduction o Definition ~ the measure of any possibilities occurrence of a result in an event. o Question : With.
Probability. Definitions Probability: The chance of an event occurring. Probability Experiments: A process that leads to well- defined results called.
PROBABILITY 1. Basic Terminology 2 Probability 3  Probability is the numerical measure of the likelihood that an event will occur  The probability.
 Page  Complete Assessment.  The following represents the body temperatures of healthy students Find the.
An Introduction to Probability Theory
Bayes’ Theorem.
PROBABILITY Probability Concepts
COMP61011 : Machine Learning Probabilistic Models + Bayes’ Theorem
What is Probability? Quantification of uncertainty.
Probability.
Independent and Dependent Events
Unit 1: Probability and Statistics
Probability and Chance
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
COUNTING AND PROBABILITY
Independent vs. Dependent events
How Do I Find the Probability of Compound Independent Events?
Chapter 5 – Probability Rules
Probability of Independent Event
Thursday 05/16 Warm Up 200 people were surveyed about ice cream preferences. 78 people said they prefer chocolate. 65 people said they prefer strawberry.
Presentation transcript:

Probability 2.0

Independent Events Events can be "Independent", meaning each event is not affected by any other events. Example: Tossing a coin. Each toss of a coin is a perfect isolated thing. What it did in the past will not affect the current toss. The chance is simply 1-in-2, or 50%, just like ANY toss of the coin. So each toss is an Independent Event.

But events can also be "dependent"... which means they can be affected by previous events... Example: Marbles in a Bag 2 blue and 3 red marbles are in a bag. What are the chances of getting a blue marble? The chance is 2 in 5 But after taking one out the chances change! Dependent Events

Marbles in a Bag…. But after taking one out the chances change! So the next time: if we got a red marble before, then the chance of a blue marble next is 2 in 4 if we got a blue marble before, then the chance of a blue marble next is 1 in 4

Replacement Note: if we replace the marbles in the bag each time, then the chances do not change and the events are independent:independent With Replacement: the events are Independent (the chances don't change) Without Replacement: the events are Dependent (the chances change)

Exercise There is a 2/5 chance of pulling out a Blue marble, and a 3/5 chance for Red What are the chances of drawing 2 blue marbles?

Solution The chances of drawing 2 blue marbles is 1/10

Conditional event The probability that event B occurs, given that event A has occurred, is called a conditional probability.probabilityevent The conditional probability of B, given A, is denoted by the symbol P(B|A). In other words, event A has already happened, now what is the chance of event B?

And in our case: P(B|A) = 1/4 So the probability of getting 2 blue marbles is:

And we write it as "Probability of event A and event B equals the probability of event A times the probability of event B given event A"

Exercise A bag contains 3 red marbles and 4 blue marbles. Two marbles are drawn at random without replacement. If the first marble drawn is red, what is the probability the second marble is blue? A box contains 5 green pencils and 7 yellow pencils. Two pencils are chosen at random from the box without replacement. What is the probability they are both yellow?

Finding hidden data Using Algebra we can also "change the subject" of the formula, like this: Start with: P(A and B) = P(A) x P(B|A) Swap sides: P(A) x P(B|A) = P(A and B) Divide by P(A): P(B|A) = P(A and B) / P(A)

"The probability of event B given event A equals the probability of event A and event B divided by the probability of event A

Example 45% of the children in a school have a dog, 30% have a cat, and 18% have a dog and a cat. What percent of those who have a cat also have a dog?

Bayes’ Theorem Bayes' theorem. Let A 1, A 2,..., A n be a set of mutually exclusive events that together form the sample space S. Let B be any event from the same sample space, such that P(B) > 0. Then, P( A k | B ) = P( A k ∩ B ) P( A 1 ∩ B ) + P( A 2 ∩ B ) P( A n ∩ B )

theorem.aspx Note: Invoking the fact that P( A k ∩ B ) = P( A k )P( B | A k ), Baye's theorem can also be expressed as P( A k | B ) = P( A k ) P( B | A k ) P( A 1 ) P( B | A 1 ) + P( A 2 ) P( B | A 2 ) P( A n ) P( B | A n )

When to Apply Bayes’ Theorem Part of the challenge in applying Bayes' theorem involves recognizing the types of problems that warrant its use. You should consider Bayes' theorem when the following conditions exist. The sample space is partitioned into a set of mutually exclusive events { A 1, A 2,..., A n }.sample spacesetmutually exclusive Within the sample space, there exists an event B, for which P(B) > 0.event The analytical goal is to compute a conditional probability of the form: P( A k | B ). You know at least one of the two sets of probabilities described below. – P( A k ∩ B ) for each A k – P( A k ) and P( B | A k ) for each A k

Example1 Marie is getting married tomorrow, at an outdoor ceremony in the desert. In recent years, it has rained only 5 days each year. Unfortunately, the weatherman has predicted rain for tomorrow. When it actually rains, the weatherman correctly forecasts rain 90% of the time. When it doesn't rain, he incorrectly forecasts rain 10% of the time. What is the probability that it will rain on the day of Marie's wedding?

Solution The sample space is defined by two mutually- exclusive events - it rains or it does not rain. Additionally, a third event occurs when the weatherman predicts rain. Notation for these events appears below. Event A 1. It rains on Marie's wedding. Event A 2. It does not rain on Marie's wedding. Event B. The weatherman predicts rain.

Solution In terms of probabilities, we know the following: P( A 1 ) = 5/365 = [It rains 5 days out of the year.] P( A 2 ) = 360/365 = [It does not rain 360 days out of the year.] P( B | A 1 ) = 0.9 [When it rains, the weatherman predicts rain 90% of the time.] P( B | A 2 ) = 0.1 [When it does not rain, the weatherman predicts rain 10% of the time.]

Solution We want to know P( A 1 | B ), the probability it will rain on the day of Marie's wedding, given a forecast for rain by the weatherman. The answer can be determined from Bayes' theorem, as shown below. P( A 1 |B ) = _____P ( A 1 ) P ( B | A 1 )________ P( A 1 ) P( B | A 1 ) + P( A 2 ) P( B | A 2 ) P( A 1 | B ) = (0.014)(0.9) / [ (0.014)(0.9) + (0.986)(0.1) ] P( A 1 | B ) = 0.111

The entire output of a factory is produced on three machines. The three machines account for 20%, 30%, and 50% of the output, respectively. The fraction of defective items produced is this: for the first machine, 5%; for the second machine, 3%; for the third machine, 1%. If an item is chosen at random from the total output and is found to be defective, what is the probability that it was produced by the third machine?

A solution is as follows. Let A i denote the event that a randomly chosen item was made by the ith machine (for i = 1,2,3). Let B denote the event that a randomly chosen item is defective. Then, we are given the following information: P(A 1 ) = 0.2, P(A 2 ) = 0.3, P(A 3 ) = 0.5.If the item was made by machine A 1, then the probability that it is defective is 0.05; that is, P(B|A 1 ) = Overall, we have P(B|A 1 ) = 0.05, P(B|A 2 ) = 0.03, P(B|A 3 ) = 0.01.To answer the original question, we first find P(B). That may be done in the following way: P(B) = Σ i P(B|A i )P(A i ) = (0.05)(0.2) + (0.03)(0.3) + (0.01)(0.5) = Hence 2.4% of the total output of the factory is defective

We are given that B has occurred, and we want to calculate the conditional probability of A 3. By Bayes' theorem, Given that the item is defective, the probability that it was made by the third machine is only 5/24. Although machine 3 produces half of the total output, it produces a much smaller fraction of the defective items. Hence the knowledge that the item selected was defective enables us to replace the prior probability P(A 3 ) = 1/2 by the smaller posterior probability P(A 3 |B) = 5/24.

1% of people have a certain genetic defect. 90% of tests for the gene detect the defect. 9.6% of the tests are false positives. If a person gets a positive test result, what are the probability they actually have the genetic defect?

The first step into solving Bayes theorem problems is to assign letters to events: A = chance of having the faulty gene. That was given in the question as 1%. That also means the probability of not having the gene (~A) is 99%. X = A positive test result.

So: P(A|X) = Probability of having the gene given a positive test result. P(X|A) = Chance of a positive test result given that the person actually has the gene. That was given in the question as 90%. p(X|~A) = Chance of a positive test if the person doesn’t have the gene. That was given in the question as 9.6% Now we have all of the information we need to put into the equation: P(A|X) = (.9 *.01) / (.9 * *.99) = (8.65%).

In a class, 30% have grey eyes, 50% blue eyes and other 20% have other colours. One day they play a game together. In the first run, 65% of the grey ones, 82%blue eyes and 50% with other colours are selected. Now if a child is selected randomly from the class, and we know that she was not in the first game, what is the prob that the child has blue eyes.