Probability theory. Bayes formula
Let some experiment be conducted.
- elementary events (elementary outcomes of an experiment).
- 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:
- at
Probability Properties:
Definition 3:
- probability space .
Definition 4:
- conditional probability of an event subject to the event .
Definition 5:
Let for where , performed and . Then called a partition of the space of elementary events.
Theorem 1 (total probability formula):
- partition of the space of elementary events, .
Then .
Theorem 2 (Bayes formula):
- 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.