02.03.2013 Views

Downloadable - About University

Downloadable - About University

Downloadable - About University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Bayes’ theorem 217<br />

1000<br />

components<br />

70%<br />

Component is OK<br />

Component is defective<br />

30%<br />

700 components<br />

80% pass test<br />

20% fail test<br />

300 components<br />

10% pass test<br />

90% fail test<br />

Figure 8.1 – Tree diagram for the components problem<br />

140 components<br />

270 components<br />

410 components fail test<br />

(i.e. 140) would be expected to wrongly fail the test. Similarly, 300<br />

components will follow the ‘defective’ route and of these 90% (i.e. 270)<br />

would be expected to fail the test. In total, we would expect 410 (i.e.<br />

140 + 270) components to fail the test. Now the component you selected<br />

is one of these 410 components. Of these, only 140 are ‘OK’, so your<br />

posterior probability that the component is ‘OK’ should be 140/410,<br />

which is 0.341, i.e.<br />

p(component OK|failed test) = 140/410 = 0.341<br />

Note that the test result, though it is not perfectly reliable, has caused<br />

you to revise your probability of the component being ‘OK’ from 0.7<br />

down to 0.341.<br />

Obviously, we will not wish to work from first principles for every<br />

problem we come across, and we therefore need to formalize the application<br />

of Bayes’ theorem. The approach which we will adopt, which is<br />

based on probability trees, is very similar to the method we have just<br />

applied except that we will think solely in terms of probabilities rather<br />

than numbers of components.<br />

Figure 8.2 shows the probability tree for the components problem.<br />

Note that events for which we have prior probabilities are shown on<br />

the branches on the left of the tree. The branches to the right represent<br />

the new information and the conditional probabilities of obtaining this<br />

information under different circumstances. For example, the probability

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

Saved successfully!

Ooh no, something went wrong!