Chapters 13 and 14 Probability and counting Birthday Problem zWhat is the smallest number of people you need in a group so that the probability of 2.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Chapters 14, 15 (part 2) Probability Trees, Odds i)Probability Trees: A Graphical Method for Complicated Probability Problems. ii)Odds and Probabilities.
Chapter 15 Probability Models The Equally Likely Approach (also called the Classical Approach)
4.1 (cont.) Probability Models The Equally Likely Approach (also called the Classical Approach)
Probability Simple Events
Birthday Problem What is the smallest number of people you need in a group so that the probability of 2 or more people having the same birthday is greater.
Presentation 5. Probability.
Section 5.1 and 5.2 Probability
Randomness and probability
Probability and inference Randomness; Probability models IPS chapters 4.1 and 4.2 © 2006 W.H. Freeman and Company.
From Randomness to Probability
Chapter 14 Probability Basics Laws of Probability Odds and Probability Probability Trees.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Probability, Part II.
Chapter 3 Probability.
1 Chapter 6: Probability— The Study of Randomness 6.1The Idea of Probability 6.2Probability Models 6.3General Probability Rules.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Section 4.1 (cont.) Probability Trees A Graphical Method for Complicated Probability Problems.
Probability Formal study of uncertainty The engine that drives statistics.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Chapter 6 Probabilit y Vocabulary Probability – the proportion of times the outcome would occur in a very long series of repetitions (likelihood of an.
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
5.1 Basic Probability Ideas
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 13, Slide 1 Chapter 13 From Randomness to Probability.
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.
Probability—outline: IIntroduction to Probability ASatisfactory outcomes vs. total outcomes BBasic Properties CTerminology IICombinatory Probability AThe.
Chapters 14 and 15 Probability Basics Probability Fundamentals Counting Rules Applied to the Equally Likely Model.
You probability wonder what we’re going to do next!
Chapter 16 Probability. Activity Rock-Paper-Scissors Shoot Tournament 1)Pair up and choose one person to be person A and the other person B. 2)Play 9.
Probability Formal study of uncertainty The engine that drives statistics Primary objective of lecture unit 4: use the rules of probability to calculate.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
1 CHAPTERS 14 AND 15 (Intro Stats – 3 edition) PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY.
Copyright © 2010 Pearson Education, Inc. Chapter 6 Probability.
A phenomenon is random if individual outcomes are uncertain, but there is nonetheless a regular distribution of outcomes in a large number of repetitions.
Copyright © 2010 Pearson Education, Inc. Unit 4 Chapter 14 From Randomness to Probability.
Copyright © 2010 Pearson Education, Inc. Slide
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,
1 CHAPTER 7 PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY.
YMS Chapter 6 Probability: Foundations for Inference 6.1 – The Idea of Probability.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
QR 32 Section #6 November 03, 2008 TA: Victoria Liublinska
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
FORMAL STUDY OF UNCERTAINTY THE ENGINE THAT DRIVES STATISTICS Probability.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
6.2 – Probability Models It is often important and necessary to provide a mathematical description or model for randomness.
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.
AP Statistics From Randomness to Probability Chapter 14.
Chapters 13, 14, Part 1 Probability Basics Laws of Probability Odds and Probability Probability Trees.
Section 5.1 and 5.2 Probability
Essential Ideas for The Nature of Probability
Chapter 4 Probability Concepts
Chapter 6 6.1/6.2 Probability Probability is the branch of mathematics that describes the pattern of chance outcomes.
The study of randomness
Chapters 4 Probability Distributions
PROBABILITY.
What is Probability? Quantification of uncertainty.
Probability and counting
Unit 4 Probability Basics
Probability—outline:
Probability Probability underlies statistical inference - the drawing of conclusions from a sample of data. If samples are drawn at random, their characteristics.
Chapter 3 Probability.
Honors Statistics From Randomness to Probability
Probability Unit 6 Day 3.
Formal study of uncertainty The engine that drives statistics
Probability, Part II.
Presentation transcript:

Chapters 13 and 14 Probability and counting

Birthday Problem zWhat is the smallest number of people you need in a group so that the probability of 2 or more people having the same birthday is greater than 1/2? zAnswer: 23 No. of people Probability We will solve this problem a few slides later using the laws of probability

Probability Formal study of uncertainty The engine that drives Statistics Primary objectives: 1.use the rules of probability to calculate appropriate measures of uncertainty. 2.Learn the probability basics so that we can do Statistical Inference

Introduction zNothing in life is certain zWe gauge the chances of successful outcomes in business, medicine, weather, and other everyday situations such as the lottery or the birthday problem

