Probability trinity college

58
Trinity College 20th January 2014

Transcript of Probability trinity college

Page 1: Probability trinity college

Trinity College20th January 2014

Page 2: Probability trinity college

Introduce..

The Fundamental Principle of Counting

Page 3: Probability trinity college

Operations

•The result of an operation is an outcome.

For example, if we throw a die, one possible outcome is 5.

If we throw a die there are six possible outcomes: 1, 2, 3, 4, 5 or 6.

Page 4: Probability trinity college

Suppose one operation has m possible outcomes and that a second operation has n outcomes. The number of possible outcomes when preforming the first operation followed by the second operation is m × n.

Performing one operation and another operation means we multiply the number of possible outcomes.

m × n

Page 5: Probability trinity college

ExampleActivity:  draw two cards from a standard deck of 52 cards without replacing the cards      There are 52 ways to draw the first card.      There are 51 ways to draw the second card.      There are 52 X 51 = 2,652 ways to draw the two cards.

Page 6: Probability trinity college

Whats the Difference?

"My fruit salad is a combination of apples, grapes and bananas"

"The combination to the safe was 472"

Page 7: Probability trinity college

We don't care what order the fruits are in, they could also be "bananas, grapes and apples" or "grapes, apples and bananas", its the same fruit salad.

Now we do care about the order. "724" would not work, nor would "247". It has to be exactly 4-7-2.

Page 8: Probability trinity college

If the order doesn’t matter, it is a COMBINATION

If the order does matter, it is a PERMUTATION

In Maths we use precise language..

A PERMUTATION IS AN ORDERED COMBINATION.

Page 9: Probability trinity college

Permutationsor

ArrangementsArrangementsArrangements

Page 10: Probability trinity college

There are 6 different books, including a science book, on a shelf.

In how many different ways can the six books be arranged on a shelf?

In how many ways can the 6 books be arranged if the science book is always on the extreme left?

Question 1

Page 11: Probability trinity college

Solution

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

1 X 5! = 1 X 5 X 4 X 3 X 2 X 1 = 120

Page 12: Probability trinity college

Question 2

In how many ways can the letters of the word SCOTLAND be arranged in a line?

In how many of theses arrangements can two vowels come together?

How many of these arrangements begin with S and end with the two vowels?

Page 13: Probability trinity college

Solutions

8! = 40320

7! X 2 = 10080 ways

5! x 2 = 240 ways

Page 14: Probability trinity college

Question 3

How many different four digit numbers greater than 6,000 can be formed using the digits 1, 2, 3, 4, 5, 6, 7 if :

(i) no digit can be repeated

(ii) repetitions are allowed?

Page 15: Probability trinity college

Solution

(i) 2 X 5 X 4 X 3 = 120

(ii) 2 X 6 X 6 X 6 = 432

Page 16: Probability trinity college

Combinations

Page 17: Probability trinity college

The ( ) Notation

Can also be written as C aswell as nCr and C(n,r).

It gives the number of ways of choosing r objects from n different objects.

It is pronounced ‘n-c-r’ or ‘n-choose-r’.

nr

nr

Page 18: Probability trinity college

How to Calculate It.

( )nr = n!

r! (n - r)!( )nr = n(n - 1)(n - 2)...(n - r +1)

r!

Definition! Practical!

Page 19: Probability trinity college

Important

( ) = 1

( ) = 1

n0

nn

Page 20: Probability trinity college

Question 1

In how many ways can a team of 5 players be chosen from 9 players?

In how many ways can this be done if a certain player must be selected in each team?

Page 21: Probability trinity college

Solution

( ) = ( ) = 9 X 8 X 7 X 6 = 126

( ) = 8 X 7 X 6 X 5 = 70

4 X 3 X 2 X 1

9 95 4

4 X 3 X 2 X 1

84

Page 22: Probability trinity college

It states that ( ) = ( )

Proof:

The Twin Rulen nr n-r

LHS = =

RHS = = n! = n! = LHS

(n - r)!(n - (n - r))! (n - r)!r!

Page 23: Probability trinity college

Question 2

In how many ways can a committee of six be formed from 5 teachers and 8 students if there are to be more teachers than students on each committee?

