Probability Chapter 3 Prof. Felix Apfaltrer Office:N518 Office Hours: 10:30am-noon Phone: 212-220 7421.

Slides:



Advertisements
Similar presentations
Overview Fundamentals
Advertisements

Probability Simple Events
Chapter 3 Probability.
HW problems 3-2 p. 121 #14. A study of 150 randomly selected American Airlines flights showed that 108 arrived on time (DOT). a) What is the probability.
Chapter 3 Probability 3-1 Overview 3-2 Fundamentals 3-3 Addition Rule
Measures of Center and Variation Prof. Felix Apfaltrer Office:N518 Phone: X7421 Office hours: Tue, Thu 1:30-3pm.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Created by Tom Wegleitner, Centreville, Virginia Section 4-2.
Chapter 4 Basic Probability
Agresti/Franklin Statistics, 1 of 87 Chapter 5 Probability in Our Daily Lives Learn …. About probability – the way we quantify uncertainty How to measure.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Section 4-2 Basic Concepts of Probability.
CHAPTER 5 PROBABILITY. CARDS & DICE BLACKRED CLUBSPADEDIAMONDHEARTTOTAL ACE11114 FACE CARD (K, Q, J) NUMBERED CARD (1-9) TOTAL13 52.
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
Chapter 4 Probability Lecture 1 Sections: 4.1 – 4.2.
Chapter 4 Probability See.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Chapter 4 Probability 4-1 Overview 4-2 Fundamentals 4-3 Addition.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Chapter 4 Probability 4-1 Overview 4-2 Fundamentals 4-3 Addition Rule
Chapter 1 Basics of Probability.
Sections 4-1 and 4-2 Review and Preview and Fundamentals.
Slide 1 Definition Figures 3-4 and 3-5 Events A and B are disjoint (or mutually exclusive) if they cannot both occur together.
5.1 Basic Probability Ideas
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Basic Principle of Statistics: Rare Event Rule If, under a given assumption,
1 Chapter 3. Section 3-1 and 3-2. Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
Chapter 4 Probability 4-1 Overview 4-2 Fundamentals 4-3 Addition Rule
1 Chapter 3. Section 3-1 and 3-2. Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
BIOSTATISTICS Topic: Probability 郭士逢 輔大生科系 2007 Note: These slides are made for teaching purpose only, with contents from the textbook, Biostatistics for.
1  Event - any collection of results or outcomes from some procedure  Simple event - any outcome or event that cannot be broken down into simpler components.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Chapter 4 Probability 4-1 Review and Preview 4-2 Basic Concepts of Probability.
3.1 & 3.2: Fundamentals of Probability Objective: To understand and apply the basic probability rules and theorems CHS Statistics.
1 Chapter 3 Probability 3-1 Fundamentals 3-2 Addition Rule 3-3 Multiplication Rule: Basics 3-4 Multiplication Rule: Complements and Conditional Probability.
Warm-Up 1. What is Benford’s Law?
You probability wonder what we’re going to do next!
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Preview Rare Event Rule for Inferential Statistics: If, under a given assumption, the probability.
Larson/Farber Ch. 3 Weather forecast Psychology Games Sports 3 Elementary Statistics Larson Farber Business Medicine Probability.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
IT College Introduction to Computer Statistical Packages Lecture 8 Eng. Heba Hamad.
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.
Copyright © 2010 Pearson Education, Inc. Slide
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
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Slide Slide 1 Fundamentals of Probability. Slide Slide 2 A chance experiment is any activity or situation in which there is uncertainty about which of.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Probability Theory Rahul Jain. Probabilistic Experiment A Probabilistic Experiment is a situation in which – More than one thing can happen – The outcome.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
1 Chapter 4, Part 1 Basic ideas of Probability Relative Frequency, Classical Probability Compound Events, The Addition Rule Disjoint Events.
Chapter 4 Probability 4-1 Review and Preview 4-2 Basic Concepts of Probability 4-3 Addition Rule 4-4 Multiplication Rule: Basics 4-5 Multiplication Rule:
1 C.M. Pascual S TATISTICS Chapter 5b Probability Addition Rule.
Copyright ©2004 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4-1 Probability and Counting Rules CHAPTER 4.
Probability. Definitions Probability: The chance of an event occurring. Probability Experiments: A process that leads to well- defined results called.
1 Copyright © 1998, Triola, Elementary Statistics Addison Wesley Longman Probability Chapter 3 M A R I O F. T R I O L A Copyright © 1998, Triola, Elementary.
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.
4.5 through 4.9 Probability continued…. Today’s Agenda Go over page 158 (49 – 52, 54 – 58 even) Go over 4.5 and 4.6 notes Class work: page 158 (53 – 57.
13 Lesson 1 Let Me Count the Ways Fundamental Counting Principle, Permutations & Combinations CP Probability and Statistics FA 2014 S-ID.1S-CP.3S-CP.5.
Essential Ideas for The Nature of Probability
Section 2 Probability William Christensen, Ph.D..
Elementary Probability Theory
Chapter 4 Probability Concepts
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Lecture Slides Elementary Statistics Eleventh Edition
Elementary Statistics
Chapter 3 Probability.
CHAPTER 4 PROBABILITY Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
Presentation transcript:

Probability Chapter 3 Prof. Felix Apfaltrer Office:N518 Office Hours: 10:30am-noon Phone:

2 False positives and negatives False positive: test incorrectly indicates woman pregnant when she is not. False negative: test incorrectly indicates woman is not pregnant when she is pregnant. True positive: test correctly indicates woman pregnant when she is. True negative: test correctly indicates woman not pregnant when she is not. Test sensitivity: the probability of a true positive. Test specificity: the probability of a true negative. Ex: Abbot test pack indicates that their urinte test has a 0.2% false positive and a 0.6% false negative rate.

3 Overview Rare event rule: If under a given assumption (lottery is fair) the probability of a particular observed event (5 consecutive lottery wins by the same person) is extremely small, the assumption is probably not correct.

4 Fundamentals Definitions: Procedure: rolling a die, 2 dice, tossing a coin, … A procedure is an action whose outcome(s) (result) is (are) random. Event: Any collection of outcomes of a procedure. Simple events: an event that cannot be simplified even further. Sample space of a procedure: The set of all simple events. Examples: Procedure: rolling a die, 2 dice, Event: For 1 die, any of 1,2,3,4, 5,6, “even”, greater than 3”. For 2 dice: “sum is 7”, “sum is bigger than 10”, “1-1”, “1-2”, “2- 1”, “both even”. Simple events: for 1 die:1, 2, 3,4, 5, 6. For 2 dice: 1-1, 1-2,1-3,1- 4,1-5,1-6, 2-1, 2-2, 2-3, 2-4, 2-5, 2-6, 3-1, …, 6-6 Sample space of a procedure: The set of all simple events. Notation: P probability A, B, C specific events P(A)the probability of the event A occurring

5 Defining a probability Relative Frequency Approach: Observe a procedure a large number of times and count the number of times that event A occurs, then P(A) is estimated by Examples: A tack falls up: repeat the experiment 1000 times and count how many times the tack falls up, then P(A) is the ratio of number it falls up over the number of times the tack was thrown. number of trials P(A)= number of times A occurs Classical Approach: If a procedure has n simple (different) events that can occur that are equally likely, and there are s different ways that A can occur then number of simple events P(A)= number of ways A can occur = s n Subjective Probability: P(A), the probability of the event A, is found by based on knowledge of relevant circumstances. Total # of options P(even)= # of ways face even = 3 6 Weather forecast: need to be expert to estimate wisely if it will rain tomorrow or not. Rolling a die: assuming the die is not loaded each face has the same chance of falling upside

6 More examples Flying on a commercial plane. Find the probability that a random selected adult has flown on a plane. 2 events: flown, or not. events not equally likely (cannot use classical approach) use relative frequency approach. Gallup poll: 815 randomly selected adults, 710 indicated the have flown Roulette: Bet on number 13 on a roulette game. What is the probability that you will lose? 38 slots, all equally likely, use classic approach. 37 result in loss. P(flew on commercial plane)= = P(loss)= Meteorites: What is the probability that your house will be hit by a meteorite? In absence of historical data, need 3rd approach. We know the chance is very small, say 0.000,000,001. This is a subjective estimate. A general ballpark.

7 Law of large numbers Law of large numbers: As a procedure is repeated again and again, the relative frequency probability of an event tends to approach the actual probability. 319 for 133against 39 no opinion 491 total P(for)= = Example: 2 boys, 1 girl. What is that when a couple has 3 children, exactly 2 out of the 3 are boys. Assuming that having boys or girls is equally likely, use classical approach. Options are: –boy-boy-boy –boy-boy-girl –boy-girl-boy –boy-girl-girl –girl-boy-boy –girl-boy-girl –girl-girl-boy –girl-girl-girl 8 possible outcomes, 3 correspond to exactly 2 boys P(A) s n Example: Death penalty. In a Gallup poll, adults are randomly selected and asked if they are in favor or against the death penalty. The responses include 319 who are for it, 133 who are against it, and 39 that have no opinion. Based on these results, estimate the probability that a randomly selected person is in favor of the death penalty. P(exaclty 3 boys)= =

8 Complementary probabilities and properties Thanksgiving day. What is the probability that Thanksgiving day falls on a a)Wednesday? b)Thursday? –Thanksgiving is always on a Thursday! a)Impossible: P(Thxgiv. Wed)=0 b)Always true: P(Thxgiv. Thu)=1 Examples: If X denotes the number the face a die shows when it lands, then –P( X = 7 ) = 0 –P( X ≤ 7 ) = 1 –P( X not even ) = 1- P( X even ) –P( { X ≤ 2} c ) = 1 - P( { X ≤ 2 } ) = 1 - 2/6 = 4/6 = 2/3 = P( X > 2 ) –P( X ≥0 ) = 1 –For any event A, P(A)≥0 –P(A)=0 only if A cannot happen –For any event A, P(A ) ≤ 1 –P(A)=1 exactly only if A happens for sure If Y denotes the sum of the numbers on the faces when throwing 2 dice: –P( Y = 1) =0 –P( 2 ≤ Y ≤ 12 ) =1 –P(Y=4) = 3/36 namely 1-3, 2-2, and 3-1 –P({Y=2} c ) = 1-P(Y=2)=1-1/36 = 35/36 The probability of the impossible event is 0. P(  ) =0. The probability of the certain event is 1. P(  ) =1. For any event A, 0 ≤ P(A) ≤ 1. If A c denotes the complement event to A, then P(A)+P(A c )=1 HW: p.120 #1-7

