Docsity

Probability Distributions: A Comprehensive Guide, Study notes of Computer science

Partial preview of the text

Download Probability Distributions: A Comprehensive Guide and more Study notes Computer science in PDF only on Docsity!

NATIONAL OPEN UNIVERSITY OF NIGERIA

SCHOOL OF SCIENCE AND TECHNOLOGY

COURSE CODE: STT 211

COURSE TITLE: PROBABILITY DISTRIBUTION I

Course Code STT 211

Course Title Probability Distribution I

Writer Arowolo. OLATUNJI School of Science and Technology Lagos State Polytechnic. Ikorodu..

Course Editing Team

Throughout this book, whenever the word set is used, itwill be interpreted to mean a subset of a given set denoted by Ω. The set which contains no elements is called the Null set.

Definition

Let A be a set. The elements which are not included in A also constitute a subset. This is known as the complement of A and is denoted by Ac.

In example 1,1 if A {1,3,5}

Ac^ = {2,4,6} = {x: x Ω, x even}.

Definition:

Two sets A, B define two related sets. One of these is the set of all elements which belongs to both sets A and B. this is called the intersection of A and B and is denoted by A∩B. the other is the set of all the elements which occur in either A or B or both. This is called the union of A and B denoted by A B.

Example 1.

Let Ω = {1,2,3,4,5,6}, A = {1,3,5} and B = {2,3,5}

Then

A∩B = {3,5} A ∩B = {1,2,3,5}

A and B contain 3 element each while A ∩ B contains 2 elements and A ∩B contains 4 laments.

Note that the number of elements in A ∩ B is not the sum of the number of elements in A and B.

Definition: Difference of Two sets

The different of A and B is the set of elements which belong to A but not to B and is denoted by A/B

In example 1.2 above A/B = {x: x €A, x € B} Ω

A/B = {1}

B/A = {2}

The union of two sets A B can be divided into three disjoint sets

A/B, A ∩B, B/A.

That is

A ∩ B = (A/B) ∩ (A ∩B) ∩ (B/A)

The number of element in a set will be denoted by nA. Thus,

n(A ∩ B) = n (A/B) + n(A∩B) ∩ (B/A)

Since

(A/B), (A ∩ B), (B/A) are disjoint sets nA = n(A/B) + n(A∩B) nB = n(B/A) + n(A∩B) n(A/B_ = nA –n (A ∩B) n (B/A) = nB-n(A∩B)

hence,

n(A ∩B) = nA-n (A ∩B) + n(A ∩B) + nB-n (A ∩B) = nA + nB – n(A ∩ B)

note: A/B = A ∩ Bc, B/A = B ∩ Ac

for any set A,

A ∩ Ac^ = Φ, A ∩ Ac^ = Ω.

For any two sets A and B, we have the following decomposition:

B = B ∩ Ω = B ∩ ( A ∩ Ac) = (B ∩ A) ∩ ( B ∩ Ac),

Since A ∩ B and Ac^ ∩ B are disjoints, we have

nB = n(A ∩ B) +n(Ac^ ∩ B)

de Morgan’s Law

(i) For any two sets A and B (A ∩ B)c^ = Ac^ ∩ Bc

The above series is called a geometric series with common ratio x. the sum

Xr-1^ = 1 ㎘ ᡶᡦ x =

1 – x N, x =

The commonratio is x. if – 1 < x < 1, xn^ -> 0 as n- > =, then the series converges to

1 1 – x

The infinite series

Example

Find the sum of the series

Solution

(1 – p)r-1^ = 1 + (1 –p) + 1 –p)^2 +…….

The common ratio is 1 – p, from (1) let x = 1 –p, we have

(1 – p)r-1^ = 1 = 1 1 –(1 –p) p

And

(1 – p)r-1^ = 1 – (1 – p)n^ = 1 –(1 –p)n 1 – (1 – p) P

Exponential series

The function y = ex^ is called an exponential function. This function is one of the special functions of analysis and can be defined as the sum of an infinite series. It is defined by

Ex^ =1 + x + x^2 +…+ xn+ … = xr

2! n! r!

The notation r! is called factorial r and is defined as

R! = r(r – 1) (r-2) ….. 2.

For example

5! = 5 x 4 x 3 x 2 x 1

Where 0! = 1 and 1! = 1. R! defined above has no meaning unless r itself is a positive integer.

The factorial of any negative integer is infinite.

Gamma Function

It is easily shown by direct integration that when m is an integer

M! =

Provided that m > - 1. It can be proved that (2) will also have a meaning for fraction m. for instance, it is known that

