Business Mathematics and Statistics (MATH0203)

41
Probability Ms Nurazrin Jupri

Transcript of Business Mathematics and Statistics (MATH0203)

Probability

Ms Nurazrin Jupri

Probability is the chance that something will happen. It is a measure of likelihood and can be stated as a percentage, a ratio, or more usually

as a number from 0 to 1.

Consider the following. β€’ Probability = 0 = impossibility β€’ Probability = 1 = certainty β€’ Probability = 1/2 = a 50% chance of something happening β€’ Probability = 1/4 = a 1 in 4 chance of something happening

Ms Nurazrin Jupri

What is probability?

β€’ A probability is the chance that something will

happen.

β€’ Eg:

β–« (a) I am 100% confidence that I will pass the exam.

β–« (b) About 50% of the staff are not satisfied with their salary.

β–« (c) The chance for you to win this battle is very low.

Ms Nurazrin Jupri

Experiment

β€’ An experiment is a situation involving chance

or probability that leads to results called outcomes.

β€’ Eg:

β–« 1. Rolling a fair die.

β–« 2. Tossing a coin.

β–« 3. Choosing a student from the class.

Ms Nurazrin Jupri

Outcomes

β€’ An outcome is the result of a single trial of an

experiment.

β€’ Eg:

β–« 1. Getting a β€˜1’ in a rolling of a fair die.

β–« 2. Getting a β€˜head’ in a tossing of a coin.

Ms Nurazrin Jupri

Sample Space, (S)

β€’ is the set of all possible outcomes of an

experiment.

β€’ Eg:

β–« 1. All the outcomes for the experiment β€˜Rolling a fair die’: 𝑆 = 1,2,3,4,5,6

β–« 2. All the outcomes for the experiment β€˜Tossing a coin’: 𝑆 = 𝐻, 𝑇

β–« 3. All the outcomes for the experiment β€˜Choosing a student from the class’: _____________

Ms Nurazrin Jupri

Example 1

β€’ List the sample space for the following experiment. An experiment of

β–« Tossing two coins

β–« Tossing three coins

For each of the experiment above, show the presentation of outcomes in table and tree diagram

Ms Nurazrin Jupri

β€’ Tossing two coins

By table

By tree diagram

H ……… HH

H T ……… HT

T H ……… TH

T ……… TT

Coin 1 H H T T

Coin 2 H T H T

𝑆 = 𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇

Ms Nurazrin Jupri

β€’ Tossing three coins

By table

Coin 1

Coin 2

Coin 3

𝑆 = 𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻, 𝐻𝑇𝑇, 𝑇𝐻𝐻, 𝑇𝐻𝑇, 𝑇𝑇𝐻, 𝑇𝑇𝑇

Coin 1 H H H H T T T T

Coin 2 H H T T H H T T

Coin 3 H T H T H T H T

Ms Nurazrin Jupri

By tree diagram

H ……… HHH

H T ……… HHT

H T H ……… HTH

T ……… HTT

T H H ……… THH

T T ……… THT

H ……… TTH

T ……… TTT

𝑆 = 𝐻𝐻𝐻, 𝐻𝐻𝑇, 𝐻𝑇𝐻, 𝐻𝑇𝑇, 𝑇𝐻𝐻, 𝑇𝐻𝑇, 𝑇𝑇𝐻, 𝑇𝑇𝑇

Ms Nurazrin Jupri

Event

β€’ An event is one or more outcomes that may

occur. β€’ Is a subset of sample space. β€’ Eg:

β–« 1. Getting even numbers for the experiment β€˜Rolling a fair die’. E = 2,4,6

β–« 2. Getting multiplies of 3 for the experiment β€˜Rolling a fair die’. M3 = 3,6

β–« 3. Getting long hair students for the experiment β€˜Choosing a student from the class’._______

Ms Nurazrin Jupri

Complement

β€’ The complement of an event A with respect to S is the subset of all elements of S that are not in A.

β€’ The complement of A denoted by symbol A’

Venn diagram

s

𝑆 = 𝐴 βˆͺ 𝐴′

Ms Nurazrin Jupri

Example 2

β€’ Let 𝑆 = π΄π‘™π‘”π‘’π‘π‘Ÿπ‘Ž, πΆπ‘Žπ‘™π‘π‘’π‘™π‘’π‘ , π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ , πΈπ‘žπ‘’π‘Žπ‘‘π‘–π‘œπ‘›π‘  and A = π΄π‘™π‘”π‘’π‘π‘Ÿπ‘Ž, πΆπ‘Žπ‘™π‘π‘’π‘™π‘’π‘  . Find A’

𝐴′ = π‘†π‘‘π‘Žπ‘‘π‘–π‘ π‘‘π‘–π‘π‘ , πΈπ‘žπ‘’π‘Žπ‘‘π‘–π‘œπ‘›π‘ 