9 Addition Rule A compound event is an event combining 2 or more simple events. Events A and B are disjoint (or mutually exclusive) if they cannot both occur together. In such a case, the intersection of the events is empty: A  B = ø and we recall that P( ø ) = 0. We then have P(A  B) = P(A) + P(B) B A ABAB  A B  Notation: P(A  B)intersection of A and B (both A and B occur) P(A  B) union of A and B (either A or B or both occur) Addition Rule: P(A  B) = P(A) + P(B) – P(A  B) Mendel: hybridization experi- ments. Peas with purple (p) and white (w) flowers, green (g) and yellow (y) pods. 8 p 9 g 6 w5 y P(g  p) = 9/14 + 8/14 – 5/14 = P(g) + P(p) – P(g  p) Idea: count data only once! Venn diagrams Overlapping eventsNon-Overlapping events (disjoint) P(A  B ) = P(A ) + P( B ) – P( A  B) +=–

10 Examples: addition rule Clinical trials of pregnancy test: Assuming that 1 person is selected at random from the 99 people in the test, find the probability of selecting a subject who is pregnant or had a positive test result. P(pregnant) = (80 + 5)/99 P(test positive) = (80 +3 ) / 99 P(pregnant and test positive) = 80 / 99 P(pregnant or test positive) = P(pregnant) + P(test positive) - P(pregnant and test positive) = 85/ / /99 = 88/99 = 8/9 = Alternatively P(pregnant or positive)= P(pregnant and positive) + P(pregnant and negative) + P (not pregnant but positive) = 80/99 + 5/99 + 3/99 Note that Pregnant =(pregnant & pos) + (preg. & neg) Positive = (pregnant & pos) + (pos. & not preg.) Substract to avoid double counting!

