13.07.2015 Views

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

Mathematical Methods for Physics and Engineering - Matematica.NET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

30.3 PERMUTATIONS AND COMBINATIONSWe note that (30.27) may be written in a more general <strong>for</strong>m if S is not simplydivided into A <strong>and</strong> Ā but, rather, into any set of mutually exclusive events A i thatexhaust S. Using the total probability law (30.24), we may then writePr(B) = ∑ iPr(A i )Pr(B|A i ),so that Bayes’ theorem takes the <strong>for</strong>mPr(A|B) =Pr(A)Pr(B|A)∑i Pr(A i)Pr(B|A i ) , (30.28)where the event A need not coincide with any of the A i .As a final point, we comment that sometimes we are concerned only with therelative probabilities of two events A <strong>and</strong> C (say), given the occurrence of someother event B. From (30.26) we then obtain a different <strong>for</strong>m of Bayes’ theorem,Pr(A|B)Pr(C|B) = Pr(A)Pr(B|A)Pr(C)Pr(B|C) , (30.29)which does not contain Pr(B) at all.30.3 Permutations <strong>and</strong> combinationsIn equation (30.5) we defined the probability of an event A in a sample space S asPr(A) = n A,n Swhere n A is the number of outcomes belonging to event A <strong>and</strong> n S is the totalnumber of possible outcomes. It is there<strong>for</strong>e necessary to be able to count thenumber of possible outcomes in various common situations.30.3.1 PermutationsLet us first consider a set of n objects that are all different. We may ask inhow many ways these n objects may be arranged, i.e. how many permutations ofthese objects exist. This is straight<strong>for</strong>ward to deduce, as follows: the object in thefirst position may be chosen in n different ways, that in the second position inn − 1 ways, <strong>and</strong> so on until the final object is positioned. The number of possiblearrangements is there<strong>for</strong>en(n − 1)(n − 2) ···(1) = n! (30.30)Generalising (30.30) slightly, let us suppose we choose only k (< n) objectsfrom n. The number of possible permutations of these k objects selected from nis given byn!n(n − 1)(n − 2) ···(n − k +1) =} {{ } (n − k)! ≡ n P k . (30.31)k factors1133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!