Large N & Leeuwenhoek (70700173)
Missingness Issue
Continueous → Discrete
True data: D; observable: X, Y, & M.1
\[\begin{align} \boldsymbol{D} =& \left(\begin{array}{cc} X_1 & Y_1\\ X_2 & Y_2\\ X_3 & Y_3\\ X_4 & Y_4\end{array}\right); \boldsymbol{D^{Observed}} = \left(\begin{array}{cc} X_1 & Y_1\\ & Y_2\\ X_3 & Y_3\\ & Y_4\end{array}\right);\\ \boldsymbol{M} =& \left(\begin{array}{cc} 0 & 0\\ 1 & 0\\ 0 & 0\\ 1 & 0\end{array}\right); \boldsymbol{D^M} = \left(\begin{array}{cc} & \\ X_2 & \\ & \\ X_4 & \end{array}\right) \end{align}\]
Missing completely at random (MCAR)
P(M|D) = P(M)
Missing at random (MAR)
P(M|D) = P(M|DObserved)
Non-ignorable (NI/MNAR)
P(M|D) ≠ P(M|DObserved)
Illustrate with fake data
\[Y = \hat \beta_0 + \hat \beta_1 X + \hat \epsilon_i\]
| Summary Stats | Regression | SE vs. complete | |
|---|---|---|---|
| MCAR | Unbiased | Unbiased/consistent | Inefficient |
| MAR | Biased | Unbiased/consistent | Inefficient |
| NI | Biased | Biased | – |
Ignore it: Listwise deletion (Problem?)
Fill it manually: hot deck method (Problem?)
Imputation
(Problems?)
\[\begin{align} \hat\beta =& \frac{\sum^m_{i = 1}\hat\beta_i}{m},\\ var(\hat\beta) =& \frac{\sum^m_{i = 1}var(\hat\beta_i)}{m} + \frac{m + 1}{m}W. \end{align}\]
Advantages
Imputations are separated from the analysis ⇒
Misspecification of the model does not affect MI.
Concern
What you may try:
Likelihood approach: Estimate distribution and integrate over it (the results are identical no matter how many times doing it), e.g., SEM.
When we know what happened:
Censored data:
Have some information about values of missing data, e.g., all data <0 are coded as 0.
Truncated data:
Have no information about values of missing data, e.g., the data are only observable when it < 100,000
tobit, use the right distribution—a combination of P(Yi* < 0|X) and f(Yi|Xi).\[\begin{align} \pi_i\equiv P(Y = 1|X) =& \beta_0 + \beta_1X_i\\ var(\pi_i) =& \pi(1 - \pi) \\ =& (\beta_0 + \beta_1X_i)[1 - (\beta_0 + \beta_1X_i)] \end{align}\]
Pros
Interpreted as OLS + % changes in a unit of X
Cons
Not very reliable transformation
\[P(Y = 1|X) = G(\beta_0 + \beta_1X_1 + ... + \beta_kX_k).\]
Logit
The outcome of a binary variable Yi depends on an unobserved continuous probability Y*:
\[\begin{align} Y_i =& \begin{cases} 0, \text{if } Y^*\leq 0,\\ 1, \text{if } Y^*> 0.\end{cases}\\ Y^* =& X\beta + u, u\sim \Lambda(0, \frac{\pi^2}{3}) \end{align}\]
Probit
\[\begin{align} Y_i =& \begin{cases} 0, \text{if } Y^*\leq 0,\\ 1, \text{if } Y^*> 0.\end{cases}\\ Y^* =& X\beta + u, u\sim \Phi(0, 1)\\ \text{Similarly, } P(Y_i = 1|X) =& 1 - \Phi(-X\beta)\\ f(x) =&\frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{(x - \mu)^2}{2\sigma^2}} \end{align}\]
Probit is a little more computationally costly than logit ( \(\frac{e^x}{1 + e^x}\) vs. \(\frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{(x - \mu)^2}{2\sigma^2}}\))
Logit and probit coefficients are identical but on different scales (varlogit = π2/3, varprobit = 1)
Let’s say the true model is a logit, but we estimate a probit model
\[\begin{align} P(Y = 1|X) =& 1 - P(u \leq -X\beta_{probit}|X)\\ =& 1 - \Phi(\frac{-X\beta_{probit}}{\pi^2/3})\\ =& 1 - \Lambda(-X\beta_{logit})\\ \Leftrightarrow\ \beta_{logit} =& \frac{\sqrt{3}}{\pi}\beta_{probit}\approx 0.55\beta_{probit} \end{align}\]
Minimize the least square? No~
The maximum likelihood estimation:
\[\mathcal{L}(\hat\theta|Y, X, m) \equiv \mathcal{L}(\hat\theta|Y, X) = k(Y)f(Y|\hat\theta, X)\propto f(Y|\hat\theta, X)\]
Define: \(\hat\theta = argmax_{\theta^*}\mathcal{L}(Y|X, \theta^*)\), the .red[maximum likelihood estimate] of θ from among all possible values of θ*
Property:
\[P(Y = 1|X) = \frac{e^{XP}}{1 + e^{X\beta}}\]
What’s the effect of every one unit change of X on P(Y = 1|X)?
Ways to interpret GLM outcomes:
Psedo-R2
Several ways to estimate it, but none of them is quite straightforward.
Proportional reduction in error (PRE), a.k.a., Percent correctly predicted (PCP)
Comparing estimates of P(Y = 1|X) to Y: If P(Y = 1|X) > 0.5, define Ŷ = 1, otherwise, Ŷ = 0. Let’s denote
| Y = 1 | Y = 0 | |
|---|---|---|
| Ŷ = 1 | n11 | n01 |
| Ŷ = 0 | n10 | n00 |
\[PCP = \frac{n_{11} + n_{00}}{\sum n}\]
Advanced: How much better the model predict than plain guess. Define PMC as the percent modal category (the plain guess). That is,
\[PRE = \frac{PCP - PMC}{1 - PMC}\]
The instantaneous change
\[\begin{align} &\frac{\partial P(Y = 1|X)}{\partial X} \\ =& \beta_1e^{\beta_0 + \beta_1X_1 + \beta_2X_2}(1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2})^{-1}\\ & -e^{\beta_0 + \beta_1X_1 + \beta_2X_2}(1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2})^2\beta_1e^{\beta_0 + \beta_1X_1 + \beta_2X_2}\\ =& \frac{\beta_1e^{\beta_0 + \beta_1X_1 + \beta_2X_2}(1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2}) - e^{\beta_0 + \beta_1X_1 + \beta_2X_2}\beta_1e^{\beta_0 + \beta_1X_1 + \beta_2X_2}}{(1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2})^2}\\ =& \frac{\beta_1e^{\beta_0 + \beta_1X_1 + \beta_2X_2}}{(1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2})^2} = \beta_1(\frac{e^{\beta_0 + \beta_1X_1 + \beta_2X_2}}{1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2}})(\frac{1}{1 + e^{\beta_0 + \beta_1X_1 + \beta_2X_2}}) \\ =& \beta_1P(Y = 1|X)P(Y = 0|X) \end{align}\]
The discrete version of marginal effect.1
\[FD: P(Y|X = X_k^H, X_{-k}) - P(Y|X = X_k^L, X_{-k})\]
XkH,L: