Quantitation Probabilities
For looking at probability of events, we set the following defintions. Let $A$ be an event and $I$ the given information: $\mathbb{P}(A | I)$: The probab...
For looking at probability of events, we set the following defintions. Let $A$ be an event and $I$ the given information:
Not $A$ : $\bar{A}$ | 1 | 0 |
---|---|---|
$A$ | 0 | 1 |
$A$ and $B$ : $AB$ | 0 | 0 | 0 | 1 |
---|---|---|---|---|
$A$ | 0 | 0 | 1 | 1 |
$B$ | 0 | 1 | 0 | 1 |
$A$ or $B$ : $A + B$ | 0 | 1 | 1 | 1 |
---|---|---|---|---|
$A$ | 0 | 0 | 1 | 1 |
$B$ | 0 | 1 | 0 | 1 |
$A$ implies $B$ : $A \rightarrow B$ | 1 | 1 | 0 | 1 |
---|---|---|---|---|
$A$ | 0 | 0 | 1 | 1 |
$B$ | 0 | 1 | 0 | 1 |
The usage of such tables for larger systems is called the disjunctive normal form, where AND’s and OR’s are connected to make new statements.
The two main rules of probability, wherefrom every other rule can be derived are:
For example we have
\[\mathbb{P}(A + B | I) = \mathbb{P}(A | I) + \mathbb{P}(B | I) - \mathbb{P}(AB | I)\]Now lets imagine we have $n$ possible outcomes, $A_1, …, A_n$, where each event is mutually exclusive, meaning that if $A_i$ is true, then all others are false and that they are exhaustive, meaning that one out of all events must be true. With this we get the following properties:
\[\mathbb{P}(A_i A_j | I) = 0 \ \forall i \neq j \quad \text{and} \quad \sum_{i = 1}^n \mathbb{P}(A_i | I) = 1\]Because we provide no further information with which we can distinguish event $A_i$ from $A_j$, we treat them all as the same and we finally get:
\[\mathbb{P}(A_i | I) = \frac{1}{n} \ \forall i\]For looking at probability of events, we set the following defintions. Let $A$ be an event and $I$ the given information: $\mathbb{P}(A | I)$: The probab...
import numpy as np from scipy.special import gammaln from matplotlib import pyplot as plt import seaborn as sns import scipy as sp sns.set_theme()
import numpy as np import matplotlib.pyplot as plt
import scipy as sp import numpy as np import matplotlib.pyplot as plt
import scipy as sp import numpy as np import matplotlib.pyplot as plt
Difference trial and reference sample
Linear Regression discrepancy
```python import numpy as np import matplotlib.pyplot as plt from scipy.special import gamma import seaborn as sns
import numpy as np import matplotlib.pyplot as plt import seaborn as sns from matplotlib import cm sns.set_theme()