Chapter 6: Probability and Simulation, the study of randomness

Slides:



Advertisements
Similar presentations
Probability: The Study of Randomness
Advertisements

Probability of Independent Events
Probability I Introduction to Probability
Probability and Counting Rules
5.1 Probability of Simple Events
Probability Presented by Tutorial Services The Math Center.
Beginning Probability
Probability Probability Principles of EngineeringTM
5-1 Chapter 5 Probability 1.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Business and Economics 6th Edition
6.1 Simulation Probability is the branch of math that describes the pattern of chance outcomes It is an idealization based on imagining what would happen.
Probability Ch 14 IB standard Level.
Probability: The Study of Randomness Chapter Randomness Think about flipping a coin n times If n = 2, can have 2 heads (100% heads), 1 heads and.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
3 Types of Probabilities
Copyright © Cengage Learning. All rights reserved.
Chapter 6: Probability and Simulation
Introduction to Probability Experiments, Outcomes, Events and Sample Spaces What is probability? Basic Rules of Probability Probabilities of Compound Events.
AP STATISTICS Simulation “Statistics means never having to say you're certain.”
Chapter 5.3: Simulation. Random  We call a phenomenon RANDOM if individual outcomes are uncertain but there is nonetheless a regular distribution of.
AP STATISTICS Simulating Experiments. Steps for simulation Simulation: The imitation of chance behavior, based on a model that accurately reflects the.
Chapter 6 Probability and Simulation
Randomness and Probability
Section 5.1 and 5.2 Probability
Probability and Simulation: The Study of Randomness
Chapter 6: Probability : The Study of Randomness “We figured the odds as best we could, and then we rolled the dice.” US President Jimmy Carter June 10,
From Randomness to Probability
AP Statistics Section 6.2 A Probability Models
1 Chapter 6: Probability— The Study of Randomness 6.1The Idea of Probability 6.2Probability Models 6.3General Probability Rules.
4.2 Probability Models. We call a phenomenon random if individual outcomes are uncertain but there is nonetheless a regular distribution of outcomes in.
Chapter 6 Probabilit y Vocabulary Probability – the proportion of times the outcome would occur in a very long series of repetitions (likelihood of an.
Special Topics. Definitions Random (not haphazard): A phenomenon or trial is said to be random if individual outcomes are uncertain but the long-term.
1. Try to estimate the likelihood of a result by actually observing the random phenomenon many times and calculating the relative frequency of the results.
The Practice of Statistics
BPS - 5th Ed. Chapter 101 Introducing Probability.
AP STATISTICS LESSON SIMULATING EXPERIMENTS.
AP STATISTICS LESSON 6-1 Simulation. ESSENTIAL QUESTION: How can simulation be used to solve problems involving chance? Objectives: To simulate problems.
Probability Models.  Understand the term “random”  Implement different probability models  Use the rules of probability in calculations.
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
Probability Basic Concepts Start with the Monty Hall puzzle
YMS Chapter 6 Probability: Foundations for Inference 6.1 – The Idea of Probability.
4.3a Simulating Experiments Target Goal: I can use simulation to represent an experiment. In class FR.
Simulating Experiments Introduction to Random Variable.
Chapter 6 Day 2. Multiplication Principle – if you do one task a number of ways and a second task b number of ways, then both tasks can be done a x b.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
5.3: Simulation NEW SEATING CHARTS NEW WEBSITE FOR NOTES.
Section 5.3 – basics of simulation Simulation – the imitation of chance behavior, based on a model that accurately reflects the experiment under consideration.
Unit 6 Probability & Simulation: the Study of randomness Simulation Probability Models General Probability Rules.
Probability. Definitions Probability: The chance of an event occurring. Probability Experiments: A process that leads to well- defined results called.
AP STATISTICS LESSON AP STATISTICS LESSON PROBABILITY MODELS.
Probability Models Section 6.2. The Language of Probability What is random? What is random? Empirical means that it is based on observation rather than.
Section Probability Models AP Statistics December 2, 2010.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Section 5.1 and 5.2 Probability
6.1 The Idea of Probability
Essential Ideas for The Nature of Probability
Chapter 6 6.1/6.2 Probability Probability is the branch of mathematics that describes the pattern of chance outcomes.
The study of randomness
Unit 4 Probability Basics
Click the mouse button or press the Space Bar to display the answers.
Click the mouse button or press the Space Bar to display the answers.
Section 6.2 Probability Models
Warm Up 1) A t-shirt company makes shirts in sizes S, M, L, XL and XXL and in the colors chartreuse, burgundy, fuchsia and mauve. How many different types.
Mr. Reider AP Stat November 18, 2010
Probability The branch of mathematics that describes the pattern of chance outcome.
Homework: pg. 398 #4, 5 pg. 402 #10, 11 4.) A. A single random digit simulates one shot, 1-7 represents a made shot 8-10 represents a miss. Then 5 consecutive.
CHAPTER 5 Probability: What Are the Chances?
Presentation transcript:

