
Probability theory. Bayes formula
Let some experiment be conducted.
-
elementary events (elementary outcomes of an experiment).
\ Omega = \ {w_i \} _ {i = 1} ^ N - the
space of elementary events (the set of all possible elementary outcomes of the experiment).
Definition 1:Set system
is called a
sigma algebra if the following properties are satisfied:
From properties 1 and 2 of
Definition 1 it follows that
. From properties 2 and 3 of
Definition 1 it follows that
because
Definition 2:- - event
- - probabilistic measure (probability) if:
- \ {A_i \} _ {i = 1} ^ \ infty, \ space A_i \ in \ Sigma, \ space A_i \ cap A_j = \ emptyset at
Probability Properties:- \ forall \ {A_i \} _ {i = 1} ^ N \\ \ space \ space P (\ bigcup \ limits_ {i = 1} ^ N A_i) = \ sum \ limits_ {i = 1} ^ NP ( A_i) - \ sum \ limits_ {i <j} P (A_i \ cap A_j) + \ sum \ limits_ {i <j <k} P (A_i \ cap A_j \ cap A_k) -... + \\ + ( -1) ^ {n-1} P (A_1 \ cap A_2 \ cap ... \ cap A_n);
- \ forall \ {A_i \} _ {i = 1} ^ \ infty \ colon (A_ {i + 1} \ subseteq A_i, \ space \ bigcap \ limits_ {i = 1} ^ \ infty A_i = \ emptyset) \ space \ space \ space \ lim \ limits_ {i \ to \ infty} P (A_i) = 0.
Definition 3:-
probability space .
Definition 4:-
conditional probability of an event
subject to the event
.
Definition 5:Let for
\ {A_i \} _ {i = 1} ^ N where
, performed
and
. Then
\ {A_i \} _ {i = 1} ^ N called a
partition of the space of elementary events.
Theorem 1 (total probability formula):\ {A_i \} _ {i = 1} ^ N - partition of the space of elementary events,
.
Then
.
Theorem 2 (Bayes formula):\ {A_i \} _ {i = 1} ^ N - partition of the space of elementary events,
.
Then
.
Using the Bayes formula, we can overestimate the a priori probabilities (
) based on observations (
), and get a whole new understanding of reality.
An example :
Suppose that there is a test that is applied to a person individually and determines whether he is infected with the “X” virus or not? We assume that the test was successful if it delivered the correct verdict for a particular person. It is known that this test has a probability of success of 0.95, and 0.05 is the probability of both errors of the first kind (false positive, i.e. the test passed a positive verdict, and the person is healthy), and errors of the second kind (false negative, i.e. the test passed a negative verdict, and the person is sick). For clarity, a positive verdict = test “said” that a person is infected with a virus. It is also known that 1% of the population is infected with this virus. Let some person get a positive verdict of the test. How likely is he really sick?
Denote:
- test result,
- the presence of the virus. Then according to the formula for total probability:
By Bayes theorem:
It turns out that the probability of being infected with the "X" virus, subject to a positive test verdict, is 0.16. Why such a result? Initially, a person with a probability of 0.01 is infected with the “X” virus and even with a probability of 0.05 the test will fail. That is, in the case when only 1% of the population is infected with this virus, the probability of a test error of 0.05 has a significant impact on the likelihood that a person is really sick, provided that the test gives a positive result.
Bibliography:
- “Fundamentals of probability theory. Textbook ", M.E. Zhukovsky, I.V. Rodionov, Moscow Institute of Physics and Technology, MOSCOW, 2015;
- “Deep learning. Immersion in the world of neural networks ”, S. Nikulenko, A. Kadurin, E. Arkhangelskaya, PETER, 2018.