Proba

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Proba as PDF for free.

More details

  • Words: 12,438
  • Pages: 51
INTRODUCTION, SAMPLE SPACES & EVENTS Probability Let E be a random experiment (where we ‘know’ all possible outcomes but can’t predict what the particular outcome will be when the experiment is conducted). The set of all possible outcomes is called a sample space for the random experiment E. Example 1: Let E be the random experiment: Toss two coins and observe the sequence of heads and tails. A sample space for this experiment could be S = {HH , TH , HT , TT }. If however we only observe the number of heads got, the sample space would be S = {0, 1, 2}. Example 2: Let E be the random experiment: Toss two fair dice and observe the two numbers on the top. A sample space would be

S=

(1,1), (1,2), (1,3),− − − − −−, (1,6) (2,1), (2,2), (2,3),− − − − − (3,1), |

(6,1) − − − − − − − − − −, (6,6)

If however, we are interested only in the sum of the two numbers on the top, the sample space could be S = { 2, 3, …, 12}. Example 3: Let E be the random experiment: Count the number of machines produced by a factory until a defective machine is produced. A sample space for this experiment could be S = {1, 2, 3,− − − − − −}. 1

Example 4: Let E be the random experiment: Count the life length of a bulb produced by a factory. Here S will be {t | t ≥ 0} = [0, ∞). Events An event is a subset of the sample space. Example 5: Suppose a balanced die is rolled and we observe the number on the top. Let A be the event: an even number occurs. Thus in symbols,

A = {2,4,6} ⊂ S = {1,2,3,4,5,6} Two events are said to be mutually exclusive if they cannot occur together; that is there is no element common between them. In the above example if B is the event: an odd number occurs, i.e. B = {1,3,5} , then A and B are mutually exclusive. Solved Examples Example 1: A manufacturer of small motors is concerned with three major types of defects. If A is the event that the shaft size is too large, B is the event that the windings are improper and C is the event that the electrical connections are unsatisfactory, express in words what events are represented by the following regions of the Venn diagram given below: (a) region 2 (b) regions 1 and 3 together (c) regions 3, 5, 6 and 8 together.

2

7

A

4 C

B

2 1

5

3

6 8

Solution: (a) Since this region is contained in A and B but not in C, it represents the event that the shaft is too large and the windings improper but the electrical connections are satisfactory. (b) Since this region is common to B and C, it represents the event that the windings are improper and the electrical connections are unsatisfactory. (c) Since this is the entire region outside A, it represents the event that the shaft size is not too large. Example 2: A carton of 12 rechargeable batteries contain one that is defective. In how many ways can the inspector choose three of the batteries and (a) get the one that is defective (b) not get the one that is defective. Solution: (a) one defective can be chosen in one way and two good ones can be chosen in 11 = 55 ways. Hence one defective and two good can be chosen in 1 x 55 = 55 2 ways. (b) Three good ones can be chosen in

11 3 3

= 165 ways

AXIOMS OF PROBABILITY Let E be a random experiment. Suppose to each event A, we associate a real number P(A) satisfying the following axioms:

0 ≤ P ( A) ≤ 1

(i) (ii)

P (S ) = 1

(iii)

If A and B are any P ( A ∪ B ) = P ( A) + P ( B )

(iv)

If {A1, A2 - - - - - -An , …} is a sequence of pair- wise mutually exclusive events, then P ( A1 ∪ A2 ∪ ... ∪ An ∪ ...) = P ( A1 ) + P ( A2 ) + ... + P ( An ) + ...

two

mutually

exclusive

events,

then

We call P(A) the probability of the event A. Axiom 1 says that the probability of an event is always a number between 0 and 1. Axiom 2 says that the probability of the certain event S is 1. Axiom 3 says that the probability is an additive set function. Some elementary consequences of the Axioms 1.

P(φ ) = 0 Proof: S= S ∪ φ .. Now S and φ are disjoint. Hence P ( S ) = P ( S ) + P (φ )

2.

P (φ ) = 0.

Q.E.D.

If A1 , A2 ,..., An are any n pair-wise mutually exclusive events, then

P ( A1 ∪ A2 ∪ ... ∪ An ) =

n i =1

P ( Ai ) .

Proof: By induction on n. Def.: If A is an event A′ the complementary event = S-A (It is the shaded portion in the figure below)

A 4

3.

P ( A′) = 1 − P ( A) Proof: S = A ∪ A ′ Now P ( S ) = P ( A) + P ( A′) as A and A ′ are disjoint or 1 = P ( A) + P ( A′) . Thus P ( A′) = 1 − P ( A) . Q.E.D.

4.

5.

Probability is a subtractive set function; i.e. If A ⊂ B , then P ( B − A) = P ( B ) − P ( A) .

B A

Probability is a monotone set function: i.e. A ⊂ B P ( A) ≤ P ( B ) Proof: B = A ∪ (B − A ) where A, B-A are disjoint. Thus P ( B ) = P ( A) + P ( B − A) ≥ P ( A). A∩ B

6.

A

If A, B are any two events, P( A ∩ B ) = P( A) + P( B) − P( A ∩ B )

B

Proof: ( A ∪ B) ) = A ∪ ( A′ ∩ B ) where A and A′ ∩ B are disjoint Hence P( A ∪ B ) = P( A) + P( A′ ∩ B )

A′ ∩ B

But B = ( A ∩ B ) ∪ ( A′ ∩ B ),

union of two disjoint sets P ( B ) = P ( A ∩ B ) + P ( A′ ∩ B ) or P ( A′ ∩ B ) = P (B ) − P ( A ∩ B ).

∴ P( A ∪ B ) = P( A) + P ( B) − P( A ∩ B ) . Q.E.D. 7.

If A, B, C are any three events,

P(A ∪ B ∪ C ) = P(A) + P(B) + P(C) − P(A ∩ B) − P(B ∩ C) − P(C ∩ A) + P(A ∩ B ∩ C) . 5

Proof: P(A ∪ B ∪ C) = P(A ∪ B) + P(C) − P((A ∪ B) ∩ C )

= P(A) + P(B) − P(A ∩ B) + P(C) − P((A ∪ B) ∩ C) = P(A) + P(B) + P(C) − P(A ∩ B) − P((A ∩ C) ∪ (B ∩ C)) = P(A) + P(B) + P(C) − P(A ∩ B) − P(A ∩ C) − P(B ∩ C) + P(A ∩ B ∩ C) More generally, 8.

If A1 , A2 ,..., An are any n events. P(A1 ∪ A 2 ∪ ... ∪ A n ) =

n i =1

P( A I ) −

P(A i ∩ A j ) +

i ≤1< j≤ n

P(A i ∩ A j ∩ A k ) − ...

1≤ i < j≤ k < n

+ (−1) n −1 P(A1 ∩ A 2 ∩ − − − − − − − ∩ A n )

Finite Sample Space (in which all outcomes are equally likely) Let E be a random experiment having only a finite number of outcomes. Let all the (finite no. of) outcomes be equally likely. If S = {a1 , a 2 ,..., a n } ( a1 , a 2 ,..., a n are equally likely outcomes), S = {a 1 } ∪ {a 2 }.......{a n }.a union of m.e. events. Hence P ( S ) = P ({a1 }) + P{a 2 } − − − P ({a n }) But P({a1})=P({a2})= …= P({an}) = p (say) Hence 1 = p+ p+ . . . +p (n terms) or p = 1/n Hence if A is a subset consisting of ‘k’ of these outcomes, A ={a1, a2………ak}, then P ( A) =

No. of favorable outcomes k = . n Total no. of outcomes

6

