Conditional probability
In our daily lives, we constantly make decisions based on new information, updating our understanding of the world. Conditional probability is the mathematical framework that allows us to precisely quantify how the likelihood of an event changes when we know something else has already occurred. It's a fundamental concept that underpins everything from medical diagnostics to artificial intelligence, revealing hidden connections in data. Conditional probability measures the chance of an event happening, given that another event has already taken place, fundamentally changing our perspective on likelihood. The probability of A given B is rarely the same as the probability of B given A, a crucial distinction that prevents common errors in reasoning. Bayes' Theorem provides a powerful tool to 'reverse' conditional probabilities, allowing us to update our beliefs as new evidence comes to light.
AI Summary
In our daily lives, we constantly make decisions based on new information, updating our understanding of the world. Conditional probability is the mathematical framework that allows us to precisely quantify how the likelihood of an event changes when we know something else has already occurred. It's a fundamental concept that underpins everything from medical diagnostics to artificial intelligence, revealing hidden connections in data.
- Conditional probability measures the chance of an event happening, given that another event has already taken place, fundamentally changing our perspective on likelihood.
- The probability of A given B is rarely the same as the probability of B given A, a crucial distinction that prevents common errors in reasoning.
- Bayes' Theorem provides a powerful tool to 'reverse' conditional probabilities, allowing us to update our beliefs as new evidence comes to light.
What is Conditional Probability?
Imagine you're trying to figure out the chance of rain. If you just look at the overall climate, it might be 10%. But what if you know it's a cloudy day? Suddenly, the chance of rain feels much higher, doesn't it? This shift in probability, based on new information, is the essence of conditional probability.
Formally, conditional probability measures the likelihood of an event A occurring, given that another event B has already happened. We denote this as P(A|B), which you can read as 'the probability of A, given B'.
To calculate this, we look at the probability of both A and B happening together — known as their intersection, P(A ∩ B) — and divide it by the probability of the given event B. This essentially narrows down our entire possible world to just the scenarios where B occurred.
This formula only works if the probability of event B is greater than zero. If P(B) were zero, it would mean event B is impossible, and conditioning on an impossible event becomes mathematically undefined in this standard framework.
P(A|B) = \frac{P(A \cap B)}{P(B)}A Simple Illustration: Coughs and Sickness
Let's use a relatable example. The general probability that a person has a cough on any given day might be quite low — say, 5%. This is the unconditional probability, P(Cough).
However, if we know that the person is sick, their likelihood of coughing jumps dramatically. The conditional probability of coughing, given that they are sick, P(Cough|Sick), might be as high as 75%. Knowing they're sick changes the odds.
The Order Matters: P(A|B) vs. P(B|A)
One of the most crucial insights in conditional probability is that P(A|B) is almost never the same as P(B|A). Confusing these two is a common and often serious error in reasoning.
Consider a diagnostic test for a rare disease, like dengue fever. If a person has dengue (event B), they might have a 90% chance of testing positive (event A). So, P(Positive|Dengue) = 90%.
But what if a person tests positive (event A)? What's the chance they actually have dengue (event B)? Due to factors like false positives and the disease's rarity, P(Dengue|Positive) might only be 15%. A positive test result doesn't automatically mean high certainty of disease.
Notice the dramatic difference: P(Positive|Dengue) is 90%, but P(Dengue|Positive) is only 15%. Swapping the events can lead to vastly different, even dangerous, conclusions.
Bayes' Theorem: Reversing the Conditions
Since P(A|B) and P(B|A) are different, how do we move between them? This is where Bayes' Theorem comes in, a powerful tool for updating probabilities based on new evidence.
This formula allows us to calculate the probability of A given B, using the probability of B given A, along with the unconditional probabilities of A and B. It's the engine behind many forms of statistical inference.
P(A|B) = \frac{P(B|A) P(A)}{P(B)}Real-World Application: Morse Code
Imagine receiving a Morse code signal. There's a chance of transmission errors. If you received a dot, what's the probability that a dot was actually sent? This is a perfect scenario for Bayes' Theorem.
Let's say the overall probability of sending a dot is P(Sent Dot) = 3/7, and a dash is P(Sent Dash) = 4/7. And, due to interference, the chance of sending a dot but receiving a dash is 1/10, and vice versa.
Using Bayes' Theorem, we can calculate P(Sent Dot | Received Dot) — giving us a more accurate understanding of the original message, adjusting for the noise in the communication channel.
Statistical Independence
What if knowing event B happens tells us absolutely nothing about event A? In that case, the events are statistically independent. This means the conditional probability P(A|B) is simply equal to the unconditional probability P(A).
Mathematically, two events A and B are independent if the probability of them both occurring is just the product of their individual probabilities.
This definition implies that if A and B are independent, then P(A|B) = P(A) and P(B|A) = P(B). Knowing one event occurred doesn't change the likelihood of the other.
P(A \cap B) = P(A)P(B)
It's important not to confuse independence with mutual exclusivity. Mutually exclusive events cannot happen at the same time (e.g., rolling a 1 and a 2 on a single die). In fact, mutually exclusive events can never be independent, because knowing one happened means the other definitely didn't!
Common Fallacies in Conditional Probability
Despite its elegance, conditional probability is a minefield of common errors. One of the most insidious is assuming P(A|B) is roughly equal to P(B|A), as we saw with the dengue fever example.
Another mistake is assuming that the conditional probability P(A|B) will be similar to the marginal (unconditional) probability P(A). But as our 'cough' example showed, knowing B can dramatically alter the odds for A.
These fallacies often stem from cognitive biases like 'base rate neglect,' where people ignore the overall frequency (the 'prior probability') of an event. Forgetting the base rate can lead to wildly incorrect conclusions, especially in fields like medicine or law.
Article
Conditional probability
In probability theory, conditional probability is a measure of the probability of an event occurring, given that another event (by assumption, presumption, assertion, or evidence) is already known to have occurred. This particular method relies on event A occurring with some sort of relationship with another event B. In this situation, the event A can be analyzed by a conditional probability with respect to B. If the event of interest is A and the event B is known or assumed to have occurred, "the conditional probability of A given B", or "the probability of A under the condition B", is usually written as P(A|B) or occasionally PB(A). This can also be understood as the fraction of probability B that intersects with A, or the ratio of the probabilities of both events happening to the "given" one happening (how many times A occurs rather than not assuming B has occurred):
${\displaystyle P(A\mid B)={\frac {P(A\cap B)}{P(B)}}}$.
For example, the probability that any given person has a cough on any given day may be only 5%. But if we know or assume that the person is sick, then they are much more likely to be coughing. For example, the conditional probability that someone sick is coughing might be 75%, in which case we would have that P(Cough) = 5% and P(Cough|Sick) = 75 %. Although there is a relationship between A and B in this example, such a relationship or dependence between A and B is not necessary, nor do they have to occur simultaneously.
P(A|B) may or may not be equal to P(A), i.e., the unconditional probability or absolute probability of A. If P(A|B) = P(A), then events A and B are said to be independent: in such a case, knowledge about either event does not alter the likelihood of the other. P(A|B) (the conditional probability of A given B) typically differs from P(B|A). For example, if a person has dengue fever, the person might have a 90% chance of being tested as positive for the disease. In this case, what is being measured is that if event B (having dengue) has occurred, the probability of A (tested as positive) given that B occurred is 90%, simply writing P(A|B) = 90%. Alternatively, if a person is tested as positive for dengue fever, they may have only a 15% chance of actually having this rare disease due to high false positive rates. In this case, the probability of the event B (having dengue) given that the event A (testing positive) has occurred is 15% or P(B|A) = 15%. It should be apparent now that falsely equating the two probabilities can lead to various errors of reasoning, which is commonly seen through base rate fallacies.
While conditional probabilities can provide extremely useful information, limited information is often supplied or at hand. Therefore, it can be useful to reverse or convert a conditional probability using Bayes' theorem: ${\displaystyle P(A\mid B)={{P(B\mid A)P(A)} \over {P(B)}}}$. Another option is to display conditional probabilities in a conditional probability table to illuminate the relationship between events.
Definition
Conditional probability
Illustration of conditional probabilities with an Euler diagram. The unconditional probability P(A) = 0.30 + 0.10 + 0.12 = 0.52. However, the conditional probability P(A|B1) = 1, P(A|B2) = 0.12 ÷ (0.12 + 0.04) = 0.75, and P(A|B3) = 0.
On a tree diagram, branch probabilities are conditional on the event associated with the parent node. (Here, the overbars indicate that the event does not occur.)
Venn pie chart describing conditional probabilities
Kolmogorov definition
Given two events A and B from the sigma-field of a probability space, with the unconditional probability of B being greater than zero (i.e., P(B) > 0), the conditional probability of A given B (${\displaystyle P(A\mid B)}$) is the probability of A occurring if B has or is assumed to have happened. A is assumed to be the set of all possible outcomes of an experiment or random trial that has a restricted or reduced sample space. The conditional probability can be found by the quotient of the probability of the joint intersection of events A and B, that is, ${\displaystyle P(A\cap B)}$, the probability at which A and B occur together, and the probability of B:
${\displaystyle P(A\mid B)={\frac {P(A\cap B)}{P(B)}}.}$
For a sample space consisting of equal likelihood outcomes, the probability of the event A is understood as the fraction of the number of outcomes in A to the number of all outcomes in the sample space. Then, this equation is understood as the fraction of the set ${\displaystyle A\cap B}$ to the set B. Note that the above equation is a definition, not just a theoretical result. We denote the quantity ${\displaystyle {\frac {P(A\cap B)}{P(B)}}}$ as ${\displaystyle P(A\mid B)}$ and call it the "conditional probability of A given B."
As an axiom of probability
Some authors, such as de Finetti, prefer to introduce conditional probability as an axiom of probability:
This equation for a conditional probability, although mathematically equivalent, may be intuitively easier to understand. It can be interpreted as "the probability of B occurring multiplied by the probability of A occurring, provided that B has occurred, is equal to the probability of the A and B occurrences together, although not necessarily occurring at the same time". Additionally, this may be preferred philosophically; under major probability interpretations, such as the subjective theory, conditional probability is considered a primitive entity. Moreover, this "multiplication rule" can be practically useful in computing the probability of ${\displaystyle A\cap B}$ and introduces a symmetry with the summation axiom for Poincaré Formula:
${\displaystyle P(A\cup B)=P(A)+P(B)-P(A\cap B)}$ Thus the equations can be combined to find a new representation of the : ${\displaystyle P(A\cap B)=P(A)+P(B)-P(A\cup B)=P(A\mid B)P(B)}$ ${\displaystyle P(A\cup B)={P(A)+P(B)-P(A\mid B){P(B)}}}$
As the probability of a conditional event
Conditional probability can be defined as the probability of a conditional event ${\displaystyle A{B}}$. The Goodman–Nguyen–Van Fraassen conditional event can be defined as:
${\displaystyle A{B}=\bigcup {i\geq 1}\left(\bigcap {j<i}{\overline {B}}{j},A{i}B{i}\right),}$ where ${\displaystyle A{i}}$ and ${\displaystyle B{i}}$ represent states or elements of A or B.
${\displaystyle P(A{B})={\frac {P(A\cap B)}{P(B)}}}$
which meets the Kolmogorov definition of conditional probability.
Conditioning on an event of probability zero
If ${\displaystyle P(B)=0}$, then according to the definition, ${\displaystyle P(A\mid B)}$ is undefined.
The case of greatest interest is that of a random variable Y, conditioned on a continuous random variable X resulting in a particular outcome x. The event ${\displaystyle B=\{X=x\}}$ has probability zero and, as such, cannot be conditioned on.
Instead of conditioning on X being exactly x, we could condition on it being closer than distance ${\displaystyle \varepsilon }$ away from x. The event ${\displaystyle B=\{x-\varepsilon <X<x+\varepsilon \}}$ will generally have nonzero probability and hence, can be conditioned on. We can then take the limit
For example, if two continuous random variables X and Y have a joint density ${\displaystyle f{X,Y}(x,y)}$, then by L'Hôpital's rule and Leibniz integral rule, upon differentiation with respect to ${\displaystyle \varepsilon }$:
${\displaystyle {\begin{aligned}\lim {\varepsilon \to 0}P(Y\in U\mid x{0}-\varepsilon <X<x{0}+\varepsilon )&=\lim {\varepsilon \to 0}{\frac {\int {x{0}-\varepsilon }^{x{0}+\varepsilon }\int {U}f{X,Y}(x,y)\,\mathrm {d} y\,\mathrm {d} x}{\int {x{0}-\varepsilon }^{x{0}+\varepsilon }\int {\mathbb {R} }f{X,Y}(x,y)\,\mathrm {d} y\,\mathrm {d} x}}\\[6pt]&={\frac {\int {U}f{X,Y}(x{0},y)\,\mathrm {d} y}{\int {\mathbb {R} }f{X,Y}(x{0},y)\,\mathrm {d} y}}.\end{aligned}}}$
The resulting limit is the conditional probability distribution of Y given X and exists when the denominator, the probability density ${\displaystyle f{X}(x{0})}$, is strictly positive.
It is tempting to define the undefined probability ${\displaystyle P(A\mid X=x)}$ using limit ((/wiki/Conditionalprobability#math1)), but this cannot be done in a consistent manner. In particular, it is possible to find random variables X and W and values x, w such that the events ${\displaystyle \{X=x\}}$ and ${\displaystyle \{W=w\}}$ are identical but the resulting limits are not:
${\displaystyle \lim {\varepsilon \to 0}P(A\mid x-\varepsilon \leq X\leq x+\varepsilon )\neq \lim {\varepsilon \to 0}P(A\mid w-\varepsilon \leq W\leq w+\varepsilon ).}$
The Borel–Kolmogorov paradox demonstrates this with a geometrical argument.
Conditioning on a discrete random variable
Let X be a discrete random variable and its possible outcomes denoted V. For example, if X represents the value of a rolled dice then V is the set ${\displaystyle \{1,2,3,4,5,6\}}$. Let us assume for the sake of presentation that X is a discrete random variable, so that each value in V has a nonzero probability.
For a value x in V and an event A, the conditional probability is given by ${\displaystyle P(A\mid X=x)}$. Writing
for short, we see that it is a function of two variables, x and A.
For a fixed A, we can form the random variable ${\displaystyle Y=c(X,A)}$. It represents an outcome of ${\displaystyle P(A\mid X=x)}$ whenever a value x of X is observed.
The conditional probability of A given X can thus be treated as a random variable Y with outcomes in the interval ${\displaystyle [0,1]}$. From the law of total probability, its expected value is equal to the unconditional probability of A.
Partial conditional probability
The partial conditional probability ${\displaystyle P(A\mid B{1}\equiv b{1},\ldots ,B{m}\equiv b{m})}$ is about the probability of event ${\displaystyle A}$ given that each of the condition events ${\displaystyle B{i}}$ has occurred to a degree ${\displaystyle b{i}}$ (degree of belief, degree of experience) that might be different from 100%. Frequentistically, partial conditional probability makes sense, if the conditions are tested in experiment repetitions of appropriate length ${\displaystyle n}$. Such ${\displaystyle n}$-bounded partial conditional probability can be defined as the conditionally expected average occurrence of event ${\displaystyle A}$ in testbeds of length ${\displaystyle n}$ that adhere to all of the probability specifications ${\displaystyle B{i}\equiv b{i}}$, i.e.:
${\displaystyle P^{n}(A\mid B{1}\equiv b{1},\ldots ,B{m}\equiv b{m})=\operatorname {E} ({\overline {A}}^{n}\mid {\overline {B}}{1}^{n}=b{1},\ldots ,{\overline {B}}{m}^{n}=b{m})}$
Based on that, partial conditional probability can be defined as
${\displaystyle P(A\mid B{1}\equiv b{1},\ldots ,B{m}\equiv b{m})=\lim {n\to \infty }P^{n}(A\mid B{1}\equiv b{1},\ldots ,B{m}\equiv b{m}),}$
Jeffrey conditionalization is a special case of partial conditional probability, in which the condition events must form a partition:
${\displaystyle P(A\mid B{1}\equiv b{1},\ldots ,B{m}\equiv b{m})=\sum {i=1}^{m}b{i}P(A\mid B{i})}$
Example
Conditional probability
Suppose that somebody secretly rolls two fair six-sided dice, and we wish to compute the probability that the face-up value of the first one is 2, given the information that their sum is no greater than 5.
• Let D1 be the value rolled on dice 1. • Let D2 be the value rolled on dice 2.
Table 1 shows the sample space of 36 combinations of rolled values of the two dice, each of which occurs with probability 1/36, with the numbers displayed in the red and dark gray cells being D1 + D2.
D1 = 2 in exactly 6 of the 36 outcomes; thus P(D1 = 2) = 6⁄36 = 1⁄6:
Table 2 shows that D1 + D2 ≤ 5 for exactly 10 of the 36 outcomes, thus P(D1 + D2 ≤ 5) = 10⁄36:
Table 3 shows that for 3 of these 10 outcomes, D1 = 2.
Thus, the conditional probability P(D1 = 2 | D1+D2 ≤ 5) = 3⁄10 = 0.3:
Here, in the earlier notation for the definition of conditional probability, the conditioning event B is that D1 + D2 ≤ 5, and the event A is D1 = 2. We have ${\displaystyle P(A\mid B)={\tfrac {P(A\cap B)}{P(B)}}={\tfrac {3/36}{10/36}}={\tfrac {3}{10}},}$ as seen in the table.
Use in inference
Conditional probability
In statistical inference, the conditional probability is an update of the probability of an event based on new information. The new information can be incorporated as follows:
• Let A, the event of interest, be in the sample space, say (X,P). • The occurrence of the event A knowing that event B has or will have occurred, means the occurrence of A as it is restricted to B, i.e. ${\displaystyle A\cap B}$. • Without the knowledge of the occurrence of B, the information about the occurrence of A would simply be P(A) • The probability of A knowing that event B has or will have occurred, will be the probability of ${\displaystyle A\cap B}$ relative to P(B), the probability that B has occurred. • This results in ${\textstyle P(A\mid B)=P(A\cap B)/P(B)}$ whenever P(B) > 0 and 0 otherwise.
This approach results in a probability measure that is consistent with the original probability measure and satisfies all the Kolmogorov axioms. This conditional probability measure also could have resulted by assuming that the relative magnitude of the probability of A with respect to X will be preserved with respect to B (cf. a Formal Derivation below).
The wording "evidence" or "information" is generally used in the Bayesian interpretation of probability. The conditioning event is interpreted as evidence for the conditioned event. That is, P(A) is the probability of A before accounting for evidence E, and P(A|E) is the probability of A after having accounted for evidence E or after having updated P(A). This is consistent with the frequentist interpretation, which is the first definition given above.
Example
When Morse code is transmitted, there is a certain probability that the "dot" or "dash" that was received is erroneous. This is often taken as interference in the transmission of a message. Therefore, it is important to consider when sending a "dot", for example, the probability that a "dot" was received. This is represented by: ${\displaystyle P({\text{dot sent }}|{\text{ dot received}})=P({\text{dot received }}|{\text{ dot sent}}){\frac {P({\text{dot sent}})}{P({\text{dot received}})}}.}$ In Morse code, the ratio of dots to dashes is 3:4 at the point of sending, so the probabilities of a "dot" and "dash" are ${\displaystyle P({\text{dot sent}})={\frac {3}{7}}{\text{ and }}P({\text{dash sent}})={\frac {4}{7}}}$. If it is assumed that the probability that a dot is transmitted as a dash is 1/10, and that the probability that a dash is transmitted as a dot is likewise 1/10, then Bayes's rule can be used to calculate ${\displaystyle P({\text{dot received}})}$.
${\displaystyle P({\text{dot received}})=P({\text{dot received}}\cap {\text{dot sent}})+P({\text{dot received}}\cap {\text{dash sent}})}$
${\displaystyle P({\text{dot received}})=P({\text{dot received}}\mid {\text{dot sent}})P({\text{dot sent}})+P({\text{dot received}}\mid {\text{dash sent}})P({\text{dash sent}})}$
${\displaystyle P({\text{dot received}})={\frac {9}{10}}\times {\frac {3}{7}}+{\frac {1}{10}}\times {\frac {4}{7}}={\frac {31}{70}}}$
Now, ${\displaystyle P({\text{dot sent}}\mid {\text{dot received}})}$ can be calculated:
${\displaystyle P({\text{dot sent}}\mid {\text{dot received}})=P({\text{dot received}}\mid {\text{dot sent}}){\frac {P({\text{dot sent}})}{P({\text{dot received}})}}={\frac {9}{10}}\times {\frac {\frac {3}{7}}{\frac {31}{70}}}={\frac {27}{31}}}$
Statistical independence
Conditional probability
Events A and B are defined to be statistically independent if the probability of the intersection of A and B is equal to the product of the probabilities of A and B:
If P(B) is not zero, then this is equivalent to the statement that
is also equivalent. Although the derived forms may seem more intuitive, they are not the preferred definition as the conditional probabilities may be undefined, and the preferred definition is symmetrical in A and B. Independence does not refer to a disjoint event.
It should also be noted that given the independent event pair [A,B] and an event C, the pair is defined to be conditionally independent if
${\displaystyle P(AB\mid C)=P(A\mid C)P(B\mid C).}$
This theorem is useful in applications where multiple independent events are being observed.
The concepts of mutually independent events and mutually exclusive events are separate and distinct. The following table contrasts results for the two cases (provided that the probability of the conditioning event is not zero).
<table><thead><tr><th></th><th>If statistically independent</th><th>If mutually exclusive</th></tr></thead><tbody><tr><td>{\displaystyle P(A\mid B)=}</td><td>{\displaystyle P(A)}</td><td>0</td></tr><tr><td>{\displaystyle P(B\mid A)=}</td><td>{\displaystyle P(B)}</td><td>0</td></tr><tr><td>{\displaystyle P(A\cap B)=}</td><td>{\displaystyle P(A)P(B)}</td><td>0</td></tr></tbody></table>
In fact, mutually exclusive events cannot be statistically independent (unless both of them are impossible), since knowing that one occurs gives information about the other (in particular, that the latter will certainly not occur).
Independent vs. Positive association vs. Negative association of events
<table><thead><tr><th>Relation between A and B</th><th>Condition</th><th>Result</th></tr></thead><tbody><tr><td>Independent</td><td>{\displaystyle P(A\cap B)=} {\displaystyle P(A)P(B)}</td><td>{\displaystyle P(B\mid A)=}{\displaystyle P(B)}</td></tr><tr><td>Positive Association</td><td>{\displaystyle P(A\cap B)} > {\displaystyle P(A)P(B)}</td><td>{\displaystyle P(B\mid A)} > {\displaystyle P(B)}</td></tr><tr><td>Negative Association</td><td>{\displaystyle P(A\cap B)} < {\displaystyle P(A)P(B)}</td><td>{\displaystyle P(B\mid A)} < {\displaystyle P(B)}</td></tr></tbody></table>
Common fallacies
Conditional probability
These fallacies should not be confused with Robert K. Shope's 1978 "conditional fallacy", which deals with counterfactual examples that beg the question.
Assuming conditional probability is of similar size to its inverse
A geometric visualization of Bayes' theorem. In the table, the values 2, 3, 6 and 9 give the relative weights of each corresponding condition and case. The figures denote the cells of the table involved in each metric, the probability being the fraction of each figure that is shaded. This shows that ${\displaystyle P(A\mid B)P(B)=P(B\mid A)P(A)}$ i.e. ${\displaystyle P(A\mid B)={\frac {P(B\mid A)P(A)}{P(B)}}}$ . Similar reasoning can be used to show that ${\displaystyle P({\bar {A}}\mid B)={\frac {P(B\mid {\bar {A}})P({\bar {A}})}{P(B)}}}$ etc.
In general, it cannot be assumed that P(A|B) ≈ P(B|A). This can be an insidious error, even for those who are highly conversant with statistics. The relationship between P(A|B) and P(B|A) is given by Bayes' theorem:
${\displaystyle {\begin{aligned}P(B\mid A)&={\frac {P(A\mid B)P(B)}{P(A)}}\\\Leftrightarrow {\frac {P(B\mid A)}{P(A\mid B)}}&={\frac {P(B)}{P(A)}}\end{aligned}}}$
That is, P(A|B) ≈ P(B|A) only if P(B)/P(A) ≈ 1, or equivalently, P(A) ≈ P(B).
Assuming marginal and conditional probabilities are of similar size
In general, it cannot be assumed that P(A) ≈ P(A|B). These probabilities are linked through the law of total probability:
${\displaystyle P(A)=\sum {n}P(A\cap B{n})=\sum {n}P(A\mid B{n})P(B{n}).}$
where the events ${\displaystyle (B{n})}$ form a countable partition of ${\displaystyle \Omega }$.
This fallacy may arise through selection bias. For example, in the context of a medical claim, let SC be the event that a sequela (chronic disease) S occurs as a consequence of circumstance (acute condition) C. Let H be the event that an individual seeks medical help. Suppose that in most cases, C does not cause S (so that P(SC) is low). Suppose also that medical attention is only sought if S has occurred due to C. From experience of patients, a doctor may therefore erroneously conclude that P(SC) is high. The actual probability observed by the doctor is P(SC|H).
Over- or under-weighting priors
Not taking prior probability into account partially or completely is called base rate neglect. The reverse, insufficient adjustment from the prior probability is conservatism.
Formal derivation
Conditional probability
Formally, P(A | B) is defined as the probability of A according to a new probability function on the sample space, such that outcomes not in B have probability 0 and that it is consistent with all original probability measures.
Let Ω be a discrete sample space with elementary events {ω}, and let P be the probability measure with respect to the σ-algebra of Ω. Suppose we are told that the event B ⊆ Ω has occurred. A new probability distribution (denoted by the conditional notation) is to be assigned on {ω} to reflect this. All events that are not in B will have null probability in the new distribution. For events in B, two conditions must be met: the probability of B is one and the relative magnitudes of the probabilities must be preserved. The former is required by the axioms of probability, and the latter stems from the fact that the new probability measure has to be the analog of P in which the probability of B is one—and every event that is not in B, therefore, has a null probability. Hence, for some scale factor α, the new distribution must satisfy:
• ${\displaystyle \omega \in B:P(\omega \mid B)=\alpha P(\omega )}$ • ${\displaystyle \omega \notin B:P(\omega \mid B)=0}$ • ${\displaystyle \sum {\omega \in \Omega }{P(\omega \mid B)}=1.}$
${\displaystyle {\begin{aligned}1&=\sum {\omega \in \Omega }{P(\omega \mid B)}\\&=\sum {\omega \in B}{P(\omega \mid B)}+{\cancelto {0}{\sum {\omega \notin B}P(\omega \mid B)}}\\&=\alpha \sum {\omega \in B}{P(\omega )}\\[5pt]&=\alpha \cdot P(B)\\[5pt]\Rightarrow \alpha &={\frac {1}{P(B)}}\end{aligned}}}$
So the new probability distribution is
• ${\displaystyle \omega \in B:P(\omega \mid B)={\frac {P(\omega )}{P(B)}}}$ • ${\displaystyle \omega \notin B:P(\omega \mid B)=0}$
${\displaystyle {\begin{aligned}P(A\mid B)&=\sum {\omega \in A\cap B}{P(\omega \mid B)}+{\cancelto {0}{\sum {\omega \in A\cap B^{c}}P(\omega \mid B)}}\\&=\sum {\omega \in A\cap B}{\frac {P(\omega )}{P(B)}}\\[5pt]&={\frac {P(A\cap B)}{P(B)}}\end{aligned}}}$