Page 24: Probability trinity college

SolutionTwo possible combinations:

(i) 4 teachers and 2 students can be selected in( ) X ( ) ways = 5 X 28 = 140 ways 5

482

(ii) 5 teachers and 1 student can be selected in ( ) X ( ) = 1 X 8 = 8 ways5

381

The total number of possible committees is 140 + 8 = 148 committees

Page 25: Probability trinity college

When you have to solve equations the following are very useful.

Equations using (n-c-r)

( ) = 1n1 ( ) = n(n - 1) = n(n - 1)n

22 × 1 2

Page 26: Probability trinity college

ExampleSolve for the value of the natural number n such that ( ) = 28. n

2

Page 27: Probability trinity college

Solutionn(n - 1) = 28 2

n2 - n = 282

n2 - n = 28 -> n2 - n - 28 = 0

(n - 8)(n + 7) = 0

n = 8 n = - 7

Reject n = - 7 is not a natural number.Therefore n = 8.

Page 28: Probability trinity college

Find the value of n E N in the following:

( ) = 28( ) = 28n + 1

2

SOL: (n + 1)(n) = 282

n2 + n - 56 = 0(n + 8)(n - 7) = 0n = -8 and n=7

Reject n = -8 an accept n = 7.

Page 29: Probability trinity college

“What are the chances of that

happening?”

Theory of Probability

Page 30: Probability trinity college

17th Century GamblingChevalier de Mere gambled frequently to increase his wealth.

He bet on a roll of a die that at least one six would appear in four rolls.

Tired of this approach he decided to change his bet to make it more challenging.

He bet that he would get a total of 12, a double 6, on 24 rolls of two dice.

The old method was most profitable!

Page 31: Probability trinity college

He asked his friend Blaise Pascal why this was the case.

Pascal worked it out and found that the probability of winning was only 49.1% with the new method compared to 51.8% using the old approach!

Pascal wrote a letter to Pierre De Fermat, who wrote back.

They exchanged their mathematical principles and problems and are credited with the founding of probability theory.

Correspondence leads to Theory

Page 32: Probability trinity college

Probabilityis really about dealing with the unknown in a systematic way, by scoping out the most likely scenarios, or having a backup plan in case those most likely scenarios don’t happen.

Life is a sequence of unpredictable events, but probability can be used to help predict the likelihood of certain events occurring.

Page 33: Probability trinity college

TermsDefinition Example

An EXPERIMENT is a situation involving chance or probability that leads to results called outcomes. What color would we land on?

A TRIAL is the act of doing an experiment in P! Spinning the spinner.

The set or list of all possible outcomes in a trial is called the SAMPLE SPACE.

Possible outcomes are Green, Blue, Red and Yellow.

An OUTCOME is one of the possible results of a trial.

Green.

An EVENT is the occurrence of one or more specific outcomes

One event in this experiment is landing on blue.

Page 34: Probability trinity college

2013 Paper 2: Q 1

Page 35: Probability trinity college

Binomial Distribution or

Bernoulli TrialsBernoulli TrialsBernoulli Trials

Page 36: Probability trinity college

Experiment that satisfies:

A fixed number, n, of trials are carried out.

Each trial has two possible outcomes: success or failure.

The trials are independent.

The probability of success in each trial is constant.

The probability of a success is generally called p.

The probability of a failure is q, where p + q = 1.

Page 37: Probability trinity college

P ( r successes) = ( ) prqn-rnr

probability of failureprobability of failure

probability of successnumber of trials

Page 38: Probability trinity college

Question 1

An unbiased die is thrown 5 times. Find the probability of obtaining

(i) 1 six

(ii) 3 sixes

(iii) at least 1 six.

Page 39: Probability trinity college

Solution - Step 1

Let p = P(success i.e. getting a six) = 1/6.

Let q = P(failure i.e. NOT getting a six) = 5/6.

The number of trials: n = 5.

Page 40: Probability trinity college

Solution - Step 2

(i) P(1 six) = ( )p1q4 = ( )(1/6)1(5/6)4

=3125/7776

(ii) P( 3sixes) = ( )p3q2 = ( )(1/6)3(5/6)2

=125/3888

P ( r successes) = ( ) prqn-rnr

