Probability Formal study of uncertainty The engine that drives statistics.

Slides:



Advertisements
Similar presentations
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Advertisements

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.
Chapter 4 Probability and Probability Distributions
COUNTING AND PROBABILITY
From Randomness to Probability
Chapter 14 Probability Basics Laws of Probability Odds and Probability Probability Trees.
Chapter 3 Probability.
1 Probability Parts of life are uncertain. Using notions of probability provide a way to deal with the uncertainty.
Class notes for ISE 201 San Jose State University
Section 4.1 (cont.) Probability Trees A Graphical Method for Complicated Probability Problems.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
CHAPTER 5 PROBABILITY. CARDS & DICE BLACKRED CLUBSPADEDIAMONDHEARTTOTAL ACE11114 FACE CARD (K, Q, J) NUMBERED CARD (1-9) TOTAL13 52.
Lecture II.  Using the example from Birenens Chapter 1: Assume we are interested in the game Texas lotto (similar to Florida lotto).  In this game,
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
Chapter 4 Probability See.
Counting Principles (Permutations and Combinations )
Overview 5.1 Introducing Probability 5.2 Combining Events
Chapter 4 Probability 4-1 Overview 4-2 Fundamentals 4-3 Addition Rule
5.1 Basic Probability Ideas
Lecture Discrete Probability. 5.1 Probabilities Important in study of complexity of algorithms. Modeling the uncertain world: information, data.
10/1/20151 Math a Sample Space, Events, and Probabilities of Events.
Sample space The set of all possible outcomes of a chance experiment –Roll a dieS={1,2,3,4,5,6} –Pick a cardS={A-K for ♠, ♥, ♣ & ♦} We want to know the.
1 Probability. 2 Today’s plan Probability Notations Laws of probability.
AP Statistics Chapter 6 Notes. Probability Terms Random: Individual outcomes are uncertain, but there is a predictable distribution of outcomes in the.
Chapters 14 and 15 Probability Basics Probability Fundamentals Counting Rules Applied to the Equally Likely Model.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
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.
LECTURE 15 THURSDAY, 15 OCTOBER STA 291 Fall
Introduction to Probability  Probability is a numerical measure of the likelihood that an event will occur.  Probability values are always assigned on.
Rev.F081 STA 2023 Module 4 Probability Concepts. Rev.F082 Learning Objectives Upon completing this module, you should be able to: 1.Compute probabilities.
 History and Relevance of probability theory Probability theory began with the study of game of chance that were related to gambling, like throwing a.
Basic Probability Rules Let’s Keep it Simple. A Probability Event An event is one possible outcome or a set of outcomes of a random phenomenon. For example,
LECTURE 14 TUESDAY, 13 OCTOBER STA 291 Fall
Probability Formal study of uncertainty The engine that drives statistics Primary objective of lecture unit 4: use the rules of probability to calculate.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
1 CHAPTERS 14 AND 15 (Intro Stats – 3 edition) PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY.
Copyright © 2010 Pearson Education, Inc. Chapter 6 Probability.
1 Chapter 4 – Probability An Introduction. 2 Chapter Outline – Part 1  Experiments, Counting Rules, and Assigning Probabilities  Events and Their Probability.
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
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: Terminology  Sample Space  Set of all possible outcomes of a random experiment.  Random Experiment  Any activity resulting in uncertain.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Introduction Remember that probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to.
5-Minute Check on Section 6-2a Click the mouse button or press the Space Bar to display the answers. 1.If you have a choice from 6 shirts, 5 pants, 10.
Probability. Randomness When we produce data by randomized procedures, the laws of probability answer the question, “What would happen if we did this.
FORMAL STUDY OF UNCERTAINTY THE ENGINE THAT DRIVES STATISTICS 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.
AP Statistics From Randomness to Probability Chapter 14.
Chapters 13, 14, Part 1 Probability Basics Laws of Probability Odds and Probability Probability Trees.
Chapter 4 Some basic Probability Concepts 1-1. Learning Objectives  To learn the concept of the sample space associated with a random experiment.  To.
Math a - Sample Space - Events - Definition of Probabilities
Chapter 4 Probability Concepts
PROBABILITY AND PROBABILITY RULES
Probability ·  fraction that tells how likely something is to happen ·   the relative frequency that an event will occur.
Chapters 4 Probability Distributions
What is Probability? Quantification of uncertainty.
Probability and counting
Unit 4 Probability Basics
Introduction Remember that probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to.
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.
Formal study of uncertainty The engine that drives statistics
Presentation transcript:

Probability Formal study of uncertainty The engine that drives statistics

Introduction Nothing in life is certain We gauge the chances of successful outcomes in business, medicine, weather, and other everyday situations such as the lottery (recall the birthday problem)

