Math 2.0

Statistics Definition

Logistic regression

Builds on Generalized linear modelBernoulli distributionMaximum likelihood estimation

Definition

Let x1,…,xn∈ℝpx_1, \dots, x_n \in \R^p be known regressor vectors. The logistic regression model for responses y1,…,yn∈{0,1}y_1, \dots, y_n \in \set{0, 1} states three things. The yiy_i are independent, yiy_i has the Bernoulli distribution with parameter pip_i, and log⁡pi1−pi=xiTβ\log \frac{p_i}{1 - p_i} = x_i^T \beta for an unknown β∈ℝp\beta \in \R^p. Equivalently, pi=σ(xiTβ)p_i = \sigma(x_i^T \beta), where σ(t)=1/(1+e−t)\sigma(t) = 1/(1 + e^{-t}) is the logistic function.

Remarks

It is the generalized linear model with Bernoulli responses and the logit link g(μ)=log⁡(μ/(1−μ))g(\mu) = \log(\mu / (1 - \mu)), which is the canonical link. The log-likelihood is ℓ(β)=∑i(yixiTβ−log⁡(1+exiTβ))\ell(\beta) = \sum_i \big( y_i x_i^T \beta - \log(1 + e^{x_i^T \beta}) \big), a concave function. The maximum likelihood estimate solves ∑i(yi−pi)xi=0\sum_i (y_i - p_i) x_i = 0 and has no closed formula in general. For a regressor xijx_{ij}, the number eβje^{\beta_j} is the odds ratio for a unit increase of xijx_{ij} with the other regressors fixed.

Example: with xi=(1,ti)x_i = (1, t_i) and β=(−2,0.5)\beta = (-2, 0.5), at t=4t = 4 the log-odds is 00, so p=σ(0)=1/2p = \sigma(0) = 1/2; at t=6t = 6 it is 11, so p=e/(1+e)≈0.73p = e/(1 + e) \approx 0.73.

Non-example: suppose the data are perfectly separated, that is, some γ∈ℝp\gamma \in \R^p has xiTγ>0x_i^T \gamma > 0 whenever yi=1y_i = 1 and xiTγ<0x_i^T \gamma < 0 whenever yi=0y_i = 0. Then ℓ(cγ)\ell(c\gamma) increases to 00 as c→∞c \to \infty, while ℓ<0\ell < 0 everywhere, so the maximum likelihood estimate does not exist. The model is still defined, but this fitting method fails.

Reading path

To understand this page from the ground up, read these 76 pages in order. The foundations come first.

  1. Bernoulli distribution concept
  2. Construction of the reals from Cauchy sequences concept
  3. Element definition
  4. Generalized linear model concept
  5. Integers object
  6. Ordered field definition
  7. Proposition concept
  8. Random experiment concept
  9. Rational numbers object
  10. Real numbers object
  11. Set definition
  12. Ring of integers statement
  13. Disjunction definition
  14. Implication definition
  15. Predicate definition
  16. Ordered pair definition
  17. Union definition
  18. Sample space definition
  19. Existential quantifier definition
  20. Universal quantifier definition
  21. The rationals form a field statement
  22. Cartesian product definition
  23. Subset definition
  24. Uniqueness quantifier definition
  25. The rationals form an ordered field statement
  26. Binary relation definition
  27. Universal set definition
  28. Power set definition
  29. Order on the reals definition
  30. Function definition
  31. Complement definition
  32. Interval definition
  33. Injective function definition
  34. Preimage of a set definition
  35. Sigma-algebra definition
  36. Countable set definition
  37. Event definition
  38. Borel sigma-algebra definition
  39. Probability axioms concept
  40. Probability measure definition
  41. Probability distribution definition
  42. Probability space definition
  43. Conditional probability definition
  44. Random variable definition
  45. Cumulative distribution function definition
  46. Discrete random variable definition
  47. Law of a random variable definition
  48. Independence of two events definition
  49. Convergence in probability definition
  50. Random variable with a density definition
  51. Joint probability distribution definition
  52. Probability mass function definition
  53. Mutual independence of events definition
  54. Expected value definition
  55. Identically distributed random variables definition
  56. Independence of two random variables definition
  57. Probability density function definition
  58. Marginal distribution definition
  59. Independent sigma-algebras definition
  60. Variance definition
  61. Linearity of expectation statement
  62. Independence of random variables definition
  63. Independence means the joint law is the product of the marginals statement
  64. Covariance definition
  65. Independent and identically distributed random variables definition
  66. Variance of a sum statement
  67. Expectation of a product of independent random variables statement
  68. Statistic definition
  69. Likelihood function definition
  70. Independent random variables are uncorrelated statement
  71. Estimator definition
  72. Variance of a sum of independent random variables statement
  73. Sample mean definition
  74. Consistent estimator definition
  75. Maximum likelihood estimation concept
  76. Logistic regression definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Logistic_regression
About this page
TagAYTEC1KET8
URIm2://AYTEC1KET8
Kinddefinition
WritingW0 stub
MSC62J12
DefinesLogistic regression
UsesGeneralized linear model, Bernoulli distribution, Maximum likelihood estimation

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.