A phenomenon is random if individual outcomes are uncertain, but there is nonetheless a regular distribution of outcomes in a large number of repetitions. Randomness and probability Randomness ≠ chaos

Coin toss The result of any single coin toss is random. But the result over many tosses is predictable, as long as the trials are independent (i.e., the outcome of a new coin flip is not influenced by the result of the previous flip). First series of tosses Second series The probability of heads is 0.5 = the proportion of times you get heads in many repeated trials.

Approaches to Probability 1.Relative frequency event probability = x/n, where x=# of occurrences of event of interest, n=total # of observations yCoin, die tossing; nuclear power plants? zLimitations repeated observations not practical

Approaches to Probability (cont.) 2.Subjective probability individual assigns prob. based on personal experience, anecdotal evidence, etc. 3.Classical approach every possible outcome has equal probability (more later)

Basic Definitions zExperiment: act or process that leads to a single outcome that cannot be predicted with certainty zExamples: 1.Toss a coin 2.Draw 1 card from a standard deck of cards 3.Arrival time of flight from Atlanta to RDU

Basic Definitions (cont.) zSample space: all possible outcomes of an experiment. Denoted by S zEvent: any subset of the sample space S; typically denoted A, B, C, etc. Null event: the empty set  Certain event: S

Examples 1.Toss a coin once S = {H, T}; A = {H}, B = {T} 2.Toss a die once; count dots on upper face S = {1, 2, 3, 4, 5, 6} A=even # of dots on upper face={2, 4, 6} B=3 or fewer dots on upper face={1, 2, 3} 3.Select 1 card from a deck of 52 cards. S = {all 52 cards}

Laws of Probability

Coin Toss Example: S = {Head, Tail} Probability of heads = 0.5 Probability of tails = ) The complement of any event A is the event that A does not occur, written as A. The complement rule states that the probability of an event not occurring is 1 minus the probability that is does occur. P(not A) = P(A) = 1 − P(A) Tail = not Tail = Head P(Tail ) = 1 − P(Head) = 0.5 Probability rules (cont’d) Venn diagram: Sample space made up of an event A and its complementary A, i.e., everything that is not A.

Birthday Problem zWhat is the smallest number of people you need in a group so that the probability of 2 or more people having the same birthday is greater than 1/2? zAnswer: 23 No. of people Probability

Example: Birthday Problem zA={at least 2 people in the group have a common birthday} zA’ = {no one has common birthday}

Unions: , or Intersections: , and A  A 

Mutually Exclusive (Disjoint) Events zMutually exclusive or disjoint events-no outcomes from S in common A and B disjoint: A  B=  A and B not disjoint A  A  Venn Diagrams

Addition Rule for Disjoint Events 4. If A and B are disjoint events, then P(A or B) = P(A) + P(B)

Laws of Probability (cont.) General Addition Rule 5. For any two events A and B P(A or B) = P(A) + P(B) – P(A and B)

20 For any two events A and B P(A or B) = P(A) + P(B) - P(A and B) A B P(A) =6/13 P(B) =5/13 P(A and B) =3/13 A or B + _ P(A or B) = 8/13 General Addition Rule

Laws of Probability: Summary z1. 0  P(A)  1 for any event A z2. P(  ) = 0, P(S) = 1 z3. P(A’) = 1 – P(A) z4. If A and B are disjoint events, then P(A or B) = P(A) + P(B) z5. For any two events A and B, P(A or B) = P(A) + P(B) – P(A and B)

M&M candies ColorBrownRedYellowGreenOrangeBlue Probability ? If you draw an M&M candy at random from a bag, the candy will have one of six colors. The probability of drawing each color depends on the proportions manufactured, as described here : What is the probability that an M&M chosen at random is blue? What is the probability that a random M&M is any of red, yellow, or orange? S = {brown, red, yellow, green, orange, blue} P(S) = P(brown) + P(red) + P(yellow) + P(green) + P(orange) + P(blue) = 1 P(blue) = 1 – [P(brown) + P(red) + P(yellow) + P(green) + P(orange)] = 1 – [ ] = 0.1 P(red or yellow or orange) = P(red) + P(yellow) + P(orange) = = 0.5

Example: toss a fair die once S = {1, 2, 3, 4, 5, 6} zA = even # appears = {2, 4, 6} zB = 3 or fewer = {1, 2, 3}  P(A or  B) = P(A) + P(B) - P(A and  B) =P({2, 4, 6}) + P({1, 2, 3}) - P({2}) = 3/6 + 3/6 - 1/6 = 5/6

THE RELATIONSHIP BETWEEN ODDS AND PROBABILITIES World Series Odds The odds at the above link are the odds against a team winning the World Series, though the author claims they’re “odds for winning the World Series” Odds are frequently a source of confusion. Odds for? Odds against? From probability to odds From odds to probability

From Probability to Odds zIf event A has probability P(A), then the odds in favor of A are P(A) to 1-P(A). It follows that the odds against A are 1-P(A) to P(A) z If the probability of an earthquake in California is.25, then the odds in favor of an earthquake are.25 to.75 or 1 to 3. The odds against an earthquake are.75 to.25 or 3 to 1

From Odds to Probability zIf the odds in favor of an event E are a to b, then P(E)=a/(a+b) zin addition, P(E’)=b/(a+b) z If the odds in favor of UNC winning the NCAA’s are 3 (a) to 1 (b), then P(UNC wins)=3/4 P(UNC does not win)= 1/4

Probability Models The Equally Likely Approach (also called the Classical Approach)

Assigning Probabilities zIf an experiment has N outcomes, then each outcome has probability 1/N of occurring zIf an event A 1 has n 1 outcomes, then P(A 1 ) = n 1 /N

Dice You toss two dice. What is the probability of the outcomes summing to 5? There are 36 possible outcomes in S, all equally likely (given fair dice). Thus, the probability of any one of them is 1/36. P(the roll of two dice sums to 5) = P(1,4) + P(2,3) + P(3,2) + P(4,1) = 4 / 36 = This is S: {(1,1), (1,2), (1,3), ……etc.}

We Need Efficient Methods for Counting Outcomes

Product Rule for Ordered Pairs zA student wishes to commute to a junior college for 2 years and then commute to a state college for 2 years. Within commuting distance there are 4 junior colleges and 3 state colleges. How many junior college-state college pairs are available to her?

Product Rule for Ordered Pairs zjunior colleges: 1, 2, 3, 4 zstate colleges a, b, c zpossible pairs: (1, a) (1, b) (1, c) (2, a) (2, b) (2, c) (3, a) (3, b) (3, c) (4, a) (4, b) (4, c)

Product Rule for Ordered Pairs zjunior colleges: 1, 2, 3, 4 zstate colleges a, b, c zpossible pairs: (1, a) (1, b) (1, c) (2, a) (2, b) (2, c) (3, a) (3, b) (3, c) (4, a) (4, b) (4, c) 4 junior colleges 3 state colleges total number of possible pairs = 4 x 3 = 12 4 junior colleges 3 state colleges total number of possible pairs = 4 x 3 = 12

Product Rule for Ordered Pairs zjunior colleges: 1, 2, 3, 4 zstate colleges a, b, c zpossible pairs: (1, a) (1, b) (1, c) (2, a) (2, b) (2, c) (3, a) (3, b) (3, c) (4, a) (4, b) (4, c) In general, if there are n 1 ways to choose the first element of the pair, and n 2 ways to choose the second element, then the number of possible pairs is n 1 n 2. Here n 1 = 4, n 2 = 3. In general, if there are n 1 ways to choose the first element of the pair, and n 2 ways to choose the second element, then the number of possible pairs is n 1 n 2. Here n 1 = 4, n 2 = 3.

Counting in “Either-Or” Situations NCAA Basketball Tournament: how many ways can the “bracket” be filled out? 1.How many games? 2.2 choices for each game 3.Number of ways to fill out the bracket: 2 63 = 9.2 × Earth pop. about 6 billion; everyone fills out 1 million different brackets Chances of getting all games correct is about 1 in 1,000

Counting Example zPollsters minimize lead-in effect by rearranging the order of the questions on a survey zIf Gallup has a 5-question survey, how many different versions of the survey are required if all possible arrangements of the questions are included?

Solution zThere are 5 possible choices for the first question, 4 remaining questions for the second question, 3 choices for the third question, 2 choices for the fourth question, and 1 choice for the fifth question. zThe number of possible arrangements is therefore 5  4  3  2  1 = 120

Efficient Methods for Counting Outcomes zFactorial Notation: n!=1  2  …  n zExamples 1!=1; 2!=1  2=2; 3!= 1  2  3=6; 4!=24; 5!=120; zSpecial definition: 0!=1

Factorials with calculators and Excel zCalculator: non-graphing: x ! (second function) graphing: bottom p. 9 T I Calculator Commands (math button) zExcel: Insert function: Math and Trig category, FACT function

Factorial Examples z20! = 2.43 x z1,000,000 seconds? zAbout 11.5 days z1,000,000,000 seconds? zAbout 31 years z31 years = 10 9 seconds z10 18 = 10 9 x 10 9 z20! is roughly the age of the universe in seconds

Permutations A B C D E zHow many ways can we choose 2 letters from the above 5, without replacement, when the order in which we choose the letters is important? z5  4 = 20

Permutations (cont.)

Permutations with calculator and Excel zCalculator non-graphing: nPr zGraphing p. 9 of T I Calculator Commands (math button) zExcel Insert function: Statistical, Permut

Combinations A B C D E zHow many ways can we choose 2 letters from the above 5, without replacement, when the order in which we choose the letters is not important? z5  4 = 20 when order important  Divide by 2: (5  4)/2 = 10 ways

Combinations (cont.)

ST 311 Powerball Lottery From the numbers 1 through 20, choose 6 different numbers. Write them on a piece of paper.

And the numbers are... z1616 z1111 z2z2 z1010 z8z8 z4z4 wow scream

Chances of Winning?

Example: Illinois State Lottery

North Carolina Powerball Lottery Prior to Jan. 1, 2009 After Jan. 1, 2009

The Forrest Gump Visualization of Your Lottery Chances zHow large is 195,249,054? z$1 bill and $100 bill both 6” in length z10,560 bills = 1 mile zLet’s start with 195,249,053 $1 bills and one $100 bill … z… and take a long walk, putting down bills end-to-end as we go

Raleigh to Ft. Lauderdale… … still plenty of bills remaining, so continue from …

… Ft. Lauderdale to San Diego … still plenty of bills remaining, so continue from…

… San Diego to Seattle

… still plenty of bills remaining, so continue from … … Seattle to New York

… still plenty of bills remaining, so … … New York back to Raleigh

Go around again! Lay a second path of bills Still have ~ 5,000 bills left!!

Chances of Winning NC Powerball Lottery? zRemember: one of the bills you put down is a $100 bill; all others are $1 bills. zPut on a blindfold and begin walking along the trail of bills. zYour chance of winning the lottery is the same as your chance of selecting the $100 bill if you stop at a random location along the trail and pick up a bill.

Virginia State Lottery

Probability Trees A Graphical Method for Complicated Probability Problems

Probability Tree Example: probability of playing professional baseball  6.1% of high school baseball players play college baseball. Of these, 9.4% will play professionally.  Unlike football and basketball, high school players can also go directly to professional baseball without playing in college…  studies have shown that given that a high school player does not compete in college, the probability he plays professionally is.002. Question 1: What is the probability that a high school baseball player ultimately plays professional baseball? Question 2: Given that a high school baseball player played professionally, what is the probability he played in college?

Question 1: What is the probability that a high school baseball player ultimately plays professional baseball? P(hs bb player plays professionally) =.061* *.002 = = *.094= *.002=

Question 2: Given that a high school baseball player played professionally, what is the probability he played in college?.061*.094= *.002= P(hs bb player plays professionally) = = *.094=

Example: AIDS Testing zV={person has HIV}; CDC: Pr(V)=.006 zP : test outcome is positive (test indicates HIV present) zN : test outcome is negative zclinical reliabilities for a new HIV test: 1.If a person has the virus, the test result will be positive with probability If a person does not have the virus, the test result will be negative with probability.990

Question 1 zWhat is the probability that a randomly selected person will test positive?

Probability Tree Approach zA probability tree is a useful way to visualize this problem and to find the desired probability.

Probability Tree Multiply branch probs clinical reliability

Question 1: What is the probability that a randomly selected person will test positive?

Question 2 zIf your test comes back positive, what is the probability that you have HIV? (Remember: we know that if a person has the virus, the test result will be positive with probability.999; if a person does not have the virus, the test result will be negative with probability.990). zLooks very reliable

Question 2: If your test comes back positive, what is the probability that you have HIV?

Summary zQuestion 1: zPr(P ) = = zQuestion 2: two sequences of branches lead to positive test; only 1 sequence represented people who have HIV. Pr(person has HIV given that test is positive) =.00599/( ) =.376

Recap zWe have a test with very high clinical reliabilities: 1.If a person has the virus, the test result will be positive with probability If a person does not have the virus, the test result will be negative with probability.990 zBut we have extremely poor performance when the test is positive: Pr(person has HIV given that test is positive) =.376 zIn other words, 62.4% of the positives are false positives! Why? zWhen the characteristic the test is looking for is rare, most positives will be false.

examples 1. P(A)=.3, P(B)=.4; if A and B are mutually exclusive events, then P(A  B)=? A  B = , P(A  B) = entries in pie baking contest at state fair. Judge must determine 1 st, 2 nd, 3 rd place winners. How many ways can judge make the awards? 15 P 3 = 2730