86
Chapter 4 Elementary Probability Theory

Chapter 4 Elementary Probability Theory. What is Probability? Probability is a numerical measure between 0 and 1 that describes the likelihood that

Embed Size (px)

Citation preview

Page 1: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Chapter 4 Elementary Probability Theory

Page 2: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

What is Probability?

Probability is a numerical measure between 0 and 1 that describes the likelihood that an event will occur. Probabilities closer to 1 indicate that the event is more likely to occur. Probabilities closer to 0 indicated that the event is less likely to occur.

Page 3: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Note:

P(A) = probability of event A; you read it as “P of A”.

P(A)=1, the event A is certain to occur

P(A)=0, the event A is certain to not occur

Binary number works like this…1 means it’s true, 0 means false.

Page 4: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

See if you understand this statement:

“There are only 10 types of people in the world: those who understand binary, and those who don't”

Page 5: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Anyways…Probability Assignments

1) A probability assignment based on intuition incorporates past experience, judgment, or opinion to estimate the likelihood of an event

2) A probability assignment based on relative frequency uses the formula Probability of event=relative frequency=

Where f is the frequency of the event occurrence in a sample of n observations

3) A probability assignment based on equally likely outcomes uses the formula Probability of event=

Page 6: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Examples

Intuition – NBA announcer claims that Kobe makes 84% of his free throws. Based on this, he will have a high chance of making his next free throw.

Relative frequency – Auto Fix claims that the probability of Toyota breaking down is .10 based on a sample of 500 Toyota of which 50 broke down.

Equally likely outcome - You figure that if you guess on a SAT test, the probability of getting it right is .20

Page 7: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

Create a situation for each of the probability assignments. (intuition, relative frequency, equally likely outcome)

Show me

Page 8: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Law of Large Numbers

In the long run, as the sample size increases, the relative frequencies of outcomes get closer to the theoretical (or actual) probability value

Example: The more numbers you ask, the more likelihood that P(getting a girl’s real number)=1

Page 9: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Law of Large Numbers examples:

The more numbers you ask, the more likelihood that P(getting a (hot) girl’s real number)=1

Then after collecting all the numbers, the more girls you ask out on a date, the more likelihood that P(getting a date)=1

Page 10: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Some other real life examples:

Casino (the more you play, the more you lose)

Insurance (the more people you insure, the less the likelihood the company have to pay for the insurance benefits)

Page 11: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Statistical Experiment

Statistical experiment or statistical observation can be thought of as any random activity that results in a definite outcome

An event is a collection of one or more outcomes of a statistical experiment or observation

Simple event is one particular outcome of a statistical experiment

The set of all simple events constitutes the sample space of an experiment

Page 12: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Example: Blue eyes vs Brown eyes (relating to biology)

Brown eyes’ genotype is Bb or BB

Blue eyes’ genotype is bb

If your Dad has Brown eyes (and his dad has blue eyes) and your Mom has blue eyes, what’s the probability that you have blue eyes?

Page 13: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer (using sample space)

B b

b Bb bb

b Bb bb

Dad

Mom

P(blue eyes)=

Page 14: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work (use sample space):

You are running out of time in a true/false quiz. You only have 4 questions left! How should you guess?

P(all false)= P(3 false)=

P(all true)= P(2 false)=

P(1 true)= P(1 false)=

P(2 true)=

P(3 true)=

Page 15: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

Your sample space should have 16 different combinations

P(all false)= 1/16 P(3 false)= 4/16

P(all true)= 1/16 P(2 false)= 6/16

P(1 true)= 4/16 P(1 false)= 4/16

P(2 true)= 6/16

P(3 true)= 4/16

You will probably choose 2 true and 2 false

TTTT FTTT TFTT TTFT

TTTF FFTT FTFT FTTF

TFFT TFTF TTFF FFFT

TFFF FTFF FFTF FFFF

Page 16: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Note:

The sum of the probabilities of all simple events in a sample space must equal 1

The complement of event A is the event that A does not occur. designates the complement of event A. Furthermore,

1) P(A)+P(= 1

P(event A does not occur)=P

Page 17: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Example:

P(getting A in Mr. Liu’s class)+P(not getting A in Mr. Liu’s class) =1

P(getting A in Mr. Liu’s class)=.15

What’s the P(not getting A in Mr. Liu’s class)?

Page 18: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

P(not getting A in Mr. Liu’s class)= .85

Page 19: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

P(having a date on a Friday)=1/7

What’s the P(not having a date on a Friday)?

Page 20: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

6/7

Page 21: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Homework Practice:

Pg 130 #1-6 (all), 7-13 (odd)

Page 22: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Compound Events

Page 23: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Consider these two situation

P(5 on 1st die and 5 on 2nd die)

P(ace on 1st card and ace on 2nd card)

What is the difference between these two situation?

Page 24: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

The answer

In the first situation, the first result does not effect the outcome of the 2nd result.

In the second situation, the first result does effect the outcome of the 2nd result.

Page 25: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Independent

Two events are independent if the occurrence or nonoccurrence of one does not change the probability that the other will occur

What does it mean if two events are dependent?

Page 26: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Multiplication rule for independent events

P(A and B)=

This means event A AND event B both have to happen!!! You multiply the events. You find the probability of two events happening together.

This is the formula if event A and event B are independent.

Page 27: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

What if the events are dependent?

Then we must take into account the changes in the probability of one event caused by the occurrence of the other event.

Page 28: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Sample Space

A B

A and B

Page 29: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

General multiplication rule for any events

P(A and B)=

Or

P(A and B)=

Page 30: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

What is P?

It is known as conditional probability = “Probability of event A given event B”

Quick group work: What is P?

Page 31: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Conditional Probability Example:

Your friend has 2 children. You learned that she has a boy named Rick. What is the probability that Rick’s sibling is a boy?

Take a guess

Page 32: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

If you guessed ½ or 50%, that is incorrect.

First: Think about all the possible outcomes S {BB, BG, GB, GG}

What is P(boy and boy)?

What is P(boy)?

You want to find =

Page 33: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

A machine produce parts that’s either good (90%), slightly defective (2%) or obliviously broken (8%). The parts gets through an automatic inspection machine that is able to find the oblivious broken parts and throw them away. What is the probability of the quality part that make it through and get shipped?

Page 34: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

P(Good given not broken)=

Page 35: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Relax!

Conditional Probability can be very intriguing and complicated. We won’t go into any more in depth…..or maybe….

Page 36: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Note:

Very important to understand about probability is that are the events dependent or independent.

Page 37: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

Suppose you are going to throw 2 fair dice. What is the probability of getting a 3 on each die?

A) Is this situation independent or dependent?

B) Create all the sample space (all the potential outcomes)

C) What is the probability?

Page 38: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

A) Independent because one event does not affect the second event

B) You should have 36 total outcomes

C) 1/36

Page 39: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

I took a die away. Now you only have ONE die! Again you toss the die twice. What is the probability of getting a 1 on the first and 4 on the second try?

Page 40: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

It is still an independent event!

1/36

Page 41: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Note:

The last two examples are considered multiplication rule, independent events.

Page 42: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work

Mr. Liu has a 80% probability of teaching statistics next year. Mr. Riley has a 15% probability of teaching statistics next year. What is the probability that both Mr. Liu and Mr. Riley teach statistics next year?

Page 43: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

.8*.15=.12 or 12% probability

Page 44: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Now comes the dependent events

Suppose you have 100 Iphones. The defective rate of iphone is 10%. What is the probability that you choose two iphones and both are defective?

Page 45: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

P(1st defective camera)=10/100

P(2nd defective camera)=9/99

P(1st defective camera and 2nd defective camera)=

Page 46: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group work

What is the probability of getting tail and getting a 3 on a die and getting an ace in a deck of cards?

Page 47: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

P(tail)=1/2

P(3)=1/6

P(ace)=4/52=1/13

Page 48: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Addition Rules

You use addition when you want to consider the possibility of one event OR another occurring

Page 49: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Example:

P(Jack or King)=P(Jack)+P(King)=

Page 50: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work: And or Or?

1) Satisfying the humanities requirement by taking a course in the history of Japan or by taking a course in classical literature

2) Buying new tires and aligning the tires

3) Getting an A in math but also in biology

4) Having at least one of these pets: cat, dog, bird, rabbit

Page 51: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

1) or

2) and

3) and

4) or

Page 52: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Note:

Two events are mutually exclusive or disjoint if they cannot occur together. In particular, events A and B are mutually exclusive if P(A and B)=0

Page 53: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Addition rule for mutually exclusive events A and B

P(A or B)=P(A)+P(B)

General Rule for any events A and B

P(A or B)=P(A)+P(B)-P(A and B)

Remember in mutually exclusive events P(A and B)=0

Page 54: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Example:

Employee type

Democrat (D)

Republican (R)

Independent (I)

Row Total

Executive (E) 5 34 9 48

Production Worker (PW)

63 21 8 92

Column Total 68 55 17 140 grand total

a) Compute P(D) and P(E)b) Compute c) Are events D and E independent?d) Compute P(D and E)e) Compute P(D or E)

Page 55: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

A) P(D)=68/140 P(E)=48/140

B)

C) Determine if P(D)=, they are not the same! So they are not independent

D) P(D and E)=5/140

E) P(D or E)=

Page 56: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Homework Practice:

Pg 146 #1,2,5,7,9,10,14,19

Page 57: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Conditional Probability extension

Bayes’s theorem: It uses conditional probabilities to adjust calculations so that we can accommodate new relevant information.

The special case where event B is partitioned into only two mutually exclusive events.

Page 58: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Formula

Page 59: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Example (Real Life Extension): How accurate is “one” pregnancy test?

Supposedly pregnancy test strip claims it is 99% accurate.

false-positive and false-negative

  NOT Pregnant Pregnant!!!!

Pregnancy Test Negative True Negative False Negative

Pregnancy Test Positive False Positive True

Positive!!

Page 60: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Procedure

So you want to know

=.50

so 26%

But if you do the test more often, then the accuracy of the test increases.

Page 61: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Trees and Counting Techniques

Page 62: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Tree diagram:

A tree diagram shows all the possible outcomes of an event.

All possible outcomes of an event are shown by a tree diagram.

Page 63: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Example using tree diagrams:

If a coin and a dice are tossed simultaneously, what is the probability of getting tail and even number?

Page 64: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

1/4

Page 65: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work using tree diagram:

You are on a sports team. What is the probability that out of three games, you win two of them?

Page 66: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Tree Diagram with Probability:

You have 7 balls, 4 are blue and 3 are green. What is the probability that when you pick the balls, you get green on 1st and blue one 2nd?

Page 67: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Shown in class

Page 68: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work:

You make free throws 85% of the time. What is the probability of making at least one out of the three?

Page 69: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

P(make 1 out of 3)=99.66% of the time

Page 70: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Factorials

! Means factorial

0!=1

1!=1

n!=(n)(n-1)(n-2)(n-3)….

Page 71: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

What is 6! ?

6!=6*5*4*3*2*1=720

Page 72: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Combination vs Permutation

Combination:

Permutation:

Page 73: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Combination:

Order does not matter! It is not important If you have 3,1,2, it is the same as 1,3,2 because they all

have 1,2,3

Different Arrangement of things

Combination is choosing

Page 74: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Permutation:

Order does matter! It is important

Note: Permutation is position

Page 75: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Combination vs Permutation continue:

Both of them break down into two different category:

Combination with repetition (ex: ice cream scoops)

Combination without repetition (ex: lottery)

Permutation with repetition (ex: lock in locker room)

Permutation without repetition (ex: marathon race)

Page 77: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Whew that was a lot of reading…now do some examples.

You have 8 people, what are the number of possible ordered seating arrangement for 5 chairs

Page 78: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

Permutation,

Page 79: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work:

Gamestop has 25 new games this month and you decided to buy 5 of them. How many different arrange of game you can have?

Page 80: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

Combination=

Page 81: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work: MEGA Million

What is the chance of winning the jackpot for MEGA Million?

You have 5 slots + 1 slot for MEGA number

The first 5 slots are numbers between 1-75, mega number is number between 1-15

Page 82: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

.00000000386

Or .000000386%

1 in 258890850

Page 83: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Group Work: Powerball lottery

What is the chance of winning the Jackpot for Powerball?

You have 5 slots+1 slot for Power number

The first 5 slots are numbers between 1-56, powerball slot is number between 1-35

Page 84: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Answer

1 in 175,223,510

Page 85: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Interesting fact

Even though it’s harder to win the Jackpot, for overall winning chance, you have more chance for MEGA million than Powerball

Page 86: Chapter 4 Elementary Probability Theory. What is Probability?  Probability is a numerical measure between 0 and 1 that describes the likelihood that

Homework Practice

Pg 160 #1-27 every other odd