History For most of human history, probability, the formal study of the laws of chance, has been used for only one thing: gambling

History (cont.) Nobody knows exactly when gambling began; goes back at least as far as ancient Egypt where 4-sided “astragali” (made from animal heelbones) were used

History (cont.) The Roman emperor Claudius (10BC-54AD) wrote the first known treatise on gambling. The book “How to Win at Gambling” was lost. Rule 1: Let Caesar win IV out of V times

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

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

Basic Definitions Experiment: act or process that leads to a single outcome that cannot be predicted with certainty Examples: 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.) Sample space: all possible outcomes of an experiment. Denoted by S Event: any subset of the sample space S; typically denoted A, B, C, etc. Simple event: event with only 1 outcome Null event: the empty set  Certain event: S

Examples 1.Toss a coin once S = {H, T}; A = {H}, B = {T} simple events 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}

Laws of Probability

Laws of Probability (cont.) 3.P(A’ ) = 1 - P(A) For an event A, A’ is the complement of A; A’ is everything in S that is not in A. A A' S

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 than 1/2? Answer: 23 No. of people Probability

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

Unions and Intersections S A B A  A 

Mutually Exclusive Events Mutually exclusive events-no outcomes from S in common S A B A  = 

Laws of Probability (cont.) Addition Rule for Disjoint Events: 4. If A and B are disjoint events, then P(A  B) = P(A) + P(B)

5. For two independent events A and B P(A  B) = P(A) × P(B)

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

P(A  B)=P(A) + P(B) - P(A  B) S AB A 

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

Laws of Probability: Summary 1. 0  P(A)  1 for any event A 2. P(  ) = 0, P(S) = 1 3. P(A’) = 1 – P(A) 4. If A and B are disjoint events, then P(A  B) = P(A) + P(B) 5. If A and B are independent events, then P(A  B) = P(A) × P(B) 6. For any two events A and B, P(A  B) = P(A) + P(B) – P(A  B)

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

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

We Need Efficient Methods for Counting Outcomes

Product Rule for Ordered Pairs A 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 junior colleges: 1, 2, 3, 4 state colleges a, b, c possible 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 junior colleges: 1, 2, 3, 4 state colleges a, b, c possible 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 junior colleges: 1, 2, 3, 4 state colleges a, b, c possible 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 Pollsters minimize lead-in effect by rearranging the order of the questions on a survey If 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 There 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. The number of possible arrangements is therefore 5  4  3  2  1 = 120

Efficient Methods for Counting Outcomes Factorial Notation: n!=1  2  …  n Examples 1!=1; 2!=1  2=2; 3!= 1  2  3=6; 4!=24; 5!=120; Special definition: 0!=1

Factorials with calculators and Excel Calculator: non-graphing: x ! (second function) graphing: bottom p. 9 T I Calculator Commands (math button) Excel: Paste: math, fact

Factorial Examples 20! = 2.43 x ,000,000 seconds? About 11.5 days 1,000,000,000 seconds? About 31 years 31 years = 10 9 seconds = 10 9 x x 10 9 years = 10 9 x 10 9 = seconds 20! is roughly the age of the universe in seconds

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

Permutations (cont.)

Permutations with calculator and Excel Calculator non-graphing: nPr Graphing p. 9 of T I Calculator Commands (math button) Excel Paste: Statistical, Permut

Combinations A B C D E How 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? 5  4 = 20 when order important Divide by 2: (5  4)/2 = 10 ways

Combinations (cont.)

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

Chances of Winning?

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

Visualize Your Lottery Chances How large is 195,249,054? $1 bill and $100 bill both 6” in length 10,560 bills = 1 mile Let’s start with 195,249,053 $1 bills and one $100 bill … … 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? Remember: one of the bills you put down is a $100 bill; all others are $1 bills Your chance of winning the lottery is the same as bending over and picking up the $100 bill while walking the route blindfolded.

Example: Illinois State Lottery

Virginia State Lottery

Probability Trees A Graphical Method for Complicated Probability Problems

Example: AIDS Testing V={person has HIV}; CDC: P(V)=.006 +: test outcome is positive (test indicates HIV present) -: test outcome is negative clinical 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 What is the probability that a randomly selected person will test positive?

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

Probability Tree clinical reliability

Probability Tree Multiply branch probs clinical reliability

Question 1 Answer What is the probability that a randomly selected person will test positive? P(+) = =.01593

Question 2 If 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). Looks very reliable

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

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

Recap We 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 But we have extremely poor performance when the test is positive: P(person has HIV given that test is positive) =.376 In other words, 62.4% of the positives are false positives! Why? When 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