Since m! = m(m-1)!. By setting m = 1 we have 2 The Binomial Theorem If n is a positive integer, (a+b)^2 = an+ nC 1 a n-1^ B + nC 2 an-2b^2 +….+bn Where nCr = n!. Using the summation notation, we have (n – r)!r! (a +b)n^ using the summation notation, we have Example Find the sum of the series Sn = Pn^ + nC 1 pn-1^ (1 – P) + nC 2 pn-2(1-P)^2 +…+ (1-p)nnCrP n-r^ (1-P)r Substituting p and 1-p for a, b in the binomial theorem above, we have

Thus, Generalization of the Bionomial theorem is the multinomial theorem. If n is a positive integer (a 1 +a 2 + … ak)n^ = ∑…….∑ n! a 1 n1a 2 n2…aknk N 1! n 2 !....nk! Sum is over all n 1 , n 2 ….. nk where n 1 + n 2 + … + nk= n.

  • dy = 6x. 1 =
  • dx 2x^3 x

UNIT TWO

MATHEMATICS OF COUNTING

Probability had its origin in games of chance such as disc and card games. The number of definitions you can find for it is limited only by the number of books you may wish to consult. Probability can be defined as a measure put on occurrence of a random phenomenon. probability theory is developed as study of the outcomes of trail of an experiment.

Definition An experiment is a phenomenon to be observed according to a clearly defined procedure. Probabilities are numbers between 0 and 1, inclusive that reflect the chances of a particular physical events occurring. If a die is tossed once, the possible outcomes are 1,2,3,4,5,6, let Ω = {1,2,3,4,5,6}. Then Ω is a set consisting of all possible outcome of tossing a die once. This set is given a name, it is called a sample space. Example 1. Write down the staple space for each of the following experiments (i) Toss a coin 3 times and observe the total number of heads (ii) A box contains 6 items of which 2 are defectives. One item is chosen one after the other without replacement until the last defective items is chosen. We observe the total number of items removed from the box. Solution (i) Possible outcomes are: number of heads is 0 when we have TTT, number of heads is 1 when we have HTT or THT or TTH, number of heads is 2 when we have HHT, THH, HTH and number of heads are 0,1,2,3. Hence the sample space Ω = {0,1,2,3) (ii) Total number of items removed is 2 if we have “the first is defective (D) and the second is defective D (Note that the total number of items removed can not be 0 or 1) denoted by DD. The total number of items removed is 3 if we have

In the above example, there are six ways the die can fall when it is rolled once. So we can define a theoretical probability by P(6) = number of ways of getting a “6” when rolled once = 1 Total number of possible outcomes when rolled once 6 The classical approach to probability gives P(A) = nA n Ω This definition is valid only when outcomes are equally likely.

Example 1. A coin is rolled thrice. The possible outcomes assumed to be equally likely are Ω= {HHH, HHT, HTH, HTT, TTT, TTH, THT, THH} Let A be the event that 2 heads occur. Then A = {HHT, HTH, THH} n Ω = 8, nA = 3 hence P(A) = 3 8 This classifiableapproach when applicable (the possible outcomes are equally likely) has the advantage of being exact. Thus to compute a probability by using the above definition one must be able to count. (i) n Ω the total number of possible outcomes in the sample space and (ii) nA, the number of ways in which event A can occur equally like outcomes are also called equally probable outcomes. If an event cannot occur its probability is 0, if it must occur its probability is. the computation of nA and n Ω is easy if Ω has only a few possible outcome, as the number of possible outcomes becomes large, this method of counting all possible outcomes are cumbersome and time consuming. Alternative methods of counting must therefore be developed. For example if one asks for the probability of getting sum of numbers showing to be 30 when 7 dice are rolled

one must determine how many different ways are possible to get the sum to be 30. Such possible ways include (6,6,6,6,2,1,3) (2,5,2,6,6,3), (4,4,4,4,4,4,6) In this chapter weintroduce nontechnical discussion of techniques of mathematics of counting frequently needed in problems of finding nA and n Ω

Exercise 1.

  1. A die is rolled once. What are the probabilities of getting (i) An even number (ii) A prime number (iii) An off prime number (iv) An odd number (v) An even number Fundamental Principle of Counting First Law of Counting If an event A 1 can occur in n 1 ways and thereafter an event A 2 can occur in n 2 ways, “both A 1 and A 2 can occur in this order in n 1 n 2 ways.

Example 1. Roll a die first and then a con A 1 can occur in 6 ways (1,2,3,4,5,or 6) and A 2 can occur in 2 ways (H or T). Thus, by the above law, there are 6 x 2 = Possible ways for the outcomes The outcomes are (1,H) (1,T) (5, H) (5,T) (2,H) (2,T) (6,H) (6, T) (3, H) (3, T) (4, H) (4,T) In general, if an event A 1 can occur in n 1 in different ways and if following this an event A 2 can occur in n 2 different ways, and if following this second event, an event A 3 can

the first person has seated, the second person can sit on any of the remaining 5 chairs. Thereafter the third person can sit on the remaining 4 chairs. Thus, using the notation of law of counting N 1 =6, n 2 = 5, n 3 = 4, n 4 = 3 6 x 5 x 4 x 3 =360 ways They can be seated. Example 1. How many 4 digits numbers can be formed from the digits 0,1,2,3,4,5 if the first digit must not be 0 and repetition of digits are not allowed. Let A 1 , A 2 , A 3 , A4, denote mthe events: select the first second, third and fourth digits respectively.since the first digits can not be 0, the first digit can e either 1,2,3,4, or 5 therefore A 1 can occur in 5 ways, having chosen the first digit the second digit can be selected from the remaining 5 digits. there the first and second digits have been chosen, there remains 4 digits. The third digit can be chosen from the remaining 4 digits and the fourth can be chosen from the remaining 3 digits. Therefore,A 1 , A 2 , A 3 and A 4 can occur in 5,5,4,3 ways respectively Thus there 5 x5x4x3 = 300 numbers Example 1. Ten candidates are eligible to fill 4 vacant position. How many ways are there of filling them? Let A 1 ,A 2 , A 3 ,A 4 be the events denoting candidates that fill positions 1,2,3,4 respectively. Candidate filling position 1 can be any of the tend candidates, therefore A 1 can occur in 10 ways. Following this, the next position 2 can be filled by any of the remaining 9 candidates since position 1 had been filled by one candidate. Therefore A 2 can occur in ways. Similarly, A 3 and A 4 can occur in 8 and 7 ways respectively. Thus there are 10x9x8x7 = 5040 ways Exercise 1.

  1. A student is to answer all the five questions in an examination. It is believed that the sequence in which the questions are answered may have a considerable effect

on the performance of the student. In how many different order can the question be answered

  1. If a woman has 10 blouses and 6 skirts, in how many ways can she choose a dress assuming any combination of blouse and skirt matches
  2. In a study of plants, five characteristics are to be examined. If there are six recognizable differences in each of four characteristics and eight, recognizable difference in the remaining characteristics. How many plants can be distinguished by these five characteristics?
  3. A bus starts with 6 people and stops at 10 different stops.how many different ways can the 6 people depart if (i) Any passenger can depart at any bud stop (ii) No two passengers can leave at the same bus stop
  4. Show that the number of ways of choosing r objects from n objects with replacement is given by n” Permutation and Combination A permutation is an arrangement of objects in a definite order (called ordered sample). A combination is a selection of objects without regard to order (unordered sample) A group of objects, with regard to permutation and combination has three characteristics:
  5. The way the objects in a group are arranged
  6. The kind of objects in the group
  7. The number of objects of each kind in the group

1.2 permutations: Suppose that a set contain n objects. We are often interested in arranging the objects in a definite order. Two groups containing n object are said to form different permutations if they differ in arrangements Consider groups of letters a, b, c, d. (a, b, c, d): (b, c, d, a): (c, a, d, b)

(ii) The first ball can go into any of the r boxes, the second any one of the remaining (r-1) boxes etc, so in all there are r (r-1) (r-2)… (r-n+1) different ways (n < r).

Example 1. How many permutation of three letters can be formed from the letters a, b, c, d, e. abc, bae, cba, cdb,….. are few of the required permutation. Since the permutation consist of 3 letters, 3 events are involved, A 1 , A 2 A 3. The first letter can be any of the 5 letters, therefore A 1 can occur in 5 ways. Similarly A 3 can occur in 3 ways. Thus, there are 5 x 4 x 3 = Permutation of three letters from 5 letters. This is denoted by 5 P 3 (5 permutation 3). Definition 1. The number of permutation of r (r < n) objects from n district objects is called nn permutation r and is denoted by npr It can easily be shown that nPr =n(n-1)(n-2)…(n-r+1)

to see this we can argue as follows. Since we are permuting r objects, there are r events A 1 , A 2 …..A 3 involved. The first position can be occupied by any of the n objects, following this the second position can be occupied by any of the remaining n-1 objects and so on. Therefore A 1 , A2,…Ar can occur in n, n-1, n-2, …n-(r-1) ways respectively. thus the number ofpermutation is n(n-1)(n-20…(n-r+1) But n!= n(n-1) (n-2)…(n-r+1) (n-r)(n-r-1)...1 (3.2.1) (n-r)! = (n-r)(n-r-1)…2. n! = n(n-1)(n-2)…(n-r+1). (n-r)!