11 Multiplication rule P( A and B ) = P( A  B ) Example: Answer at random 1.True/false: A pound of feathers is heavier than a pound of gold. 2.Which has affected society most: a)Remote control b)Sneakers with high heels c)Hostess twinkies d)Computers e)Phone To answer at random q. 1, each choice has probability 1/2. To answer at random q. 2, each choice has probability 1/5. P(both answers correct) = P( T and (d) ) = 1/2 * 1/5 =1 / 10 = P(T )  P(d ) a T F b c d e a b c d e HW: p.130 #13-20

12 Multiplication rule: independent event If events A and B are independent, then P( A  B ) = P(A)  P(B ) Independence: occurrence of 1 event does not affect the other. Example: Throwing 2 dice. What is the probability that the first number is even and the second one is larger than 4. Answer: Independent? YES! A: 1st die even B: second die larger than 4 P(A ) = 3/6 = 1/2 P(B) = P(“face shows 5 or 6”) = 2 / 6 = 1/3 P(A  B ) = P (A) P(B ) = 1/2  1/3 = 1/6 Alternatively: from graph there are 6 options that are good: 2-5, 2-6, 4-5,4-6, 6-5,6- 6: P(A  B ) = 6/36 = 1/6 #1#1 #2#2#1 #2#2 #1#1 #2#2 #1#1 #2#2 #1#1 #2#2 #1#1 #2#

