Logistic Regression
Level 2
Coming soon
This lesson is being written. Explore the graph meanwhile.
You will need
- Linear RegressionLinear regression fits a straight line (or a flat plane in many dimensions) through data by choosing the weights that make the sum of squared errors as small as possible.
- Sigmoid FunctionThe sigmoid squashes any real number into the open interval from 0 to 1 along an S-shaped curve, so it turns an unbounded score into something that reads like a probability.
- Bernoulli DistributionThe Bernoulli distribution describes a single yes-or-no trial: one number p gives the chance of a success, and the failure chance is 1 minus p.
- Maximum Likelihood EstimationMaximum likelihood estimation picks the parameter values that make the observed data most probable, found by maximising the log-likelihood.
- Log-OddsComing soon
- Gradient DescentGradient descent lowers a function by repeatedly stepping opposite its gradient, and it is how almost every model is trained.
Unlocks
- Generalized Linear ModelA generalized linear model keeps the linear predictor of linear regression but lets the outcome follow any exponential-family distribution, linked to the predictor through a function such as the logit or log.
- Regularization Paths for Generalized Linear Models via Coordinate DescentComing soon