To define the diagnostic value of the test, we need to define another event:
( 1
) !
=
that you test positive for Disease X. Let's call this Event T. The diagnostic value of
the test depends on the probability you will test positive given that you actually
have the disease, written as P(T|D), and the probability you test positive given that
you do not have the disease, written as P(T|D'). Bayes' theorem shown below
( 1
) !
=
allows you to calculate P(D|T), the probability that you have the disease given that
you test positive for it.
e%Rates%
!
( | ) ( )
!
( | ) =
!
( | ) ( ) + ( | ) ( )
Base%Rates%
The various terms are:
( | ) ( )
( | ) =
!
P(T|D)
= 0.99
( | ) ( ) + ( | ) ( )
P(T|D') = 0.09
P(D)
= 0.02
( 0.99 )( 0.02 )
!
( | ) =
= 0.1833!
P(D')
= 0.98
( 0.99 )( 0.02 ) + ( 0.09 )( 0.98 )
!
Therefore,
( 0.99 )( 0.02 )
( | ) =
= 0.1833!
( 0.99 )( 0.02 ) + ( 0.09 )( 0.98 )
which is the same value computed previously.
%
214