Chapter 6: Probability and Simulation, the study of randomness

6.1 – Simulation

Simulation: The imitation of chance behavior, based on a model that accurately reflects the experiment under consideration. Independent: One event doesn’t influence the outcome of another event. (tossing a coin)

5 steps of simulation: 1. State the problem or describe the random phenomenon 2. State the assumptions. 3. Assign digits to represent outcomes. 4. Simulate many repetitions 5. State your conclusions

Use # table, 0-4 girl and 5-9 boy Example #1 Describe how you would simulate the following problems. Boy or girl? There is an equally likely chance of delivering a boy or a girl at birth. What is the likelihood of having a girl among their first four children? Flip a coin Roll Die: 1-3 girl, 4-6 boy Use # table, 0-4 girl and 5-9 boy

Example #1 Describe how you would simulate the following problems. b. Choose one person at random from a group of which 50% are employed, 20% are unemployed, and 30% are not in the labor force. Use # table, 0-4 employed, 5-6 unemployed, 7-9 not in labor force

Calculator Tip: Random Integers Math – Prob – RandInt (smallest #, largest #, n)

Probability of a heads or tails is 50% Example #2 What is the likelihood of tossing a coin 5 times and getting at least 3 consecutive heads or 3 consecutive tails? Simulation Steps: 1. State the problem or describe the random phenomenon Find the likelihood of tossing a coin 5 times and getting 3 consecutive heads or tails 2. State the assumptions Probability of a heads or tails is 50% Coin tosses are independent

Random digit table: Line 101 Example #2 What is the likelihood of tossing a coin 5 times and getting at least 3 consecutive heads or 3 consecutive tails? Simulation Steps: 3. Assign digits to represent outcomes 0-4 heads, 5-9 tails 4. Simulate many repetitions Random digit table: Line 101

First time: 1 9 2 2 3 Fifth: 9 6 4 9 Second: 9 Sixth: 1 2 5 3 1 5 3 4 9 T T H H T H T H H H Second: 9 Sixth: 1 2 5 3 1 5 3 4 T T H H H H H T H H Third: 5 7 5 6 Seventh: 4 2 5 4 4 H H H T H H T T T T 8 2 8 5 3 Fourth: 2 8 7 1 3 Eighth: H T T H H T H T T H

P(3 consecutive heads or tails) = Example #2 What is the likelihood of tossing a coin 5 times and getting at least 3 consecutive heads or 3 consecutive tails? Simulation Steps: 5. State your conclusions 3 8 P(3 consecutive heads or tails) = After 8 simulations, the probability of flipping a coin 5 times and getting at least 3 consecutive heads or tails is approximately 37.5%

Assign numbers to represent baskets and misses. 0-6 basket, 7-9 miss Example #4 A basketball player makes 70% of her free throws in a long season. In a tournament game she shoots 5 free throws late in the game and misses 3 of them. The fans think she was nervous, but the misses may simply be chance. You will shed some light by estimating the probability. Describe how to simulate a single shot if the probability of making each shot is 70%. Then describe how to simulate 5 independent shots. Assign numbers to represent baskets and misses. 0-6 basket, 7-9 miss Use Random Number table to choose 5 numbers

Example #4 A basketball player makes 70% of her free throws in a long season. In a tournament game she shoots 5 free throws late in the game and misses 3 of them. The fans think she was nervous, but the misses may simply be chance. You will shed some light by estimating the probability. b. Use the calculator to simulate 20 repetitions of the 5 shots and record the number missed on each repetition. What is the approximate likelihood that the player will miss 3 or more of the 5 shots? randInt(0, 9, 5)

# of times she didn’t miss 3 out of 5: 14 # of times she did miss 3 out of 5: 6 6 20 P(missing 3 out of 5 shots) = = 30%

6.2 – Probability Models

Probability: Chance behavior is unpredictable in the short run but has a regular and predictable pattern in the long run. Probability of an event equals the proportion of times it occurs in a long series of repetitions. # of successes P(Event) = Total #

Random: An event is random if individual outcomes are uncertain, but there is a regular distribution of outcomes in a large number of repetitions.

Probability Model: Mathematical description of a random phenomenon that has two parts: Sample Space Way of assigning probabilities to events

Sample Space: Set of all possible outcomes S = { … } Event: Any outcome or set of outcomes. Subset of the sample space E = { … }

Example #4 Fill in the answers below for each situation 1. Tossing a single die: a. List the sample space. S = {1, 2, 3, 4, 5, 6} b. Event A: an odd number E = {1, 3, 5}

Example #4 Fill in the answers below for each situation 1. Tossing a single die: c. P(A) = probability of A occurring: 3 6 P(A) = = 50%

Fill in the answers below for each situation Example #4 Fill in the answers below for each situation 2. In a standard deck of playing cards there are 52 cards total. a. Drawing one card, P(Heart) 13 52 P(Heart) = = 25%

Fill in the answers below for each situation Example #4 Fill in the answers below for each situation 2. In a standard deck of playing cards there are 52 cards total. b. Drawing one card, P(King) 4 . 52 P(King) = = 8%

Fill in the answers below for each situation Example #4 Fill in the answers below for each situation 2. In a standard deck of playing cards there are 52 cards total. c. If I continue to draw cards from the deck, will the trials be independent? Why or why not? No, the first card influences the probability of the next card

There are two ways to find the total number of outcomes in a sample space: 1. Tree Diagram: Branches off to represent each possibility 2. Multiplication Principle: If you can do one task in a number of ways and a second task in b number of ways, then both tasks can be done in a x b number of ways.

Example #5 Draw a tree diagram for flipping a coin and then rolling die. Then determine the size of the sample space.

1 # of outcomes: 2 3 12 H 4 5 6 Or Mult. Principle: 1 a x b 2 2 x 6 3 T 12 4 5 6

6.2 - continued

Probability Rules: P(A) = 1 means the event will always occur P(A) = 0 means the event will never occur The probability P(A) of any event A satisfies 0 ≤ P(A) ≤ 1 The sum of the probabilities of all possible outcomes is 1. An event is empty if it has no outcomes in it. 

Venn Diagram: A picture representation of a sample space. S A B

Example #1 Make a Venn diagram for the following situation: 45% of kids like Barney 25% of kids like Blue 55% of kids like Pooh 15% of kids like Blue and Pooh 25% of kids like Barney and Pooh 5% of kids like Blue but not Barney or Pooh 5% of kids like Barney, Blue, and Pooh

Things kids like .25 Pooh Barney .20 .15 .20 .05 .05 .10 .05 Blue

Complement Rule: The probability that event A does NOT occur Written: Ac P(Ac) = 1 – P(A) S A

Union: Either event A or event B occurs A  B S A B

Intersection: Event A and Event B occurs A  B S A B

B A Disjoint: (mutually exclusive) Two events A and B are disjoint if they have no outcomes in common, so never can occur simultaneously. S B A

B A Addition Rule (for disjoint events only!!!!!): P(A or B) = P(A) + P(B) S B A Note: P(A and B) = 0

a. P(A) = Probability of drawing a spade Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: a. P(A) = Probability of drawing a spade 13 52 P(A) = = 25%

b. P(B) = Probability of drawing a King Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: b. P(B) = Probability of drawing a King 4 . 52 P(B) = = 8%

c. P(C) = Probability of drawing an Ace Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: c. P(C) = Probability of drawing an Ace 4 . 52 P(C) = = 8%

Probability of not drawing an King Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: d. P(Bc) = Probability of not drawing an King 4 . 52 P(Bc) = 1 – = 92%

Probability of Ace or King Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: e. P(B  C) = Probability of Ace or King 4 . 52 4 . 52 8 . 52 P(B  C) = P(B) + P(C) = + = = 15%

Probability of Ace and King Example #2 You have drawn one card from a standard deck of cards. Find the following probabilities: f. P(B  C) = Probability of Ace and King P(B  C) =

What is the difference between disjoint and independent? Independence is when one event doesn’t influence the probability of the next event. Disjoint means the two events have no outcomes in common, so never can occur simultaneously.

Black King Drawing one card and getting a black King. independent Example #3 Determine if the given example is independent, disjoint, or neither. Drawing one card and getting a black King. independent Deck of cards Black King

Example #3 Determine if the given example is independent, disjoint, or neither. b. Drawing two cards and getting a black King, without replacement. neither Deck of cards Black King

A B c. Can you have a disjoint event be independent? Explain. Knowing event A happens means event B cannot A B

Multiplication Rule (for independent events only!!!!!): P(A and B) = P(A)  P(B)

Find the marginal percents. Example #4 The following table gives the gender and political party of the 100 delegates at a political convention. Suppose you encounter a delegate at random. The proportion of each person is given. Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 0.04 0.49 0.41 0.10 0.52 0.48 1.0 Find the marginal percents.

b. Is it a valid probability distribution? How do you know? Example #4 The following table gives the gender and political party of the 100 delegates at a political convention. Suppose you encounter a delegate at random. The proportion of each person is given. Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 0.04 0.49 0.41 0.10 0.52 0.48 1.0 b. Is it a valid probability distribution? How do you know? Yes, the probabilities add to one

c. What is the probability that the delegate will not be a man? Example #4 The following table gives the gender and political party of the 100 delegates at a political convention. Suppose you encounter a delegate at random. The proportion of each person is given. Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 0.04 0.49 0.41 0.10 0.52 0.48 1.0 c. What is the probability that the delegate will not be a man? P(not man) = 1 – P(man) = 1 – 0.48 = 0.52

Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 Example #4 The following table gives the gender and political party of the 100 delegates at a political convention. Suppose you encounter a delegate at random. The proportion of each person is given. Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 0.04 0.49 0.41 0.10 0.52 0.48 1.0 d. What is the probability that the delegate will not be an Independent? P(not ind.) = 1 – P(ind.) = 1 – 0.10 = 0.90

Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 Example #4 The following table gives the gender and political party of the 100 delegates at a political convention. Suppose you encounter a delegate at random. The proportion of each person is given. Women Men Republicans 0.21 0.28 Democrats 0.25 0.16 Independents 0.06 0.04 0.49 0.41 0.10 0.52 0.48 1.0 e. What is the probability that the delegate will be a Republican woman? P(Rep. and Woman) = 0.21 Note: not independent!

Example #5 A gambler wants to know the probability of rolling one die twice and getting a 3 both times. Note: Independent 1 6 1 6 1 . 36 P(3  3) = P(3)  P(3) =  = = 3%

P(all 20 lights not fail for 3yrs) = (1 – .02)20 = (.98)20 Example #6 A string of Christmas lights contains 20 lights. The lights are wired in a series, so that if any light fails the whole string will go dark. Each light has probability 0.02 of failing during a 3 year period. The lights fail independently of each other. What is the probability the strings of lights will remain bright for 3 years? Note: Independent P(all 20 lights not fail for 3yrs) = (1 – .02)20 = (.98)20 0.6676

6.3 – General Probability Rules

A B Problem: Addition Rule only works for disjoint events P(A  B) = P(A) + P(B) Solution: Subtract P(A and B) from both probabilities P(A  B) = P(A) + P(B) – P(A  B) S A B

Conditional Probability: The probability of an event occurring, given another event occurred P(AB) = P(A) happens given that B occurs P(BA) = P(B) happens given that A occurs

P(A and B) P(B) P(AB) = S A B

P(A and B) P(A) P(BA) = S A B

General Multiplication Rule: If Independent: P(A and B) = P(A)  P(B) P(A and B) P(B) In General: P(AB) = P(A and B) = P(B)  P(AB)

Determining Independence: Two events A and B are independent if P(AB) = P(A) OR: P(BA) = P(B)

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore Example #1 The Adams Corporation stores spare parts at two warehouses, one in Baltimore and one in Plattsburgh. The number of defective and acceptable spare parts at each warehouse is given below: Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 If one of the 500 spare parts kept by the firm is chosen at random let D and A denote the events that the spare part is defective or acceptable, while B and P denote the events that it comes from Baltimore or Plattsburgh. Calculate the following probabilities:

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 300 500 = a. P(B) = 0.60

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 272 500 b. P(A  B) = = 0.544 Using Rule: P(A and B) = P(B)  P(AB) 300 500 272 300 P(A and B) =  = 0.544

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 300 500 c. P(Bc) = 1 – P(B) = 1 – = 0.40

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 d. P(A  B) = P(A) + P(B) – P(A and B) 462 500 300 500 272 500 + – = = 0.924 + .6 – .544 = 0.98

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 272 300 0.9067 e. P(AB) = =

Using Rule: 272 500 272 500 500 300 P(A and B) P(B)  = P(AB) = = 300 500 272 300 0.9067 = =

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 10 38 0.2632 f. P(PD) = =

Using Rule: 10 . 500 10 . 500 500 38 P(P and D) P(D)  = P(PD) = = 38 . 500 10 38 = = 0.2632

Number of Spare Parts Warehouse Defective Acceptable Total Baltimore 28 272 Plattsburgh 10 190 300 200 38 462 500 g. Determine if coming from Plattsburgh and being defective are independent. P(PD) = P(P) No, they are not 10 . 200 0.2632 = 0.2632  0.05

Tree Diagram: Some conditional probabilities can be solved by drawing a schematic way of looking at all possible outcomes.

Example #2 Suppose a computer company has manufacturing plants in three states. 50% of their computers are manufactured in California and 85% of these are desktops, 30% of computers are manufactured in Washington, and 40% of these are laptops, and 20% of computers are manufactured in Oregon, and 40% of these are desktops. All computers are first shipped to a distribution site in Nebraska before being sent out to stores. If you picked a computer at random from the Nebraska distribution center, what is the probability that it is a laptop?

0.15 laptop CA desktop 0.85 0.50 laptop 0.40 WA desktop 0.30 0.60 0.60 (.5.15) = 0.075 laptop CA desktop 0.85 (.5.85) = 0.425 0.50 laptop 0.40 (.3.4) = 0.12 State WA desktop 0.30 0.60 (.3.6) = 0.18 0.60 laptop (.2.6) = 0.12 OR desktop 0.40 (.2.4) = 0.08 0.20 P(laptop) = 0.075 + 0.12 + 0.12 = 0.315