Ms Nurazrin Jupri

Intersection

β€’ The intersection of two events A and B, denoted by symbol 𝐴 ∩ 𝐡.

β€’ The event containing all elements that are common to A and B

Ms Nurazrin Jupri

Example 3

β€’ Given 𝑆 = 1, 2,3,4,5,6,7,8,9,10 , A = 2,4,6,8,10 and B = 2,3,5,7 . Find 𝐴 ∩ 𝐡

𝐴 ∩ 𝐡 = 2

.3 .6

.10 .8

.4

.2 .7

.5

.9

.1 S

Ms Nurazrin Jupri

Mutually exclusive

β€’ Two events A and B are mutually exclusive, if 𝐴 ∩ 𝐡 β‰  βˆ…

β€’ A and B have no elements that are common

β€’ (a) I am female and I am male. – Impossible!

(b) I am 6 years old and I am 25 years old. – Impossible!

Ms Nurazrin Jupri

Example 4

β€’ Given 𝑆 = 1, 2,3,4,5,6,7,8 , A = 2,4,6 and B = 1,3,5 . Are A and B mutually exclusive?

𝐴 ∩ 𝐡 = βˆ…

.3 .6

.8

.4

.2 .7 .5

.1

S

Ms Nurazrin Jupri

Union

β€’ The union of the two events A and B, denoted by the symbol 𝐴 βˆͺ 𝐡

β€’ Is the event containing all the elements belong to A or B or both.

S

𝐴 βˆͺ 𝐡

Ms Nurazrin Jupri

Example 5

β€’ Given 𝑆 = 1, 2,3,4,5,6,7,8,9,10 , A = 2,4,6,8,10 and B = 2,3,5,7 . Find 𝐴 βˆͺ 𝐡 and n 𝐴 βˆͺ 𝐡 .

𝐴 βˆͺ 𝐡 = 2,3,4,5,6,7,8,10 .3 .6

.10 .8

.4

.2 .7

.5

.9

.1 S

𝑛(𝐴 βˆͺ 𝐡) = 8

Ms Nurazrin Jupri

Probability of an Event

𝑃 𝐴 =𝑛(𝐴)

𝑛(𝑆)

Where:

β€’ n(A) = the number of outcomes in event set A

β€’ n(S) = sample space (All possible outcome)

Ms Nurazrin Jupri

Properties of Probability

1. 0 ≀ 𝑃 𝐴 ≀ 1

2. 𝑃 𝑆 = 1

3. 𝑃 βˆ… = 0

Ms Nurazrin Jupri

Example 6

β€’ A pair of coins is tossed. Find the probability of getting

a) Two heads

b) One tail and one head

c) No head

Let H=head, T=tail 𝑆 = 𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇 and n 𝑆 = 4

a) Let A = 𝐻𝐻 and n 𝐴 = 1, thus 𝑃 𝐴 = 1

4

b) Let B = 𝐻𝑇, 𝑇𝐻 and n 𝐡 = 2, thus 𝑃 𝐡 = 2

4=

1

2

c) Let C = 𝑇𝑇 and n 𝐢 = 1, thus 𝑃 𝐢 = 1

4

Ms Nurazrin Jupri

Example 7

β€’ A mixture of candies contains 6 mints, 4 toffees and 3 chocolates. If a person makes a random selection of one of these candies, find the probability of getting

a) A mint

b) A toffee or a chocolate

Let H=mint, T=toffee, C=chocolate; n 𝑆 =13

a) Since there are 6 mint candies n 𝑀 = 6, thus 𝑃 𝑀 = 6

13

b) Since there are 7 candies are toffee or chocolate n 𝑇 βˆͺ 𝐢 = 7, thus

𝑃 𝑇 βˆͺ 𝐢 = 7

13

Ms Nurazrin Jupri

Example 8

β€’ A box contains 4 yellow balls and 6 black balls. Two balls were taken from the box, with replacing the first ball before taking second ball. Find

a) 𝑃(2 π‘¦π‘’π‘™π‘™π‘œπ‘€ π‘π‘Žπ‘™π‘™π‘ )

b) 𝑃(π‘‘π‘€π‘œ π‘π‘Žπ‘™π‘™π‘  π‘€π‘–π‘‘β„Ž π‘‘π‘–π‘“π‘“π‘’π‘Ÿπ‘’π‘›π‘‘ π‘π‘œπ‘™π‘œπ‘Ÿπ‘ )

c) 𝑃(π‘Žπ‘‘ π‘™π‘’π‘Žπ‘ π‘‘ π‘œπ‘›π‘’ π‘¦π‘’π‘™π‘™π‘œπ‘€ π‘π‘Žπ‘™π‘™)

