there are suppositions that AAA is random exercise, GGG is sample space of AAA,every event EEE of AAA corresponds with a real number which can be called as probability of EEE,that is P(E)P(E)P(E). the P is regard as a function to tranform an event to the real number belonged to the event. P(E)P(E)P(E) is ever greater than or equals zero for each event E; P(E′)=1P(E')=1P(E′)=1 when the E′E'E′ event necessarily happen; let E1,E2,....E_1,E_2,....E1,E2,.... are events which only one presents at the same time,that is to say, Ei∩Ej=∅E_i \cap E_j=\emptyEi∩Ej=∅. P(E1∪E2∪..)=P(E1)+P(E2)+...P(E_1 \cup E_2 \cup ..)=P(E_1)+P(E_2)+...P(E1∪E2∪..)=P(E1)+P(E2)+... by the way,the following things are characteristics of probability.
P(∅)=0P(\empty)=0P(∅)=0.
P(E1∪E2∪..∪En)=P(E1)+P(E2)+...+P(En)P(E_1 \cup E_2 \cup ..\cup E_n)=P(E_1)+P(E_2)+...+P(E_n)P(E1∪E2∪..∪En)=P(E1)+P(E2)+...+P(En),that is to say it is finite additivity.
for arbitrary event EEE, P(Eˉ)=1−P(E)P(\bar E)=1-P(E)P(Eˉ)=1−P(E),the Eˉ\bar EEˉ is inversed event. there is an important conclusion that to given both event E1E_1E1 and E2E_2E2,P(E1∪E2)=P(E1)+P(E2)−P(E1E2)P(E_1 \cup E_2)=P(E_1)+P(E_2)-P(E_1E_2)P(E1∪E2)=P(E1)+P(E2)−P(E1E2). of course ,the above formula can expand to multiple event’s additivity.for example: P(E1∪E2∪..∪En)=Σi=1nP(Ei)−Σ1≤i<j≤nP(EiEj)+Σi≤i<j<k≤nP(EiEjEk)+...+(−1)n−1P(E1E2...En)P(E_1 \cup E_2 \cup ..\cup E_n)=\Sigma_{i=1} ^n P(E_i)-\Sigma_{1\le i <j \le n} P(E_iE_j)+\Sigma_{i \le i < j<k \le n}P(E_iE_jE_k)+...+(-1)^{n-1}P(E_1E_2...E_n)P(E1∪E2∪..∪En)=Σi=1nP(Ei)−Σ1≤i<j≤nP(EiEj)+Σi≤i<j<k≤nP(EiEjEk)+...+(−1)n−1P(E1E2...En)
the classical probability derives from the initial stage of probability theory,that means each one of sample space which has finite samples such as G={G1,G2,...Gn}G=\{G_1,G_2,...G_n\}G={G1,G2,...Gn} has the same possibility of existence. to compute a fundamental classical probablity is so simple because that Any two samples in sample space appear mutually exclusively and the finite additivity of probability.for example: P(∪i=1n{Gi})=P(G)=1P(\cup_{i=1}^n\{G_i\})=P(G)=1P(∪i=1n{Gi})=P(G)=1 P(∪i=1n){Gi})=Σi=1nP(Gi)=nP(Gi)P(\cup_{i=1}^n)\{G_i\})=\Sigma_{i=1}^nP(G_i)=nP(G_i)P(∪i=1n){Gi})=Σi=1nP(Gi)=nP(Gi),P(G1)=P(G2)=...P(G_1)=P(G_2)=...P(G1)=P(G2)=... so that,each P(Gi)=1nP(G_i)=\frac 1 nP(Gi)=n1 the above example suppose that one event includes only one sample,but in real life,one event perhaps involves some samples,for example,G2G_2G2 consists of n2n_2n2 samples,then P(G2)=n2nP(G_2)=\frac {n_2} nP(G2)=nn2.
Permutations and Combinations
the repetitve permutaion denotes that there are a sets AAA consisted of aalla_{all}aall distinct elements, we take out aparta_{part}apart elements from the AAA sets one by one,achieving total progress costs aparta_{part}apart times, that is to say,each time to take one out and put it back.so that, there are aallapart{a_{all}}^{a_{part}}aallapart kinds of permutations.
permutation means fetching aparta_{part}apart elements from a sets AAA which includes aalla_{all}aall elements to arrange without returning it back ,so that Paallapart=aall!(aall−apart)!P_{a_{all}}^{a_{part}}=\frac {a_{all}!} {(a_{all}-a_{part})!}Paallapart=(aall−apart)!aall! kinds of permutations exists in the progress.
full permutation: when aall=aparta_{all}=a_{part}aall=apart,Paallapart=apart!P_{a_{all}}^{a_{part}}=a_{part}!Paallapart=apart!
combination: if we get aparta_{part}apart elements from aalla_{all}aall distinct elements without their order for making a combination ,and do it repeatedly, then the total number of those combinations is as follows. Caallapart=PaallapartPapartapart=aall!apart!(aall−apart)!C_{a_{all}}^{a_{part}}=\frac {P_{a_{all}}^{a_{part}}} {P_{a_{part}}^{a_{part}}}=\frac {a_{all}!} {a_{part}!(a_{all}-a_{part})!} Caallapart=PapartapartPaallapart=apart!(aall−apart)!aall!
we take out an integer from lots of integers with a length of 12 digits, what is the probability that the first five digits are all different ? in the first place,one of the first five digits is an integer ranged from 0 to 9,so we have 10510^5105 ways to make the integer which has five digits, those ways construct a sample space.in the second place,P105P_{10}^5P105 represent the number of permutations that five digits total are distinct because that five different numbers will be choosed in a range between 0 and 9 arbitrarily. so that we get the probability which is P105105\frac {P_{10}^5}{10^5}105P105.