51

51

53

53

Page 41: Probability trinity college

(iii) P(at least 1 six) = 1 - P(no six)

P(no six) = ( )p0q5 = ( )(1/6)0(5/6)5

P(at least 1 six) = 1 - (5/6)5 = 4651/7776

50

50

Page 42: Probability trinity college

You try: Question 2Given that 10% of apples are bad, find the probability that in a box containing 6 apples there is

(i) no bad apple

(ii) just one bad apple

(iii) at least one bad apple

Page 43: Probability trinity college

Solution - Step 1

Let p = P(bad apple) = 1/10

Let q= P(good apple) = 9/10

Number of trials: n = 6

Page 44: Probability trinity college

Solution - Step 2

(i) P(no bad apples) = ( )(1/10)0(9/10)6

(ii) P(1 bad apples) = ( )(1/10)1(9/10)5

60

61

= 0.531441

= 0.015640313

Page 45: Probability trinity college

(iii) P(at least 1 bad apples) = 1 - P(no bad apples)

1 - (0.531441).....from part (i)

Page 46: Probability trinity college

We worked out the probability of getting 3 sixes wen a dice is thrown 5 times. If the same dice is thrown continuously until a six appears for the 4th time, how do we find the probability that the 4th six will appear on the 10th throw?

Back to Question 1

Page 47: Probability trinity college

For a six to appear on the 10th throw,

(i) we need to get 3 sixes on the first nine throws and then

(ii) get the 4th on the 10th throw!

Page 48: Probability trinity college

three sixes on the first nine throws is given by:

( ) (1/6)3(5/6)693 = 0.13

P(six on the 10th throw) = 1/6

Thus P(4th six on the 10th throw) = 0.13 X 1/6 = 0.0217

Page 49: Probability trinity college

A card is drawn at random from a normal deck of playing cards and then replaced. The process is repeated until the third diamond is appears. Find the probability that this happens when the tenth card is drawn.

Question 3

Page 50: Probability trinity college

Solution - Step 1

P(drawing a diamond is) = 1/4

The probability of drawing a third diamond on the 10th draw is:

P(drawing 2 diamonds in the first nine draws) X

P(drawing a diamond on the 10th draw)

Page 51: Probability trinity college

Solution - Step 2P(2 diamonds on the 1st nine draws)

P(diamond on the 10th draw) = 0.25

= ( )(1/4)2(3/4)7 = 0.392

Thus P(third diamond on the 10th draw) = 0.25 X 0.3 = 0.075

Page 52: Probability trinity college

Question 4During match Sarah takes a number of penalty shots. The shots are independent of each other and her probability of scoring with each shot is 4/5.

(i) Find the probability that Sarah misses each of her first four shots.

(ii) Find the probability that Sarah scores exactly three of his first four penalty shots.

(iii) It Sarah takes 10 penalty shots during the match, find the probability that she scores at least 8 of them.

Page 53: Probability trinity college

SolutionLet p=P(she scores the penalty) = 0.8

Let q=P(she misses the shot) = 0.2

(i) ( )(0.8)0(0.2)4 = 1/62540

(ii) ( )(0.8)3(0.2)1 = 256/62543

Page 54: Probability trinity college

(iii) n = 10

P(at least 8 scores) =

P(scores 8) + P(scores 9) + P(scores 10)

( )(0.8)8(0.2)2 + ( )(0.8)9(0.2)1 + ( )(0.8)10(0.2)0 =108

109

1010

ANS = 6,619,136 9,765,625

Page 55: Probability trinity college

Exam Questions

Page 56: Probability trinity college

2012 Paper 2: Q 4

Page 57: Probability trinity college

SOL: Let p=P(that she scores her free throw) = 0.6

Let q=P(she misses the free throw) = 0.4

The number of trials: n = 6

Step 1

Step 2 Is she scores four of the shoots she misses two!

( )p4q2 = ( )(0.6)4(0.4)2 64

64

= 972/3125 0.31104

Page 58: Probability trinity college

SOL: P(scores once in the first 4 shots)XP(she scores on the 5th shot)

Step 1

Step 2 ( )(0.6)1(0.4)341

0.1536 X 0.6 = 0.09216