<< Chapter < Page | Chapter >> Page > |
The calculations, as in [link] , are simple but can be tedious. We have an m-procedure called bayes to perform the calculations easily. The probabilities $P\left({A}_{i}\right)$ are put into a matrix PA and the conditional probabilities $P\left(E\right|{A}_{i})$ are put into matrix PEA. The desired probabilities $P\left({A}_{i}\right|E)$ and $P\left({A}_{i}\right|{E}^{c})$ are calculated and displayed
>>PEA = [0.10 0.02 0.06];>>PA = [0.2 0.5 0.3];>>bayes
Requires input PEA = [P(E|A1) P(E|A2) ... P(E|An)]and PA = [P(A1) P(A2) ... P(An)]
Determines PAE = [P(A1|E) P(A2|E) ... P(An|E)]and PAEc = [P(A1|Ec) P(A2|Ec) ... P(An|Ec)]
Enter matrix PEA of conditional probabilities PEAEnter matrix PA of probabilities PA
P(E) = 0.048P(E|Ai) P(Ai) P(Ai|E) P(Ai|Ec)
0.1000 0.2000 0.4167 0.18910.0200 0.5000 0.2083 0.5147
0.0600 0.3000 0.3750 0.2962Various quantities are in the matrices PEA, PA, PAE, PAEc, named above
The procedure displays the results in tabular form, as shown. In addition, the various quantities are in the workspace in the matrices named, so that theymay be used in further calculations without recopying.
The following variation of Bayes' rule is applicable in many practical situations.
(CP3*) Ratio form of Bayes' rule $\frac{P\left(A\right|C)}{P\left(B\right|C)}=\frac{P\left(AC\right)}{P\left(BC\right)}=\frac{P\left(C\right|A)}{P\left(C\right|B)}\cdot \frac{P\left(A\right)}{P\left(B\right)}$
The left hand member is called the posterior odds , which is the odds after knowledge of the occurrence of the conditioning event. The second fraction in the right hand member is the prior odds , which is the odds before knowledge of the occurrence of the conditioning event C . The first fraction in the right hand member is known as the likelihood ratio . It is the ratio of the probabilities (or likelihoods) of C for the two different probability measures $P(\phantom{\rule{0.166667em}{0ex}}\cdot \phantom{\rule{0.166667em}{0ex}}|A)$ and $P(\phantom{\rule{0.166667em}{0ex}}\cdot \phantom{\rule{0.166667em}{0ex}}|B)$ .
As a part of a routine maintenance procedure, a computer is given a performance test. The machine seems to be operating so well that the prior odds it is satisfactory are takento be ten to one. The test has probability 0.05 of a false positive and 0.01 of a false negative. A test is performed. The result is positive. What are the posterior odds the device isoperating properly?
SOLUTION
Let S be the event the computer is operating satisfactorily and let T be the event the test is favorable. The data are $P\left(S\right)/P\left({S}^{c}\right)=10$ , $P\left(T\right|{S}^{c})=0.05$ , and $P\left({T}^{c}\right|S)=0.01$ . Then by the ratio form of Bayes' rule
The following property serves to establish in the chapters on "Independence of Events" and "Conditional Independence" a number of important properties for the concept of independence and of conditional independence of events.
(CP4) Some equivalent conditions If $0<P\left(A\right)<1$ and $0<P\left(B\right)<1$ , then
where $*\text{is}<,\le ,=,\ge ,\text{or}>$ and $\diamond \text{is}>,\ge ,=,\le ,\text{or}<$ , respectively.
Because of the role of this property in the theory of independence and conditional independence, we examine the derivation of these results.
VERIFICATION of (CP4)
— $\square $
A number of important and useful propositons may be derived from these.
VERIFICATION — Exercises (see problem set)
— $\square $
Suppose conditioning by the event C has occurred. Additional information is then received that event D has occurred. We have a new conditioning event $CD$ . There are two possibilities:
Basic result : ${P}_{C}\left(A\right|D)=P\left(A\right|CD)={P}_{D}\left(A\right|C)$ . Thus repeated conditioning by two events may be done in any order, or may be done in one step. This result extends easilyto repeated conditioning by any finite number of events. This result is important in extending the concept of "Independence of Events" to "Conditional Independence" . These conditions are important for many problems of probable inference.
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?