6.5 Likelihood
In linear regression, we have seen that data points generally do not always follow a straight line and there is an “error” associated with each data point. These errors serve as indicators of how inaccurate the line is in forecasting the data. We calculate the “error” for each data point and employ a method called the Sum of squared errors (SSE) to determine the total errors across all data points. Our objective was to minimise the SSE in order to discover the best fit line. However, this doesn’t apply here. In Logistic regression, our goal is to determine the predicted probabilities for each data point and maximize the probability that a particular logistic curve would produce the observed data points. There is a function that can be used to assess the overall probability for the entire dataset, and this function is known as the Likelihood.
In statistics, likelihood refers to the joint probability of observed data for a given statistical model. For instance, if we denote the likelihood as "L(θ|data)", where θ represents the parameters of the statistical model, and "data" represents the observed data, the likelihood tells us how probable it is to observe the given data assuming the model's parameters are θ.
In the context of logistic regression, likelihood refers to the joint
probability of observing the binary outcomes (0 or 1) based on the predicted
probabilities generated by the logistic regression model for the given beta
coefficients (,
) .
To calculate the likelihood, we directly use the predicted probabilities when the actual classification outcome is 1 (indicating an event occurrence) to assess how well the model's probability prediction matches the event's presence. Conversely, when the actual classification…