Content deleted Content added
Gzluyongxi (talk | contribs) Added link from the wiki page "logistic regression" in the see also section. |
No edit summary |
||
Line 16:
In logistic regression, given the model <math> \theta = (\alpha, \beta) </math>, the prediction is made according to <math> \mathbb{P}(Y=1|X; \theta) = \tilde{p}_{\theta}(x) = \frac{\exp^{\alpha+\beta^T x}}{1+\exp^{\alpha+\beta^T x}} </math>. The local-case control sampling algorithm assumes the availability of a pilot model <math>\tilde{\theta} = (\tilde{\alpha}, \tilde{\beta}) </math>. Given the pilot model, the algorithm performs a single pass over the entire dataset to select the subset of samples to include in training the logistic regression model. For a sample <math> (x,y) </math>, define the acceptance probability as <math> a(x,y) = |y-\tilde{p}_{\tilde{\theta}}(x)| </math>. The algorithm proceeds as follows:
# Generate independent <math> z_i \sim \text{Bernoulli}(a(x_i,y_i)) </math> for <math> i \in \{1, \
# Fit a logistic regression model to the subsample <math> S = \{(x_i, y_i) : z_i =1 \} </math>, obtaining the unadjusted estimates <math> \hat{\theta}_S = (\hat{\alpha}_S, \hat{\beta}_S) </math>.
# The output model is <math> \hat{\theta} = (\hat{\alpha}, \hat{\beta}) </math>, where <math>\hat{\alpha} \leftarrow \hat{\alpha}_S + \tilde{\alpha} </math> and <math>\hat{\beta} \leftarrow \hat{\beta}_S + \tilde{\beta} </math>.
|