Draw \(X_i \overset{IID}{\sim} F , 1 \leq i \leq N\)
Let \(R(X_i), C(X_i)\) be discrete random variables: presence or absence of a trait; labelling a trait.
Sample can be summarized in table
| \(c_1\) | \(\dots\) | \(c_J\) | Row total | |
|---|---|---|---|---|
| \(r_1\) | \(Y_{11}\) | \(\dots\) | \(Y_{1J}\) | \(Y_{1.}\) |
| \(\vdots\) | \(\dots\) | \(\dots\) | \(\dots\) | \(\dots\) |
| \(r_I\) | \(Y_{I1}\) | \(\dots\) | \(Y_{IJ}\) | \(Y_{I.}\) |
| Column total | \(Y_{.1}\) | \(\dots\) | \(Y_{.J}\) | \(Y_{..}\) |
\[ \pi_{ij} = P_F(R=i, C=j), \qquad 1 \leq i \leq I, 1 \leq j \leq J \]
\[ \pi_{ij} = \pi_{i.} \cdot \pi_{.j}, \qquad 1 \leq i \leq I, 1 \leq j \leq J \]
\[ \pi_{i.} = \pi_{.i}, \qquad 1 \leq i \leq I \]
\(N \sim \text{Poisson}(\lambda) \to Y \sim \text{Poisson}(\lambda \cdot \pi)\)
That is, \(Y_{ij}\)’s are independent with distribution
\[ Y_{ij} \sim \text{Poisson}(\lambda \pi_{ij}) \]
## Linear regression
Response matrix: \(Y \in \mathbb{R}^{n \times q}\)
Design matrix: \(X \in \mathbb{R}^{n \times p}\)
\[ Y_i | X_i \sim N(X_i^T\beta, \sigma^2) \]
\[ \hat{\beta} = \text{argmin}_{\beta} \|Y - X\beta\|^2_2 \]
### Usual model
\[ Y_i | X_i \sim \text{Binomial}(F(X_i^T\beta)) \]
Common choices:
probit: \(F \sim N(0,1)\)
logit: \(F(x) = e^x/(1+e^x)\).
\[ \hat{\beta} = \text{argmin}_{\beta} - 2 \log L(\beta | X, Y) = \text{argmin}_{\beta} \text{DEV}(\beta | X, Y) \]
Baseline logistic
Ordered logistic
\[ P_{\beta}(T > t |X) = \exp \left(-\int_0^t h_{\beta}(s;X) \; ds \right) \]
Kaplan-Meier estimator: direct estimate of \(P(T > t)\) based on IID draws of censored observations from \(F\)
Log-rank test
\[ \frac{h_{\beta}(s;X_1)}{h_{\beta}(s;X_0)} = \exp\left((X_1-X_0)^T\beta \right) \]
Logistic regression
Baseline multinomial
Poisson
Cox model
EM algorithm
Gibbs sampling
Pseudo-likelihood