Example 1: If a card is drawn from a well-shuffled pack of 52 cards find the probability of drawing 2 (a) a red king Ans: 52 16 (b) a 3, 4, 5 or 6 Ans: 52 1 (c) a black card Ans: 2 4 (d) a red ace or a black queen Ans: 52

Example 2: When a pair of balanced die is thrown, find probability of getting a sum equal to (a)

7. Ans:

6 1 = (Total number of equally likely outcomes is 36 6 36 & the favourable number of outcomes = 6, namely (1,6), (2,5),, …(6,1).)

(b)

11

Ans:

2 36

(c)

7 or 11

Ans:

8 36

(d)

2, 3 or 12

Ans: =

1 2 1 4 + + = . 36 36 36 36

Example 3: 10 persons in a room are wearing badges marked 1 through 10. 3 persons are chosen at random and asked to leave the room simultaneously and their badge nos are noted. Find the probability that (a) the smallest badge number is 5. (b) the largest badge number is 5. 7

Solution: 3 persons can be chosen in 10C3 equally likely ways. If the smallest badge number is to be 5, the badge numbers should be 5 and any two of the 5 numbers 6, 7, 8, 9,10. Now 2 numbers out of 5 can be chosen in 5C2 ways. Hence the probability that the smallest badge number is 5 is 5C2 /10C3 . (b) Ans. 4C2 /10C3 .

(a)

Example 4: A lot consists of 10 good articles, 4 articles with minor defects and 2 with major defects. Two articles are chosen at random. Find the probability that 10

(a) both are good

Ans:

16

2

(b) both have major defects Ans:

16

C2 C2 C2 C2

6c1 16c 2

(c) At least one is good

Ans: 1 – P(none is good) = 1 −

(d) Exactly one is good

Ans:

(e) At most one is good

Ans. P(none is good) + P(exactly one is good) =

10c1 . 6c1 16c 2

6c 2 10c1 . 6c1 + 16c 2 16c 2 (f) Neither has major defects Ans:

14c 2 16c 2

(g) Neither is good

6c 2 16c 2

Ans:

8

Example 5: From 6 positive and 8 negative integers, 4 integers are chosen at random and multiplied. Find the probability that their product is positive.

Solution: The product is positive if all the 4 integers are positive or all of them are negative or two of them are positive and the other two are negative. Hence the probability is 6

8

6 8

4 2 2 4 + + 14 14 14 4

4

4

Example 6: If, A, B are mutually exclusive events and if P(A) = 0.29, P(B) = 0.43, then (a) P(A ′) = 1 − 0.29 = 0.71 (b) P(A∪B) = 0.29 + 0.43 = 0.72 (c) P ( A ∩ B ′) = P(A) = 0.29 [ (as A is a subset of B ′, since A and B are m.e.) (d) P(A ′ ∩ B′) = 1 − P(A ∪ B) = 1 − 0.72 = 0.28

Example 7: P(A) = 0.35, P(B) = 0.73, P (A ∩ B) = 0.14 . Find (a) P (A ∪ B) = P(A) + P(B) - P( A ∩ B) = 0.94. (b) P (A ′ ∩ B) = P(B) − P(A ∩ B) = 0.59 (c) P (A ∩ B′) = P(A) − P(A ∩ B) = 0.21 (d) P(A ′ ∪ B′) = 1 − P(A ∩ B) = 1 − 0.14 = 0.86

Example 8: A, B, C are 3 mutually exclusive events. Is this assignment of probabilities possible? P(A) = 0.3, P(B) = 0.4, P(C) = 0.5 9

Ans.

P(A ∪ B ∪ C) = P(A) + P(B) + P(C) >1

NOT POSSIBLE

Example 9: Three newspapers are published in a city. A recent survey of readers indicated the following: 20% read A 16% read B 14% read C

8% read A and B 5% read A and C 4% read B and C

2% read all

Find probability that an adult chosen at random reads (a) none of the papers. Ans. 1 − P(A ∪ B ∪ C) = 1 −

20 + 16 + 14 + −8 − 5 − 4 + 2 = 0.65 100

A

(b) reads exactly one paper. P (Reading exactly one paper) =

B 9

9+6+7 = 0.22 100

6 3 2

7

6 2 C

(c) reads at least A and B given he reads at least one of the papers. P (At least reading A and B given he reads at least one of the papers) =

P(A ∩ B) 8 = P(A ∪ B ∪ C) 35

10

CONDITIONAL PROBABILITY Let, A, B be two events. Suppose P(B) ≠ 0. The conditional probability of A occurring given that B has occurred is defined as P(A | B) = probability of A given B =

Similarly we define P(B | A) =

P(A ∩ B) . P(B)

P(A ∩ B) if P(A) ≠ 0. P(A)

Hence we get the multiplication theorem P(A ∩ B) = P(A).P(B/A) (if P(A) ≠ 0) ) = P(B).P(A/B) (if P(B) ≠ 0)

Example 10 A bag contains 4 red balls and 6 black balls. 2 balls are chosen at random one by one without replacement. Find the probability that both are red.

Solution Let A be the event that the first ball drawn is red, B the event the second ball drawn is red. Hence the probability that both balls drawn are red = 4 3 2 P(A ∩ B) = P(A) × P(B | A) = × = 10 9 15

Independent events: Definition: We say two events A, B are independent if P(A ∩ B) = P(A). P(B) Equivalently A and B are independent if P(B | A) = P(B) or P(A | B) = P(A) Theorem If, A, B are independent, then (a) A ′ , B are independent (b) A, B′ are independent (c) A ′, B′ are independent 11

A

Proof B = (A ∩ B) ∪ (A ′ ∩ B)

B

A∩B

A′ ∩ B

Mutually exclusive P(B) = P(A ∩ B) + P(A ′ ∩ B) P(A ′ ∩ B) = P(B) - P(A ∩ B) = P(B) – P(A) (P/B) = P(B) [1-P(A)] = P(B) P( A ′) ∴A, B′ are also independent. By the same reasoning, A′ and B are independent. So again A′ and B′ are independent.

Example 11 Find the probability of getting 8 heads in a row in 8 tosses of a fair coin.

Solution If Ai is the event of getting a head in the ith toss, A1, A2, …, A8 are independent and 1 P(Ai) = for all i. Hence P(getting all heads) = 2 P(A1) P(A2)…P(An) =

1 2

8

Example 12 It is found that in manufacturing a certain article, defects of one type occur with probability 0.1 and defects of other type occur with probability 0.05. Assume independence between the two types of defects. Find the probability that an article chosen at random has exactly one type of defect given that it is defective.

12

Let A be the event that article has exactly one type of defect. Let B be the event that the article is defective. Required P(A | B) =

P(A ∩ B) P(B)

P(B) = P(D ∪ E) where D is the event it has type one defect E is the event it has type two defect = P(D) + P(E) – P(D ∩ E) = 0.1 + 0.05 - (0.1) (0.05) = 0.145 P(A ∩ B) = P (article is having exactly one type of defect) = P(D) + P(E) – 2 P(D ∩ E) = 0.1 + 0.05 - 2 (0.1) (0.05) = 0.14 ∴Probability =

0.14 0.145

[Note: If A and B are two events, probability that exactly only one of them occurs is P(A) + P(B) – 2P(A ∩ B)]

Example 13 An electronic system has 2 subsystems A and B. It is known that P (A fails) = 0.2 P (B fails alone) = 0.15 P (A and B fail) = 0.15 Find (a) P (A fails | B has failed) (b) P (A fails alone)

13

Solution P(A and B failed) 0.15 1 = = P(B failed) 0.30 2

(a)

P(A fails | B has failed) =

(b)

P (A fails alone) = P (A fails) – P (A and B fail) = 0.02-0.15 = 0.05