13 Multiplication rule (without replacement) Genetics experiments: If 2 peas are chosen at random without replacement, what is the probability that the first one has a green pod and the second one a yellow one? 1 st selection: P(g) = 9/14 (14 peas, 9 green pods) 2 nd selection: P(y) = 5/13 (13 peas left, 5 yellow pods) P(g first, y second) = P(g)P(y) = 9/14  5/13 = Must take into account : without replacement Second pea chosen out of only 13 peas! First event should take into account the fact that the first one occurred!

14 Conditional Probability P( B | A) conditional probability of B given A probability of event B occurring given that event A has occurred P( A | B) conditional probability of A given B probability of event A occurring given that event B has occurred General multiplication rule: P(A and B) = P( A | B)  P(B) Examples: CD control damage: Water, Crushing, Puncture, Marking 5 damaged items: W, C, C, P, M, 2 items are selected randomly … a)With replacement probability of first item C, second item C. P(CC) = 2/5  2/5 = 4/25= 0.16 b)Without replacement: P(CC). P(CC) = 2/5  1/4 = 2/20= 0.1

15 More multiplication examples Probability of 4 aces in 4 cards: P(4 aces) = 4/52  3/51  2/50  1/49 = P( 0 DVDs defect) = P(all 200 ok) P(1 dvd ok) = 0.97 –(assuming old 3% defect rate, then 97% are good, or 0.97 ) Assume independence –(sample 5% or less from 5000): P(200 DVDs  ) = P( DVD 1 ok and DVD 2 ok and DVD ok … and DVD 200 ok) =P( DVD 1  )  P( DVD 2  )  …  P( DVD 200  ) = 0.97  0.97  ….  0.97 = = This probability is so small (rare event) that it indicates that it is very unlikely to have “by chance” not found any defect DVDs in the 200 DVD sample. Instead, it is more likely that the defect rate is lower. Pollsters sample without replacement, but treat events as independent if sample size is less than 5% of population. Quality control: -Former DVD defect rate: 3% -New DVD process. Claimed better! DVDs produced -200 sampled, 0 defect Is the claim plausible?

16 Homework problems Defective gas masks: 19, 218 gas masks from US military were tested, 10,332 defective. Find the probability that 2 random gas masks from this population are defective, if the sampling is done a)with replacement. b)without replacement. c)Compare and decide which to choose in this case. a)10332/19218  10332/19218= b)10332/19218  10331/19217= c)The results are VERY similar, it makes more sense use the first case, with replacement, because for a random selection of 2, it is very very unlikely that the same mask is chosen twice. Therefore, we can assume independence Poll confidence levels: Public opinion polls usually have a “confidence level” of 95%, meaning that with a probability of 0.95, the poll results are within the margin of error. If 5 different groups conduct independent polls, what is the probability that all of them fall within the margin of error? P(5 polls  )=P(poll  ) 5 = = Does the result suggest that with a confidence level of 95%, we can expect that almost all polls will be within the margin of error? Yes, in average 77 out of 100 polls will be within the margin of average, or 4 out of 5 will be.

