It is a well-known fact among researchers working with probability calculus that transitivity can fail for Bayesian confirmation. That is, it is possible that A confirms B and B confirms C while A fails to confirm C, or graphically:
More formally, transitiviy-failure is any case where the following conditions are jointly satisfied:
$P(B|A)>P(B)$ $P(C|B)>P(C)$ $P(C|A)\ngtr P(C)$
Still, there is a growing number of conditions in the literature under which this cannot happen, some of which are surprisingly weak. This raises the question how prevalent the phenomenon of transitivity-failure is: perhaps, Bayesian confirmation is transitive in most cases?
This repo provides the code for a Monte Carlo approximation of the prevalence of transitivity-failure. Results for other inference patterns from non-monotonic reasoning and the logic of conditionals are also provided.
The results are published in the British Journal for the Philosophy of Science:
A penultimate version of the paper can be found here:
Two types of prevalence values are calculated:
-
Conjunctive Prevalence reflects how likely it is that the antecedent of an inference pattern is satisfied and the consequent of that pattern is violated.
-
Conditional Prevalence reflects how likely it is that the consequent of an inference pattern is violated if the antecedent of that pattern is satisfied.
The plot above shows how the prevalence values for transitivity stabilize after 10,000 probability distributions. The table below also shows the results for other patterns from non-monotonic reasoning and the logic of conditionals. Notice that
| Label | Inference Pattern | Conjunctive Prevalence | Conditional Prevalence |
|---|---|---|---|
| Transitivity | If then |
0.089709 | 0.358918 |
| Conjunctive Transitivity |
If then |
0.056351 | 0.225455 |
| Conditional Transitivity |
If then |
0.110268 | 0.441173 |
| Cumulative Transitivity |
If then |
0.056489 | 0.225832 |
| Agglomeration | If then |
0.025136 | 0.100567 |
| Cautious Monotonicity |
If then |
0.056483 | 0.225984 |
| Rational Monotonicity |
If then |
0.056483 | 0.225984 |
| Corroboration | If then |
0.091586 | 0.366428 |
| Amalgamation | If then |
0.025011 | 0.100067 |
So, even though transitivity is not generally valid for Bayesian confirmation, transitivity-style inferences are more likely right than wrong. Nevertheless, they are more likely wrong than instances of other inference patterns.
-
https://link.springer.com/chapter/10.1007/978-94-017-2300-8_12
-
https://www.journals.uchicago.edu/doi/abs/10.1093/bjps/54.4.613
-
https://link.springer.com/article/10.1007/s10670-020-00349-7
Use the requirements file to create a new environment for this task.
pyenv local 3.11.3
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txtInstall the virtual environment and the required packages by following commands.
For PowerShell CLI :
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txtFor Git-Bash CLI:
python -m venv .venv
source .venv/Scripts/activate
pip install --upgrade pip
pip install -r requirements.txt