Example 14 A binary number is a number having digits 0 and 1. Suppose a binary number is made up of ‘n’ digits. Suppose the probability of forming an incorrect binary digit is p. Assume independence between errors. What is the probability of forming an incorrect binary number? 1- P (forming a correct no.) = 1 – (1-p)n .

Ans Example 15

A question paper consists of 5 Multiple choice questions each of which has 4 choices (of which only one is correct). If a student answers all the five questions randomly, find the probability that he answers all questions correctly. 1 4

Ans

5

.

Theorem on Total Probability Let B1, B2, …, Bn be n mutually exclusive events of which one must occur. If A is any other event, then P(A) = P(A ∩ B1 ) + P(A ∩ B 2 ). + ..... + P(A ∩ B n )

=

n i=1

P(Bi ) P(A | Bi )

(For a proof, see your text book.)

Example 16 There are 2 urns. The first one has 4 red balls and 6 black balls. The second has 5 red balls and 4 black balls. A ball is chosen at random from the 1st and put in the 2nd. Now a ball is drawn at random from the 2nd urn. Find the probability it is red. 14

Solution: Let B1 be the event that the first ball drawn is red and B2 be the event that the first ball drawn is black. Let A be the event that the second ball drawn is red. By the theorem on total probability, 4 6 6 5 54 × + × = =0.54. P(A) = P(B1) P(A | B1) + P(B2) P(A | B2) = 10 10 10 10 100

Example 17: A consulting firm rents cars from three agencies D, E, F. 20% of the cars are rented from D, 20% from E and the remaining 60% from F. If 10% of cars rented from D, 12% of cars rented from E, 4% of cars rented from F have bad tires, find the probability that a car rented from the consulting firm will have bad tires.

Ans.

(0.2) (0.1) + (0.2) (0.12) + (0.6) (0.04)

Example 18: A bolt factory has three divisions B1, B2, B3 that manufacture bolts. 25% of output is from B1, 35% from B2 and 40% from B3. 5% of the bolts manufactured by B1 are defective, 4% of the bolts manufactured by B2 are defective and 2% of the bolts manufactured by B3 are defective. Find the probability that a bolt chosen at random from the factory is defective.

Ans.

25 5 35 4 40 2 × + × + × 100 100 100 100 100 100

15

BAYES’ THEOREM Let B1, B2, ……….Bn be n mutually exclusive events of which one of them must occur. If A is any event, then P(B k | A) =

P(A ∩ B k ) P(B )P(A | B k ) = n k P(A) P(B i )P(A | B i ) i =1

Example 19 Miss ‘X’ is fond of seeing films. The probability that she sees a film on the day before the test is 0.7. Miss X is any way good at studies. The probability that she maxes the test is 0.3 if she sees the film on the day before the test and the corresponding probability is 0.8 if she does not see the film. If Miss ‘X’ maxed the test, find the probability that she saw the film on the day before the test.

Solution Let B1 be the event that Miss X saw the film before the test and let B2 be the complementary event. Let A be the event that she maxed the test. Required. P(B1 | A)

=

P(B1 )P(A | B1 ) P(B1 ) × P(A | B1 ) + P(B) × P(A | B 2 )

=

0 .7 × 0 .3 0 . 7 × 0 . 3 + 0 . 3 × 0 .8

Example 20 At an electronics firm, it is known from past experience that the probability a new worker who attended the company’s training program meets the production quota is 0.86. The corresponding probability for a new worker who did not attend the training program is 0.35. It is also known that 80% of all new workers attend the company’s training 16

program. Find probability that a new worker who met the production quota would have attended the company’s training programme.

Solution Let B1 be the event that a new worker attended the company’s training programme. Let B2 be the complementary event, namely a new worker did not attend the training programme. Let A be the event that a new worker met the production quota. Then we 0 .8 × 0 .8 want P(B1 | A) = . 0.8 × 0.86 + 0.2 × 0.35

Example 21 A printing machine can print any one of n letters L1, L2,……….Ln. It is operated by electrical impulses, each letter being produced by a different impulse. Assume that there is a constant probability p that any impulse prints the letter it is meant to print. Also assume independence. One of the impulses is chosen at random and fed into the machine twice. Both times, the letter L1 was printed. Find the probability that the impulse chosen was meant to print the letter L1.

Solution: Let B1 be the event that the impulse chosen was meant to print the letter L1. Let B2 be the complementary event. Let A be the event that both the times the letter L1 was printed. 1 P(B1) = . P(A|B1) = p2. Now the probability that an impulse prints a wrong letter is (1n 1− p p). Since there are n-1 ways of printing a wrong letter, P(A|B2) = . Hence P(B1|A) n −1 P(B1 ) × P(A | B1 ) = P(B1 ) × P(A | B1 ) + P(B 2 ) × P(A | B 2 )

=

1 2 p n 1 2 1 p + 1− n n

1− p n −1

2

. This is the required probability.

17

Miscellaneous problems 1 (a). Suppose the digits 1,2,3 are written in a random order. Find probability that at least one digit occupies its proper place.

Solution There are 3! = 6 ways of arranging 3 digits (See the figure), out of which in 4 arrangements , at least one digit occupies its proper place. Hence the probability is 4 4 = . 123 213 312 3! 6 132 231 321 (Remark. An arrangement like 231, where no digit occupies its proper place is called a derangement.) (b)

Same as (a) but with 4 digits 1,2,3,4

Solution

Ans.

15 (Try proving this.) 24

Let A1 be the Event 1st digit occupies its proper place A2 be the Event 2nd digit occupies its proper place A3 be the Event 3rd digit occupies its proper place A4 be the Event 4th digit occupies its proper place

P(at least one digit occupies its proper place) =P(A1∪A2 ∪A3 ∪A4) =P(A1) + P(A2) + P(A3) + P(A4) (There are 4C1 terms each with the same probability) − P(A 1 ∩ A 2 ) − P(A 1 ∩ A 3 ) − P(A 1 ∩ A 4 ) − ... − P( A 3 ∩ A 4 ) (There are 4C2 terms each with the same probability) + P(A 1 ∩ A 2 ∩ A 3 ). + P(A 1 ∩ A 2 ∩ A 4 ) + ... + P(A 2 ∩ A 3 ∩ A 4 )

(There are 4C3 terms each with the same probability) - P( A 1 ∩ A 2 ∩ A 3 ∩ A 4 ) = 4c1

3! 2! 1! 0! − 4c 2 + 4c 3 − 4c 4 4! 4! 4! 4!

18

= 1−

=

(c)

1 1 1 + − 2 6 24

24 − 12 + 4 − 1 15 = 24 24

Same as (a) but with n digits.

Solution

Let A1 be the Event 1st digit occupies its proper place A2 be the Event 2nd digit occupies its proper place …………………… An be the Event nth digit occupies its proper place

P(at least one digit occupies its proper place) = P(A1∪A2 ∪ … ∪An) (n − 1)! (n − 2)! (n − 3)! 1 = nc1 − nc 2 + nc 3 - ...... + (-1) n -1 n! n! n! n! = 1−

2.

In a party there are ‘n’ married couples. If each male chooses at random a female for dancing, find the probability that no man chooses his wife.

Ans 3.

1 1 1 1 + − ..........(−1) n −1 ≈ 1 − e −! (for n large). 2! 3! 4! n!

1-( 1 −

1 1 1 1 + − ..........(−1) n −1 ). 2! 3! 4! n!

A and B play the following game. They throw alternatively a pair of dice. Whosoever gets sum of the two numbers on the top as seven wins the game and the game stops. Suppose A starts the game. Find the probability (a) A wins the game (b) B wins the game.

19