17 “At least one” event At least one = one or more Complement: none! P(at least one girl among 3 children) = 1- P(no girl) =1-1/8 =7/8 =0.875 P(at least one poll within confidence interval) =1- P(no poll good) =1- [ ] = happens always! boy-boy-boy boy-boy-girl boy-girl-boy boy-girl-girl girl-boy-boy girl-boy-girl girl-girl-boy girl-girl-girl The conditional probability of the event A given B is denoted by P(A | B) and it is the probability that A occurs knowing that B has occurred already Example: 1 subject is selected randomly, find the probability of a subject being positive, given that she is pregnant. Conditional probability P(pos|pregnant) = 80/85=0.941 or = P(positive and pregnant) P(pregnant) = 80/99 = /99 HW: p.138 #7, 11, 13, 14

18 Conditional Probability Titanic P(man |died) P(died |men) P(boy or girl |survived) P(man or woman | died) P(man|died) = P(man & died)/P(died) = 1360/1517=0.897 P(died |man) = P(man & died )/P(man) = 1360/1692=0.804 P(boy or girl |survived)=P( {boy or girl} & survived)/P(survived)=57/706=0.079 P((man or woman | died) )=P({man or woman}& died)/P(died)=1464/1517=0.965 NOTE: P(man & died) = 1360 / 2223 = 1360 = P(died) 1517 /

19 Counting Fundamental Counting rule: If event A can occur in m ways and event B in n ways, the events together can occur in a total of m  n ways. NOTATION: 3  2  1= 3 ! or 3 factorial. 4! = 4  3  2  1= 24, 5! = 5  4  3  2  1= 120 also 5! = 5  4! and note as well that for example7! /3! = 7  6  5  4  3  2  1/ 3  2  1 = 7  6  5  4 Examples: Combination lock: –3 dials with digits 0-9. Total # of combinations: 10  10  10 = 10 3 =1000. –bikelock 4 dials digits  6  6  6= 6 4 =1296. Arrangements of ABC: ABC, ACB, BAC, BCA, CAB, CBA = 6 In 3 spots, we have __3__ __2__ __1__ 3 choices for first spot, 2 for second and 1 for last, or 3  2  1=6.

20 Factorials and permutations Examples: Ways of sitting 20 student in class with 20 chairs: 20!=2,432,902,008,176,640,000 Arrangements of ABC: ABC, ACB, BAC, BCA, CAB, CBA, totaling 6 arrangements. In 3 spots, we have __3__ __2__ __1__ 3 choices for first spot, 2 for second and 1 for last, or 3  2  1=6. Ways of sitting 4 of the 20 students in 4 preassigned chairs: 20  19  18  17 = 20! / 16! = 20! / (20-4)! = 20 P 4 =116,280 20! / 16! = 20  19  18  17  16  15  …  3  2  1 / 16  15  …  3  2  1 = 20  19  18  17 In general, n P k = n! / (n - k)!= n (n-1)(n-2)… (n-k+1) n P k is called a permutation of k objects out of n total objects. A collection of n different objects can be arranged in n! different ways. In the 1st spot there are n possible items to place, in the second one, n-1, in the third one, n-2, …, in the penultimate one, 2, and in the last one, only 1 choice.

21 Permutations and Combinations Permutations (some items equal): If there are n items, n 1 alike, n 2 alike, … n k alike, the number of permutations of all items is Permutations Rule (all items differ, order does count): The number of permutations (or sequences) of k items selected from n available items (without replacement) is Combinations (order does not count): The number of combinations of k items selected from n different items (without replacement) is

22 Example: elected officers The boards of trustees of a college has 9 members. Each year, a 3 person committee is chosen. At the same time, the board elects 3 officers (Prez, VP, and secretary). a)How many slates of candidates for officers are possible? b)How many different 3-person committees can be chosen? b)Order does not count for committee. Therefore, combinations of k=3 people out of n=9 different people, or a)Order does count for board, it matters who is P, VP and S. Therefore, permutations of k=3 people out of n=9 different people, or

23 p.14 Is the pollster lying? A pollster claims that 12 voters were randomly selected from a population of 200,000 voters (of which 30% are Republican) and all 12 are Republican. He claims this can easily happen by chance. Find the probability that the 12 are Republican when randomly selected, to see if we believe the claim. Assuming independence: P(12 Repulicans) = P(#1 R)  P(#2 R)  P(#3 R)…  P(#12 R) = P( R ) 12 = =0.000,000,53 Something is very fishy!