Let Y=yellow, B=black; 𝑆 = π‘Œπ‘Œ, π‘Œπ΅, π΅π‘Œ, 𝐡𝐡 and n 𝑆 = 4 a) P 2 yellow balls = P YY

=4

10Γ—

4

10=

4

25

a) P 2 balls π‘€π‘–π‘‘β„Ž π‘‘π‘–π‘“π‘“π‘’π‘Ÿπ‘’π‘›π‘‘ π‘π‘œπ‘™π‘œπ‘Ÿπ‘  = P Y𝐡 βˆͺ π΅π‘Œ

=4

10Γ—

6

10+

6

10Γ—

4

10=

12

25

a) P at least one yellow ball = P Y𝐡 βˆͺ π΅π‘Œ βˆͺ π‘Œπ‘Œ

=4

10Γ—

6

10+

6

10Γ—

4

10+

4

10Γ—

4

10=

16

25

Ms Nurazrin Jupri

β€’ If A and A’ are complementary events, then 𝑃 𝐴 + 𝑃 𝐴′ = 1

Complementary Events

Example 9 β€’ The probability that Pahang will win the badminton

tournament is 5/7. Find the probability that Pahang will lose?

Given 𝑃 𝑀𝑖𝑛𝑠 =5

7, thus 𝑃 π‘™π‘œπ‘ π‘’π‘  = 1 βˆ’

5

7=

2

7

Ms Nurazrin Jupri

Exercise 1

1. What is probability of getting a number 4 with the rolling of

a single die? Hence find the probability of not getting a

number 4.

2. The table shows the number of students in different forms

in a school. A student is selected from the school. Find the

probability that

β–« a Form 2 student is selected.

β–« a Form 5 student is selected.

Form 1 2 3 4 5

No. of students 40 80 70 60 50

Ms Nurazrin Jupri

Exercise 1 (cont.)

3. The test marks for mathematics in a class are recorded as

shown below:

β–« If a student in the class is at random, what is the probability that

he or she is getting 70 marks?

β–« Find the probability of a student, selected at random, scoring 90

marks and above.

Test marks 40 50 60 70 80 90 100

No. of students 4 8 10 12 8 9 2

Ms Nurazrin Jupri

β€’ For two events A and B, 𝑃 𝐴 βˆͺ 𝐡 = 𝑃 𝐴 + 𝑃 𝐡 βˆ’ 𝑃(𝐴 ∩ 𝐡)

β€’ For three events A, B and C, 𝑃 𝐴 βˆͺ 𝐡 βˆͺ 𝐢

= 𝑃 𝐴 + 𝑃 𝐡 + 𝑃 𝐢 βˆ’ 𝑃 𝐴 ∩ π΅βˆ’ 𝑃 𝐴 ∩ 𝐢 βˆ’ 𝑃 𝐡 ∩ 𝐢 + 𝑃(𝐴 ∩ 𝐡 ∩ 𝐢)

Probability of Events

Additive Rule

Note: means OR! means AND!

Ms Nurazrin Jupri

Example 10

β€’ The probability of Sarah passes Mathematics is 2

3, and

the probability that she passes English is 8

9. If the

probability of passing both subjects is 3

4, what is the

probability that Sarah will pass at least one of these subjects?

Let M=pass in Mathematics, E=pass in English; 𝑃 𝑀 βˆͺ 𝐸 = 𝑃 𝑀 + 𝑃 𝐸 βˆ’ 𝑃 𝑀 ∩ 𝐸

=2

3+

8

9βˆ’

3

4=

29

36

Ms Nurazrin Jupri

β€’ For two events A and B, 𝑃 𝐴 βˆͺ 𝐡 = 𝑃 𝐴 + 𝑃 𝐡 βˆ’ 𝑃 𝐴 ∩ 𝐡

𝑃 𝐴 βˆͺ 𝐡 = 𝑃 𝐴 + 𝑃 𝐡 βˆ’ 0 𝑃 𝐴 βˆͺ 𝐡 = 𝑃 𝐴 + 𝑃 𝐡

Additive Rule for Mutually Exclusive

Events

Note: means OR! means AND!

Ms Nurazrin Jupri

Example 11

β€’ Four friends, Adam, Badri, Haziq and Rizal apply for a job in a petrol station but only one person will get the job. Find probability that Badri or Haziq will get the job.

Let B=Badri, H=Haziq; 𝑃 𝐡 βˆͺ 𝐻 = 𝑃 𝐡 + 𝑃 𝐻 βˆ’ 𝑃 𝑀 ∩ 𝐸

=1

4+

1

4βˆ’ 0 =

1

2

Ms Nurazrin Jupri

Exercise 2

1. John and Owen applied for a scholarship and only one student will be

