Skip to content
All library documents

Logistic Regression and Optimization for Binary Classification

Article BigQuant

Summary

This lesson explains binary classification through logistic regression, using the example of predicting whether a stock will rise. It describes encoding outcomes as zero and one, interpreting the model output as a probability, and applying a 0.5 cutoff to assign a class. It contrasts logistic regression with linear regression, whose predictions can fall outside the probability range and can be sensitive to extreme observations.

The parameter-estimation section presents cross-entropy as the objective to minimize and explains why a direct closed-form solution is difficult. It introduces gradient descent, where the gradient guides iterative steps and a learning rate sets their overall scale, and Newton–Raphson, which uses second-derivative information to adjust steps. The lesson is conceptual: although it has a section heading on implementation, no code, trading results, or empirical comparison is provided. It also does not discuss probability calibration, class imbalance, feature design, or how to validate a classifier for trading.

Key ideas

  • Binary classification can be framed as estimating the probability of one class and deriving the other class probability by subtraction.
  • A threshold converts predicted probabilities into class labels, but the lesson uses a fixed cutoff as a general convention.
  • The logistic function constrains model outputs to the zero-to-one range, unlike an unconstrained linear fit.
  • Logistic regression parameters can be estimated by minimizing cross-entropy.
  • Gradient descent uses gradients and a learning rate, while Newton–Raphson uses second-derivative information to guide updates.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.