Solution A wins the game if he gets seven in the 1st throw or in the 3rd throw or in the 1 5 5 1 5 5 5 5 1 5th throw or …. Hence P(A wins) = + × × + × × × × + … 6 6 6 6 6 6 6 6 6

1 6 = 5 1− 6 4.

2

1 6 5 6 = = . P(B wins) = complementary probability = . 36 − 25 11 11 36

Birthday Problem There are n persons in a room. Assume that nobody is born on 29th Feb. Assume that any one birthday is as likely as any other birth day. Find the probability that no two persons will have same birthday.

Solution If n > 365, at least two will have the same birthday and hence the probability that no two will have the same birthday is 0. If n ≤ 365, the desired probability is =

5.

365 × 364 × .........[365 − (n − 1)] . (365) n

A die is rolled until all the faces have appeared on top. (a) What is probability that exactly 6 throws are needed? Ans.

6! 66

(b) What is probability that exactly ‘n’ throws are needed? (n > 6)

20

6.

Polya’s urn problem An urn contains g green balls and r red balls. A ball is chosen at random and its color is noted. Then the ball is returned to the urn and c more balls of same color are added. Now a ball is drawn. Its color is noted and the ball is replaced. This process is repeated. (a) Find probability that 1st ball drawn is green. Ans.

g g+r

(b) Find the probability that the 2nd ball drawn is green. Ans.

g g+c r g g × + = g +r g +r+c g +r g+r+c g+r

(c) Find the probability that the nth ball drawn is green. The surprising answer is 7.

g . g+r

There are n urns and each urn contains a white and b red balls. A ball is chosen from Urn 1 and put into Urn 2. Now a ball is chosen at random from urn 2 and put into urn 3 and this is continued. Finally a ball drawn from Urn n. Find the probability that it is white.

Solution Let pr = Probability that the ball drawn from Urn r is white. ∴ p r = p r −1 ×

a +1 a + (1 − p r −1 ) × ; r = 1, 2, …, n. a + b +1 a + a +1

This is a recurrence relation for pr. Noting that p1 =

21

a , we can find pn. a+b

MATHEMATICAL EXPECTATION & DECISION MAKING Suppose we roll a die n times. What is the average of the n numbers that appear on the top? Suppose 1 occurs on the top n1 times Suppose 2 occurs on the top n2 times Suppose 3 occurs on the top n3 times Suppose 4 occurs on the top n4 times Suppose 5 occurs on the top n5 times Suppose 6 occurs on the top n6 times Total of the n numbers on the top = 1 × n 1 + 1 × n 2 + ..............6 × n 6 ∴Average of the n numbers, 1 × n 1 + 2 × n 2 ..........6 × n 6 n n n = 1 × 1 + 2 × 2 + ... + 6 × 6 n n n n Here clearly n1, n2, …, n6 are unknown. But by the relative frequency definition of n 1 n probability, we may approximate 1 by P(getting 1 on the top) = , 2 by n 6 n 1 P(getting 2 on the top) = , and so on. So we can ‘expect’ the average of the n 6 7 numbers to be = 3.5 . We call this the Mathematical Expectation of the number 2 on the top. =

Definition Let E be a random experiment with n outcomes a1, a2 ……….an. Suppose P({a1})=p1, P({a2})=p2, …, P({an})=pn. Then we define the mathematical expectation as a 1 × p1 + a 2 × p 2 ......... + a n × p n

22

Problems 1.

If a service club sells 4000 raffle tickets for a cash prize of $800, what is the mathematical expectation of a person who buys one of these tickets?

Solution. 2.

5000 ×

1 1 + 100 × + 0× ( ) 2000 2000

A game between 2 players is called fair if each player has the same mathematical expectation. If some one gives us $5 whenever we roll a 1 or a 2 with a balanced die, what we must pay him when we roll a 3, 4, 5 or 6 to make the game fair?

Solution.

4.

1 1 + 0 × ( ) = = 0 .2 4000 5

A charitable organization raises funds by selling 2000 raffle tickets for a 1st prize worth $5000 and a second prize $100. What is mathematical expectation of a person who buys one of the tickets?

Solution. 3.

800 ×

If we pay $x when we roll a 3, 4, 5, or 6 for the game to be fair, 4 2 x × = 5 × or x = 10. That is we must pay $10. 6 6

Gambler’s Ruin A and B are betting on repeated flips of a balanced coin. At the beginning, A has m dollars and B has n dollars. After each flip the loser pays the winner 1 dollar and the game stops when one of them is ruined. Find probability that A will win B’s n dollars before he loses his m dollars.

Solution. Let p be the probability that A wins (so that 1-p is the probability that B wins). Since the game is fair, A’s math exp = B’s math exp. Thus n × p + 0 (1 − p ) = m(1 − p) + 0.p or p =

23

m m+n

5.

An importer is offered a shipment of machines for $140,000. The probability that he will sell them for $180,000, $170,000 (or) $150,000 are respectively 0.32, 0.55, and 0.13. What is his expected profit?

Solution.

Expected profit = 40,000 × 0.32 + 30,000 × 0.55 + 10,000 × 0.13 =$30,600

6.

The manufacturer of a new battery additive has to decide whether to sell her product for $80 a can and for $1.2 a can with a ‘double your money back if not satisfied’ guarantee. How does she feel about the chances that a person will ask for double his/her money back if (a) she decides to sell the product for $0.80 (b) she decides to sell the product for $1.20 (c) she can not make up her mind?

Solution.

In the 1st case, she gets a fixed amount of $0.80 a can In the 2nd case, she expects to get for each can (1.20) (1-p) + (-1.2) (p) = 1.20 – (2.4) p Let p be the prob that a person will ask for double his money back. (a) happens if 0.80 > 1.20 –2.40 p p > 1/6 (b) happens if p < 1/6 (c) happens if p = 1/6

24

7.

A manufacturer buys an item for $1.20 and sells it for $4.50. The probabilities for a demand of 0, 1, 2, 3, 4, “5 or more” items are 0.05, 0.15, 0.30, 0.25, 0.15, 0.10 respectively. How many items he must stock to maximize his expected profit?

No. of items stocked

No. sold with prob.

0 1

2

3

0

Exp. profit

1

0 1

0.05 0.95

0 1 2

0.05 0.15 0.80 0 1 2 3

0.05 0.15 0.30 0.50

0 0 × 0.05 + 4.5 × 0.95 − 2.1 = 2.175 0 × 0.05 + 4.5 × 0.15 + 9 × 0.80 − 4.2 = 3.675 0 × 0.05 + 4.5 × 0.15 + 9 × 0.30 + 13.5 × 0.15 − 6.3 = 

4

2.85

5

0.525

6

0.45

Hence he must stock 3 items to maximize his expected profit. 8.

A contractor has to choose between 2 jobs. The 1st job promises a profit of $240,000 with probability 0.75 and a loss of $60,000 with probability 0.25. The 2nd job promises a profit of $360,000 with probability 0.5 and a loss of $90,000 with probability 0.5. (a)

Which job should the contractor choose to maximize his expected profit? 3 1 i. Exp. profit for job1 = 240,000 × − 60,000 × = 155,000 4 4 1 1 ii. Exp. profit for job2 = 36,000 × − 90,000 × = 135,000 2 2 Go in for job1.

(b)

What job would the contractor probably choose if her business is in bad shape and she goes broke unless, she makes a profit of $300,000 on her next job. Ans:- She takes the job2 as it gives her higher profit.

25

RANDOM VARIABLES Let E be a random experiment. A random variable (r.v) X is a function that associates to each outcome s, a unique real number X (s).