awarded the scholarship. If the probability for John to be awarded the

scholarship is 0.3 and that for Owen is 0.4, what is the probability that,

either John or Owen to win the scholarship?

2. In the senior year of high school graduating class of 100 students, 42

studied Mathematics, 68 studied Psychology, 54 studied History, 22

studied both Mathematics and History, 25 studied both Mathematics and

Psychology, 7 studied History but neither mathematics nor Psychology,

10 studied all three subjects and 8 did not take any of the three.

Draw the Venn diagram

If a student is selected at random, find the probability that a person not taking

Psychology is taking both History and Mathematics.

Ms Nurazrin Jupri

Exercise 2 (cont,)

3. Find the probability of drawing a single card

with either a β€˜7’ or a β€˜heart’ from a pack of 52

playing cards.

Ms Nurazrin Jupri

β€’ The probability that an event will occur, given that one or more other events have occurred.

β€’ The conditional probability of B, given A,

denoted by 𝑃 𝐡 𝐴 =𝑃(𝐡∩𝐴)

𝑃(𝐴)

Conditional Probability

Ms Nurazrin Jupri

Example 12

β€’ The probability that a regularly schedules flight departs on time is 𝑃 𝐷 = 0.83, it arrives on time is 𝑃 𝐴 = 0.82 and it departs and arrives on time is 𝑃 𝐷 ∩ 𝐴 = 0.78. Find the probability that a plane a) Arrives on time given that it has departed on time

b) Departs on time given that it has arrived on time

a) 𝑃 𝐴 𝐷 =𝑃(𝐴∩𝐷)

𝑃(𝐷)=

0.78

0.83= 0.94

b) 𝑃 𝐷 𝐴 =𝑃(𝐷∩𝐴)

𝑃(𝐴)=

0.78

0.82= 0.95

Ms Nurazrin Jupri

β€’ For dependent events A and B, 𝑃 𝐴 ∩ 𝐡 = 𝑃 𝐴 . 𝑃 𝐡 𝐴

β€’ For independent events A and B, if and only if

a) 𝑃 𝐡 𝐴 = 𝑃 𝐡 b) 𝑃 𝐴 𝐡 = 𝑃 𝐴

c) 𝑃 𝐴 ∩ 𝐡 = 𝑃 𝐴 . 𝑃(𝐡)

Probability of Events

Multiplicative Rule

Ms Nurazrin Jupri

Example 13

β€’ A box contain 7 red chips and 3 white ones. 2 chips randomly selected from the box. Find the probability that we get a red chip on the first draw and a white one on the second draw if a) The chips are selected without replacement

b) The chips are selected with replacement

Let R=red chips, W=white chips; a) 𝑃 𝑅 ∩ π‘Š = 𝑃 𝑅 . 𝑃 π‘Š 𝑅

=7

10Γ—

3

9=

7

30

a) 𝑃 𝑅 ∩ π‘Š = 𝑃 𝑅 . 𝑃 π‘Š 𝑅

=7

10Γ—

3

10=

21

100

Ms Nurazrin Jupri

Exercise 3

1. A jar contains black and white marbles. Two marbles are chosen

without replacement. The probability of selecting a black marble

and then a white marble is 0.34, and the probability of selecting a

black marble on the first draw is 0.47. What is the probability of

selecting a white marble on the second draw, given that the first

marble drawn was black?

2. Two cards are drawn one after another from a pack of 52 playing

cards. The first card is replaced before drawing the second card.

What is the probability of getting a β€˜king’ in the second card?

Ms Nurazrin Jupri

3. There are 4 red pens and 5 blue pens in a box. Two pens are to

be withdrawn one after another successively. However, the first

pen drawn is replaced. What is the probability of drawing:

a) the first pen is red and the second pen is blue?

b) one red pen and one blue pen?

4. A bag contains 3 red balls and 4 blue balls. One ball is

withdrawn, the color noted and the ball is not replaced. A

second ball is then withdrawn. What is the probability that the

second ball is red?

Exercise 3 (cont.) Ms Nurazrin Jupri

Solving probability using Contingency

Table

Example 14

The management of a computer shop recorded the sales of 250 units of computers in one

month. Of those 250 units sold, 180 units belonged to Pentium II model, of which 30 units

were sold with 17 inch monitors. 25 units of Pentium I model were sold with 17 inch monitors.

The rest of the units were sold with 15 inch monitors. Find the probability that a unit sold,

selected at random,

β–« a) has a 15 inch monitor

β–« b) is a Pentium I model with a 15 inch monitor

β–« c) either is a Pentium II model or has a 15 inch monitor

Ms Nurazrin Jupri

15 inch monitor 17 inch monitor

Pentium I 45 25 70

Pentium II 150 30 180

195 55 250

Ms Nurazrin Jupri