Local case-control sampling
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In machine learning, local case-control sampling is an algorithm used to reduce the complexity of training a logistic regression classifier. The algorithm reduces the training complexity by selecting a small subsample of the original dataset for training. It assumes the availability of an (unreliable) pilot estimation of the parameters. It then performs a single pass over the entire dataset using the pilot estimation to identify the most "surprising" samples. In practice, the pilot may come from prior knowledge or training using a subsample of the dataset. The algorithm is most effective when the underlying dataset is imbalanced. It exploits the structures of conditional imbalanced datasets more efficiently than alternative methods, such as case control sampling and weighted case control sampling.
In machine learning, local case-control sampling is an algorithm used to reduce the complexity of training a logistic regression classifier. The algorithm reduces the training complexity by selecting a small subsample of the original dataset for training. It assumes the availability of an (unreliable) pilot estimation of the parameters. It then performs a single pass over the entire dataset using the pilot estimation to identify the most "surprising" samples. In practice, the pilot may come from prior knowledge or training using a subsample of the dataset. The algorithm is most effective when the underlying dataset is imbalanced. It exploits the structures of conditional imbalanced datasets more efficiently than alternative methods, such as case control sampling and weighted case control sampling. In classification, a dataset is a set of N data points (x_i, y_i)_{i=1}^N , where x_i \in\mathbb R^d is a feature vector, y_i \in \{0,1\} is a label. Intuitively, a dataset is imbalanced when certain important statistical patterns are rare. The lack of observations of certain patterns does not always imply their irrelevance. For example, in medical studies of rare diseases, the small number of infected patients (cases) conveys the most valuable information for diagnosis and treatments. Formally, an imbalanced dataset exhibits one or more of the following properties: Marginal Imbalance. A dataset is marginally imbalanced if one class is rare compared to the other class. In other words, \mathbb{P}(Y=1) \approx 0 . Conditional Imbalance. A dataset is conditionally imbalanced when it is easy to predict the correct labels in most cases. For example, if X \in \{0,1\} , the dataset is conditionally imbalanced if \mathbb{P}(Y=1\mid X=0) \approx 0 and \mathbb{P}(Y=1\mid X=1) \approx 1 . In logistic regression, given the model \theta = (\alpha, \beta) , the prediction is made according to \mathbb{P}(Y=1\mid X; \theta) = \tilde{p}_{\theta}(x) = \frac{\exp(\alpha+\beta^T x)}{1+\exp(\alpha+\beta^T x)} . The local-case control sampling algorithm assumes the availability of a pilot model \tilde{\theta} = (\tilde{\alpha}, \tilde{\beta}) . 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 (x,y) , define the acceptance probability as a(x,y) = |y-\tilde{p}_{\tilde{\theta}}(x)| . The algorithm proceeds as follows: Generate independent z_i \sim \text{Bernoulli}(a(x_i,y_i)) for i \in \{1, \ldots, N\} . Fit a logistic regression model to the subsample S = \{(x_i, y_i) : z_i =1 \} , obtaining the unadjusted estimates \hat{\theta}_S = (\hat{\alpha}_S, \hat{\beta}_S) . The output model is \hat{\theta} = (\hat{\alpha}, \hat{\beta}) , where \hat{\alpha} \leftarrow \hat{\alpha}_S + \tilde{\alpha} and \hat{\beta} \leftarrow \hat{\beta}_S + \tilde{\beta} . The algorithm can be understood as selecting samples that surprises the pilot model. Intuitively these samples are closer to the decision boundary of the classifier and is thus more informative. In practice, for cases where a pilot model is naturally available, the algorithm can be applied directly to reduce the complexity of training. In cases where a natural pilot is nonexistent, an estimate using a subsample selected through another sampling technique can be used instead. In the original paper describing the algorithm, the authors propose to use weighted case-control sampling with half the assigned sampling budget. For example, if the objective is to use a subsample with size N=1000 , first estimate a model \tilde{\theta} using N_h = 500 samples from weighted case control sampling, then collect another N_h = 500 samples using local case-control sampling.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1324932337 under CC BY-SA 4.0; modifications have been made.