Example 1 Let E be the random experiment of tossing a fair coin 3 times. We see that there are 2 3 = 8 outcomes TTT, HTT, THT, TTH, HHT, HTH, THH, HHH all of which are equally likely. Let X be the random variable that ‘counts’ the number of heads obtained. Thus X can take only 4 values 0,1,2,3. We note that 1 3 3 1 P ( X = 0 ) = , P ( X = 1) = , P ( X = 2 ) = , P ( X = 3) = . This is called the 8 8 8 8 probability distribution of the rv X. Thus the probability distribution of a rv X is the listing of the probabilities with which X takes all its values.

Example 2 Let E be the random experiment of rolling a pair of balanced die. There are 36 possible equally likely outcomes, namely (1,1), (1,2)…… (6,6). Let X be the rv that gives the sum of the two nos on the top. Hence X take 11 values namely 2,3……12. We note that the probability distribution of X is 1 2 P(X = 2 ) = P(X = 12 ) = , P(X = 3) = P(X = 11) = , 36 36 3 P(X = 4 ) = P(X = 10 ) = , 36 4 P(X = 5) = P(X = 9 ) = . 36 5 6 1 P(X = 6 ) = P(X = 8) = , P(X = 7 ) = = . 36 36 6

Example 3 Let E be the random experiment of rolling a die till a 6 appears on the top. Let X be the no of rolls needed to get the “first” six. Thus X can take values 1,2,3…… Here X takes an infinite number of values. So it is not possible to list all the probabilities with which X takes its values. But we can give a formula. 26

P( X = x ) =

5 6

x −1

1 6

(x = 1,2.....)

(Justification: X = x means the first (x-1) rolls gave a number (other than 6) and

5 5 5 1 5 the xth roll gave the first 6. Hence P ( X = x ) = × ...× × = 6 6 6 6 6

x −1

1 6

)

x −1 times

Discrete Random Variables We say X is a discrete rv of it can take only a finite number of values (as in example 1,2 above) or a “countably” infinite values (as in example 3). On the other hand, the annual rainfall in a city, the lifelength of an electronic device, the diameter of washers produced by a factory are all continuous random variables in the sense they can take (theoretically at least) all values in an ‘interval’ of the x-axis. We shall discuss continuous rvs a little later. Probability distribution of a Discrete RV Let X be a discrete rv with values x1 , x 2 ......

Let f (x i ) = P(X = x i )(i = 1,2.....)

We say that {f (x i )}i =1, 2.... is the probability distribution of the rv X.

Properties of the probability distribution (i)

f (x i ) ≥ 0 for all i = 1,2..... f (x i ) = 1

(ii) i

The first condition follows from the fact that the probability is always ≥ 0. The second condition follows from the fact that the probability of the certain event = 1.

27

Example 4 Determine whether the following can be the probability distribution of a rv which can take only 4 values 1,2,3 and 4. (a) (b) (c)

f (1) = 0.26 f (2) = 0.26 f (3) = 0.26 f (4) = 0.26 . No as the sum of all the “probabilities” > 1. f (1) = 0.15 f (2) = 0.28, f (3) = 0.29 f (4 ) = 0.28 . Yes as these are all ≥ 0 and add up to 1. x +1 f (x ) = x = 1,2,3,4 . 16 No as the sum of all the probabilities < 1.

Binomial Distribution Let E be a random experiment having only 2 outcomes, say ‘success’ and ‘failure’. Suppose that P(success) = p and so P(failure) = q (=1-p). Consider n independent repetitions of E (This means the outcome in any one repetition is not dependent upon the outcome in any other repetition). We also make the important assumption that P(success) = p remains the same for all such independent repetitions of E. Let X be the rv that ’counts’ the number of successes obtained in n such independent repetitions of E. Clearly X is a discrete rv that can take n+1 values namely 0,1,2,….n. We note that there are 2 n outcomes each of which is a ‘string’ of n letters each of which is an S or F (if n =3, it will be FFF, SFF, FSF, FFS, SSF, SFS, FSS, SSS). X = x means in any such outcome there are x successes and (n-x) failures in some order. One such will be SSS ..S FFF ..F . Since all x

n− x

the repetitions are independent prob of this outcome will be p x q n − x . Exactly the same prob would be associated with any other outcome for which X = x. But x successes can n occur out of n repetitions in mutually exclusive ways. Hence x P(X = x ) =

n x

p x q n − x (x = 0,1, ...n ).

28

We say X has a Binomial distribution with parameters n ( ≡ the number of repetitions) and p (Prob of success in any one repetition). We denote P(X = x ) by b(x; n , p ) to show its dependence on x, n and p. The letter ‘b’ stands for binomial. Since all the above (n+1) probabilities are the (n+1) terms in the expansion of the binomial (q + p ) , X is said to have a binomial distribution. We at once see that the sum n

of all the binomial probabilities = (q + p ) = 1n = 1. n

The independent repetitions are usually referred to as the “Bernoulli” trials. We note that b(x; n, p ) = b(n − x; n, q ) (LHS = Prob of getting x successes in n Bernoulli trials = prob of getting n-x failures in n Bernoulli trials = R.H.S.)

Cumulative Binomial Probabilities Let X have a binomial distribution with parameters n and p.

P(X ≤ x ) = P(X = 0) + P (X = 1) + ...... P(X = x ) =

x k =0

b(k; n , p )

is denoted by B( x; n, p ) and is called the cumulative Binomial distribution function. This is tabulated in Table 1 of your text book. We note that b(x; n , p ) = p(X = x ) = P(X ≤ x ) − P(X ≤ x − 1) = B(x; n , p ) − B(x − 1; n , p )

Thus b(9;12,00.60) = B(9;12,0.60) − B(8;12,0.60) = 0.9166 − 0.7747 = 0.1419

(You can verify this by directly calculating b(9;12,0.60)). 29

Example 5 (Exercise 4.15 of your book) During one stage in the manufacture of integrated circuit chips, a coating must be applied. If 70% of the chips receive a thick enough coating find the probability that among 15 chips. (a) At least 12 will have thick enough coatings. (b) At most 6 will have thick enough coatings. (c) Exactly 10 will have thick enough coatings.

Solution Among 15 chips, let X be the number of chips that will have thick enough coatings. Hence X is a rv having Binomial distribution with parameters n =15 and p = 0.70. (a) P(X ≥ 12) = 1 − P(X ≤ 11)

= 1 − B (11;15,0.70 ) = 1 − 0.7031 = 0.3969

(b) P(X ≤ 6) = B(6;15,0.70 ) = 0.0152 (c) P(X = 10) = B(10;15,0.70) − B(9;15,0.70) = 0.4849 − 0.2784 = 0.2065

Example 6 (Exercise 4.19 of your text book) A food processor claims that at most 10% of her jars of instant coffee contain less coffee than printed on the label. To test this claim, 16 jars are randomly selected and contents weighed. Her claim is accepted if fewer than 3 of the 16 jars contain less coffee (note that 10% of 16 = 1.6 and rounds to 2). Find the probability that the food processor’s claim will be accepted if the actual percent of the jars containing less coffee is (a) 5%

(b) 10%

(c) 15% (d) 20%

Solution: Let X be the number of jars that contain less coffee (than printed on the label) (among the 16 jars randomly chosen. Thus X is a random variable having a Binomial distribution 30

with parameters n = 16 and p (the prob of “success” = The prob that a jar chosen at random will have less coffee) (a) Here p = 5% = 0.05 Hence P (claim is accepted) = P(X ≤ 2) = B(2;16,0.05) = 0.9571. (b) Here p = 10% = 0.10 Hence P (claim is accepted) = B(2;16,0.01) = 0.7892 (c) Here p = 15% = 0.15. Hence P (claim is accepted) = B (2;16,0.15) = 0.5614 (d) Here p = 20% = 0.20 Hence P(claims accepted) = B(2,16,0.29) = 0.3518

Binomial Distribution – Sampling with replacement Suppose there is an urn containing 10 marbles of which 4 are white and the rest are black. Suppose 5 marbles are chosen with replacement. Let X be the rv that counts the no of white marbles drawn. Thus X = 0,1,2,3,4 or 5 (Remember that we replace each marble in the urn before drawing the next one. Hence we can draw 5 white marbles) P (“Success”) = P (Drawing a white marble in any one of the 5 draws) =

4 (remember 10

we draw with replacement). Thus X has a Binomial distribution with parameters n = 5 and p = Hence P ( X = x ) = b x;5,

4 10

4 10

Mode of a Binomial distribution We say x0 is the mode of the Binomial distribution with parameters n and p if

P ( X = x0 ) is the greatest. From the binomial tables given in the book we can easily see

that 31

When n = 10, p =

1 , P ( X = 5) is the greatest or 5 is the mod e. 2

Fact b( x + 1; n, p ) n − x p = × > 1if x < np − (1 − p ) b( x; n; p ) n +1 1− p = 1 if x = np − (1 − p )

<1if n > n p − (1 − p )

Thus so long as x np-(1-p) they decrease. Hence if np-(1-p) = x0 is an integer, then the mode is x0 and x0 + 1. If n – (1-p)

in not an integer and if x0 = smallest integer ≥ np − (1 − p ) , the mode is x 0 .

Hypergeometric Distribution (Sampling without replacement) An urn contains 10 marbles of which 4 are white. 5 marbles are chosen at random without replacement. Let X be the rv that counts the number of white marbles drawn. Thus X can take 5 values names 0,1,2,3,4. What is P (X = x)? Now out of 10 marbles 5 10 4 6 can be chosen in equally like ways, out of which there will be ways of 5 x 5− x drawing x white marbles (and so 5-x read marbles) (Reason out of 4 white marbles, x can 4 6 be chosen in ways and out of 6 red marbles, 5-x can be chosen in ways). x 5− x 4 Hence P ( X = x ) =

x

6 5− x x = 0,1,2,3,4. 10 5

We generalize the above result. A box contains N marbles out of which a are white. n marbles are chosen without replacement. Let X be the random variable that counts the number of white marbles drawn. X can take the values 0,1,2……. n.

32

P( X = a ) =

a

N −a

x

n−x x = 0,1,2.... n N n

(Note x must be less than or equal to a and n-x must be less than or equal to N-a) We say the rv X has a hypergeometric distribution with parameters n,a and N. We denote P(X=x) by h (x;n,a,N).

Example 7 (Exercise 4.22 of your text book) Among the 12 solar collectors on display, 9 are flat plate collectors and the other three are concentrating collectors. If a person choses at random 4 collectors, find the prob that 3 are flat plate ones. 9

Ans

h (3; 4, 9,12 ) =

3

3 1 12 4

Example 8 (Exercise 4.24 of your text book) If 6 of 18 new buildings in a city violate the building code, what is the probability that a building inspector, who randomly selects 4 of the new buildings for inspection, will catch (a) None of the new buildings that violate the building code 12

Ans

h(1; 4, 6, 18) =

4 18 4

(b) One of the new buildings that violate the building code

33

Ans

h(1; 4, 6,18) =

6

12

1

3 18 4

(c) Two of the new buildings that violate the building code

Ans

h(2; 4, 6, 18) =

6

12

2

2 18 4

(d) At least three of the new buildings that violate the building code

Ans

h(3; 4, 6, 18) + h (4; 4, 6, 18)

(Note: We choose 4 buildings out of 18 without replacement. Hence hypergeometric distribution is appropriate)

Binomial distribution as an approximation to the Hypergeometric Distribution We can show that h( x; n, a, N ) → b( x; n, p ) as N → ∞ (Where p = probability

a = " prob of a success" ) . Hence if N is large the hypergeometric N h (x; n, a , N ) can be approximated by the binomial probability

b(x; n, p ) where p =

a . N

Example 9 (exercise 4.26 of your text) A shipment of 120 burglar alarms contains 5 that are defective. If 3 of these alarms are randomly selected and shipped to a customer, find the probability that the customer will get one defective alarm. (a) By using the hypergemetric distribution (b) By approximating the hypergeometric probability by a binomial probability. 34

Solution Here N = 120 (Large!) a = 5 n = 3 x =1 (a) Reqd prob = h(1; 3, 5,120) 5 =

1

115 2 120

=

5 × 6555 = 0.1167 280840

3 (b) h(1; 3, 5, 120 ) ≈ b 1; 3,

3 = 1

5 120

5 120

5 1− 120

2

= 0.1148

Example 10 (Exercise 4.27 of your text) Among the 300 employees of a company, 240 are union members, while the others are not. If 8 of the employees are chosen by lot to serve on the committee which administrates the provident fund, find the prob that 5 of them will be union members while the others are not. (a) Using hypergemoretric distribution (b) Using binomial approximation

Solution Here N = 300, a = 240, n = 8 x = 5 (a) h (5; 8, 240, 300) (b) ≈ b 5; 8,

240 300

35

THE MEAN AND VARIANCE OF PROBABILITY DISTRIBUTIONS We know that the equation of a line can be written as y = mx + c. Here m is the slope and c is the y intercept. Different m,c give different lines. Thus m and c characterize a line. Similarly we define certain numbers that characterize a probability distribution.

The mean of a probability distribution is simply the mathematical expectation of the corresponding r.v. If a rv X takes on the values x 1, x 2 ..... with probabilities

f (x 1 ), f (x 2 )...., its

mathematical

x1 f ( x1 ) + x 2 f ( x 2 ) + ...... =

expectation

xi x P ( x = xi ) =

or

expected

value × Pr obability

i

We use the symbol µ to denote the mean of X. Thus µ = E ( X ) =

xi P( x = xi ) (Summation over all xi in the Range of X)

Example 11 Suppose X is a rv having the probability distribution X

1

2

3

Prob

1 2

1 3

1 6

Hence the mean µ of the prob distribution (of X) is

µ =1 ×

1 1 1 5 + 2× + 3× = 2 3 6 3

Example 12 Let X be the rv having the distribution X

0

1

Prob

q

p

36

value

is

where q = 1 − p. Thus µ = 0 × q + 1 × p = p. The mean of a Binomial Distribution Suppose X is a rv having Binomial distribution with parameters n and p. Then Mean of X = µ = np. (Read the proof on pages 107-108 of your text book) The mean of a hypergeometric Distribution If X is a rv having hypergeometric distribution with parameters N , n, a, then µ = n

a . N

Digression The mean of a rv x give the “average” of the values taken by the rv. X. Thus the average marks in a test is 40 means the students would have got marks less than 40 and greater than 40 but it averages out to be 40. But we do not get an idea about the spread ( ≡ deviation from the mean) of the marks. This spread is measured by the variance. Informally speaking by the average of the squares of deviation from the mean. Variance of a Probability Distribution of X is defined as the expected value of

(X − µ )2 Variance of X = σ 2 =

(x i − )2 P(X = x i )

xi ∈ R X Note that R.H.S is always ≥ 0 (as it is the sum of non-ve numbers) The positive square root σ of σ 2 is called the standard deviation of X and has the same units as X and µ . 37

Example 13 For the rv X having the prob distribution given in example 11, the variance is

5 1− 3 =

2

1 5 × + 2− 2 3

2

1 5 × + 3− 3 3

2

×

1 6

4 1 1 1 16 1 5 x + × + × = 9 2 9 3 9 6 9

We could have also used the equivalent formula

( )

σ 2 = E (X − µ ) = E X 2 − µ 2 2

( )

1 1 1 1 4 9 60 10 + 2 2 × + 32 × = + + = = 2 3 6 2 3 6 18 3 10 25 5 ∴σ2 = − = . 3 9 9 Here E X 2 = 12 ×

Example 14 For the probability distribution of example 12,

( )

E X 2 = o 2 × q + 12 × p = p

∴σ 2 = p − p 2 = p(1 − p ) = pq Variance of the Binomial Distribution

σ 2 = npq Variance of the Hypergeometric Distribution

σ2 =n

a a N −n 1− . . N N N −1

38

CHEBYCHEV’S THEOREM Suppose X is a rv with mean µ and variance σ 2 . Chebychev’s theorem states that: If k is a constant > 0, P(| X − µ | ≥ kσ ) ≤

1 k2

In words the prob of getting a value which deviates from its mean µ by at least kσ is at 1 . k2 Note: Chebyshev’s Theorem gives us an upper bound of the prob of an event. Mostly it is of theoretical interest. most

Example 15 (Exercise 4.44 of your text) In one out of 6 cases, material for bullet proof vests fails to meet puncture standards. If 405 specimens are tested, what does Chebyshev theorem tell us about the prob of getting at most 30 or at least 105 cases that do not meet puncture standards? 1 135 Here µ = np = 405 × = 6 2 1 5 6 6

σ 2 = n p q = 405 × ×

15 2 Let X = no of cases out of 405 that do not meet puncture standards Reqd P(X ≤ 30 or X ≥ 105) ∴σ =

Now X ≤ 30 X ≥ 105

X − µ ≤−

X −µ ≥

75 2

75 2

Thus X ≤ 30 or X ≥ 105

| X −µ |≥

75 = 5σ 2

39

∴P(X ≤ 30 or X ≥ 105) = P(| X − µ | ≥ 5σ ) ≤

1 1 = = 0.04 5 2 25

Example 16 (Exercise 446 of your text) How many times do we have to flip a balanced coin to be able to assert with a prob of at most 0.01 that the difference between the proportion of tails and 0.50 will be at least 0.04?

Solution: Suppose we flip the coin n times and suppose X is the no of tails obtained. Thus the proportion of tails =

P

No of tails X . We must find n so that = n Total No of flips

X − 0.50 ≥ 0.04 ≤ 0.01 n

Now X = no of tails among n flips of a balanced coin is a rv having Binomial distribution with parameters n and 0.5. Hence µ = E(X ) = np = n × 0.50

(as p = q = 0.50)

σ = n p q = n × 0.50 Now

X − 0.50 ≥ 0.04 is equivalent to X − n × 0.50 ≥ 0.04n. n

We know P( X − µ ≥ kσ )≤

1 k2

Here kσ = 0.04n

∴k =

0.04n 0.50 × n

= 0.08 n

40

∴P

X − 0.50 ≥ 0.04 n

= P(| X − µ | ≥ kσ ) ≤

1 ≤ 0.01 k2

1 2 = 100 or if (.08) n ≥ 100. 0.01 100 or n ≥ =15625 (.08)2

if k 2 ≥

Law of large Numbers Suppose a factory manufactures items. Suppose there is a constant prob p that an item is defective. Suppose we choose n items at random and let X be the no of defectives found. Then X is a rv having binomial distribution with parameters n and p. ∴ mean µ = E (X ) = np, var iance σ 2 = npq Let ε be any no > 0. Now P

X −p ≥ε n

= P( X − np ≥ nε ) = P( x − µ ≥ kσ ) (where kσ = nε ) ≤

1 σ2 npq pq ( by Chebyshev ' s theorem ) = = 2 2 = 2 → 0 as n → ∞. 2 2 2 k n ε n ε nε

Thus we can say that the prob that the proportion of defective items differs from the actual prob. p by any + ve no ε → 0 as n → ∞ . (This is called the Law of Large numbers) This means “most of the times” the proportion of defectives will be close to the actual X (unknown) prob p that an item is defective for large n. So we can estimate p by , the n (Sample) proportion of defectives.

41

POISSON DISTRIBUTION A random variable X is said to have a Poisson distribution with parameter λ > 0 if its probability distribution is given by P ( X = x ) = f ( x; λ ) = e − λ

λx x!

x = 0,1,2......

We can easily show: mean of X = µ = λ and variance of X = σ 2 = λ. Also P( X = x ) is largest when x = λ − 1 and λ if λ is an integer and when x = [λ ] = the greatest integer ≤ λ (when λ is not an integer). Also note that P( X = x ) → 0 as x → ∞.

POISSON APPROXIMATION TO BINOMIAL DISTRIBUTION Suppose X is a rv having Binomial distribution with parameters n and p. We can easily show b(x; n, p ) = P(X = x ) → f (x; ) as n → ∞ in such a way that np remains a constant

λ. Hence for n large, p small, the binomial prob b( x; n, p ) can be approximated by the Poisson prob f ( x; λ ) where λ = np.

Example 17

b(3;100, 0.03) ≈ f (3;3) =

e −3 3 3 3!

Example 18 (Exercise 4.54 of your text) If 0.8% of the fuses delivered to an arsenal are defective, use the Poisson approximation to determine the probability that 4 fuses will be defective in a random sample of 400.

Solution If X is the number of defectives in a sample of 400, X has the binomial distribution with parameters n = 400 and p = 0.8% = 0.008. 42

Thus P (4 out of 400 are defective) = b(4; 400, 0.008) ≈ f (4; λ ) (Where λ = 400 × 0.008 = 3.2 ) =e

− 3.2

(3.2)4

4! = 0.781 − 0.603 (from table 2 at the end of the text) = 0.178

Cumulative Poisson Distribution Function If X is a rv having Poisson Distribution with parameter λ , the cumulative Poisson Prob = F(x; λ ) = P(X ≤ x ) =

x k =0

P(X = k ) =

x k =0

f (k; λ )

For various λ and x, F(x; λ ) has been tabulated in table 2 (of your text book on page 581 to 585) .We use the table 2 as follows. f (x; λ ) = P(X = x ) = P(X ≤ x ) − P(X ≤ x − 1) = F(x; λ ) − F(x − 1; λ )

Thus f (4;3.2) = F (4;3.2) − F (3;3.2) = 0.781 − 0.603 = 0.178.

Poisson Process There are many situations in which events occur randomly in regular intervals of time. For example in a time period t, let X t be the number of accidents at a busy road junction in New Delhi; X t be the number of calls received at a telephone exchange; X t be the number of radio active particles emitted by a radioactive source etc. In all such examples we find X t is a discrete rv which can take non-ve integral values 0,1,2,….. The important thing to note is that all such random variables have “same” distribution except that the parameter(s) depend on time t. The collection of random variables (X t ) t > 0 is said to constitute a random process. If

each (X t ) has a Poisson Distribution, we say (X t ) is a Poisson process. Now we show

the rvs (X t ) which counts the number of occurrences of a random phenomena in a time 43

period t constitute a Poisson process under suitable assumptions. Suppose in a time period t, a random phenomenon which we call “success” occurs. We let Xt = number of successes in time period t. We assume : 1.

In a small time period ∆t , either no success or one success occurs.

2.

The prob of a success in a small time period ∆t is proportional to ∆t i.e. say P ( X ∆t = 1) = α∆t . ( α → constant of proportionality)

3.

The prob of a success during any time period does not depend on what happened prior to that period.

Divide the time period t into n small time periods each of length ∆t . Hence by assumptions above, we note that Xt = no of successes in time period t is a rv having Binomial distribution with parameters n and p = α∆t . Hence P(X t = x ) = b(x; n , α∆t ) → f (x;

) as n → ∞

where

= n.

t

So we can say that Xt = no of successes in time period t is a rv having Poisson distribution with parameter α t. Meaning of the proportaratility constant α Since mean of X t is λ = αt , We find α = mean no of successes in unit time. (Note: For a more rigorous derivation of the distribution of Xt, you may see Meyer, Introductory probability and statistical applications, pages 165-169).

Example 19 (Exercise 4.56 of your text) Given that the switch board of a consultant’s office receives on the average 0.6 call per minute, find the probability that (a) In a given minute there will be at least one call. (b) In a 4-minute interval, there will be at least 3 calls. 44

Solution Xt= no of calls in a t-minute interval is a rv having Poisson distribution with parameter αt = 0.6t (a) P(X1 ≥ 1) = 1 − P(X 1 = 0 ) = 1 − e −0.6 = 1 − 0.549 = 0.451.

(b) P(X 4 ≥ 3) = 1 − P(X 4 ≤ 2 ) = 1 − F (2;2.4) = 1 − 0.570 = 0.430

Example 20 Suppose that Xt, the number of particles emitted in t hours from a radio – active source has a Poisson distribution with parameter 20t. What is the probability that exactly 5 particles are emitted during a 15 minute period?

Solution 15 minutes =

1 hour 4

Hence if X 14 = no of particles emitted in

(

)

P X 14 = 5 = e

− 14 × 20

1 × 20 4 5!

1 hour 4

5

= e −5

55 5!

= 0.616 − 0.440 = 0.176 (from table 2)

45

THE GEOMETRIC DISTRIBUTION Suppose there is a random experiment having only two possible outcomes, called ‘success’ and ‘failure’. Assume that the prob of a success in any one ‘trial’ ( ≡ repetition of the experiment) is p and remains the same for all trials. Also assume the trials are independent. The experiment is repeated till a success is got. Let X be the rv that counts the number of trials needed to get the 1st success. Clearly X = x if the first (x-1) trials were failures and the xth trial gave the first success. Hence P(X = x ) = g (x; p ) = (1 − p )

x −1

p = q x −1 p

(x = 1,2......)

We say X has a geometric distribution with parameter p (as the respective probabilities form a geometric progression with common ratio q). We can show the mean of this distribution is

µ=

q 1 and the variance is σ 2 = 2 p p

(For example suppose a die is rolled till a 6 is got. It is reasonable to expect on an average 1 we will need 1 = 6 rolls as there are 6 nos!) 6

Example 21 (Exercise 4.60 of your text) An expert hits a target 95% of the time. What is the probability that the expert will miss the target for the first time on the fifteenth shot?

Solution Here ‘Success’ means the expert misses the target. Hence p = P(Success ) = 5% = 0.05 . If X is the rv that counts the no. of shots needed to get ‘a success’, we want P ( X = 15) = q 14 × p = (0.95) × 0.05. 14

46

Example 22 The probability of a successful rocket launching is 0.8. Launching attempts are made till a successful launching has occurred. Find the probability that exactly 6 attempts will be necessary.

Solution

(0.2)5 × 0.8

Example 23 X has a geometric distribution with parameter p. show (a) (b)

P ( X ≥ r ) = q r −1

r = 1,2,.........

P(x ≥ s + t | x > s ) = P( X ≥ t )

Solution (a)

(b)

P(X ≥ r ) =



=

X > s )=

P ( X ≥ s + t ) q s +t −1 = = q t −1 = P ( X ≥ t ). s P( X > s ) q

x =r

P(X ≥ s + t

q r −1 p = q r −1 . 1− q

q x −1 .p

Application to Queuing Systems Service facility Customers arrive in a Poisson Fashion

Depart after service

S

There is a service facility. Customers arrive in a random fashion and get service if the server is idle. Else they stand in a Queue and wait to get service. Examples of Queuing systems 1. Cars arriving at a petrol pump to get petrol 2. Men arriving at a Barber’s shop to get hair cut. 3. Ships arriving at a port to deliver goods. 47

Questions that one can ask are : 1. At any point of time on an average how many customers are in the system (getting service and waiting to get service)? 2. What is the mean time a customer waits in the system? 3. What proportion of time a server is idle? And so on. We shall consider only the simplest queueing system where there is only one server. We assume that the population of customers is infinite and that there is no limit on the number of customers that can wait in the queue. We also assume that the customers arrive in a ‘Poission fashion’ at the mean rate of α . This means that X t the number of customers that arrive in a time period t is a rv having Poisson distribution with parameter α t . We also assume that so long as the service station is not empty, customers depart in a Poisson fashion at a mean rate of β . This means, when there is at least one customer, Yt , the number of customers that depart (after getting service) in a time period t is a r.v. having Poisson distribution with parameter βt (where β > α ). Further assumptions are : In a small time interval ∆t , there will be a single arrival or a single departure but not both. (Note that by assumptions of Poisson process in a small time interval ∆t , there can be at most one arrival and at most one departure). Let at time t, N t be the number of customers in the system. Let P ( N t = n ) = p n (t ). We make another assumption:

p n (t ) → π n as t → ∞. π n is known as the steady state probability distribution of the number of customers in the system. It can be shown:

π o =1−

α β

α π n = 1− β

α β

n

(n = 0, 1, 2, . . .)

Thus L = Mean number of customers in the system getting service and waiting to get service) 48

=

∞ n =0

n.π n =

α β −α

L q = Mean no of customers in the queue (waiting to get service)

=

∞ n =1

(n − 1) π n =

α2 α =L− β (β − α ) β

W = mean time a customer spends in the system =

L 1 = β −α α

W q = Mean time a customer spends in the queue.

=

Lq α 1 = =W − . β (β − α ) α β

(For a derivation of these results, see Operations Research Vol. 3 by Dr. S. Venkateswaran and Dr. B Singh, EDD Notes of BITS, Pilani).

Example 24 (Exercise 4.64 of your text) Trucks arrive at a receiving dock in a Poisson fashion at a mean rate of 2 per hour. The trucks can be unloaded at a mean rate of 3 per hour in a Poisson fashion (so long as the receiving dock is not empty). (a) What is the average number of trucks being unloaded and waiting to get unloaded? (b) What is the mean no of trucks in the queue? (c) What is the mean time a truck spends waiting in the queue? (d) What is the prob that there are no trucks waiting to be unloaded? (e) What is the prob that an arriving truck need not wait to get unloaded?

49

Solution Here α = arrival rate = 2 per hour β = departure rate = 3 per hour. Thus

α

L=

(b)

α2 22 4 Lq = = = β (β − α ) 3(1) 3

(c)

Wq =

(d)

P (no trucks are waiting to be unloaded)

β −α

=

2 =2 3−2

(a)

α 2 = hr β (β − α ) 3

= (No of trucks in the dock is 0 or 1)

= π 0 +π 1 = 1−

= (e)

α α + 1− β β

α 2 2 2 = 1− + 1− β 3 3 3

1 2 5 + = 3 9 9

P (arriving truck need not wait) = P (dock is empty) 1 = π0 = 3

Example 25 With reference to example 24, suppose that the cost of keeping a truck in the system is Rs. 15/hour. If it were possible to increase the mean loading rate to 3.5 trucks per hour at a cost of Rs. 12 per hour, would this be worth while?

50

Solution In the old scheme, α = 2, β = 3, L = 2 ∴ Mean cost per hour to the dock = 2 x 15 = 30/hr. In the new scheme α = 2, β = 3, L =

4 verify! 3

∴ Net cost per hour to the dock =

4 × 15 + 12 = 32 / hr. 3

Hence it is not worthwhile to go in for the new scheme.

51

Related Documents

Proba
July 2020 7
Proba
May 2020 4
Proba
November 2019 20
Proba
June 2020 4
Proba
October 2019 18
Proba
November 2019 19