Log in Sign up
Back to Discover
🔢

Logistic regression

math Maturity 11-13

We can guess what might happen.

Exam pass logistic curve.svg
Exam pass logistic curve.svg
It helps us see if a team wins. It can help doctors too. It works with things like yes or no. It is very helpful. Can you guess what happens next?

41 words

Sometimes we want to guess what might happen.

Exam pass logistic curve.svg
Exam pass logistic curve.svg
We might guess if a team wins. We might guess if a person is healthy. This math helps us find the chance of that happening.

It works well with "yes" or "no" answers. For example, did a student pass a test? Did an email go to spam?

Logistic-curve.svg
Logistic-curve.svg
This math uses a special S-shaped curve.

This curve shows a chance between zero and one. Zero means it will not happen. One means it will surely happen. It helps us make smart choices.

94 words

Sometimes we want to guess the chance of something happening.

Exam pass logistic curve.svg
Exam pass logistic curve.svg
We might ask if a team will win a game. We might ask if a person is healthy. This is called binary regression. It works well when there are only two choices, like "yes" or "no."

To make these guesses, math uses a special S-shaped curve.

Logistic-curve.svg
Logistic-curve.svg
This is called the logistic function. The curve shows a chance between 0 and 1. A value of 0 means it will not happen. A value of 1 means it will surely happen.

Scientists use this in many ways. Doctors use it to predict if a patient might get sick. Engineers use it to see if a machine might fail. Even people in marketing use it to see if you will buy a product.

Joseph Berkson helped make this idea popular. He used the word "logit" to describe it. Most people use a way called maximum-likelihood estimation to find the best fit for the curve. This helps the math match the real world as closely as possible.

178 words

Sometimes we want to guess the chance of something happening.

Exam pass logistic curve.svg
Exam pass logistic curve.svg
We might ask if a sports team will win a game. We might ask if a patient is healthy or sick. This kind of math is called logistic regression. It is used to find the probability of an event. A probability is just a way to measure how likely something is. In binary logistic regression, there are only two possible outcomes. We often label these outcomes as 0 or 1. For example, 0 could mean a student failed an exam. A 1 could mean that same student passed the exam.
Logistic-curve.svg
Logistic-curve.svg

To make these guesses, the math uses a special tool. This tool is called the logistic function. It creates a shape that looks like a smooth, S-shaped curve.

Logistic-sigmoid-vs-scaled-probit.svg
Logistic-sigmoid-vs-scaled-probit.svg
This curve is very helpful for math. It takes any number and turns it into a probability. The result is always between 0 and 1. A 0 means the event will certainly not happen. A 1 means the event will certainly happen. The curve helps us see how changing one thing affects the chance of the outcome. For instance, more hours of studying might increase the chance of passing. The math looks at how these inputs change the odds.

This method has a long history in the world of math. A man named Joseph Berkson helped make it popular. He began his work around the year 1944. He was the one who came up with the word "logit." This word comes from the term "logistic unit." The logit is the name for the scale used for log-odds.

Odds Ratio-1.jpg
Odds Ratio-1.jpg
This math has become a standard tool for many researchers. Since about 1970, it has been the most common model for binary regression. It provides a simple way to understand how different factors work together.

Scientists use these models in many different jobs today. Doctors use them to predict the risk of a disease like diabetes. They can also use them to see how severe an injury might be. One famous scale is the Trauma and Injury Severity Score, or TRISS. A researcher named Boyd developed TRISS using logistic regression.

Logistic Regression in SPSS.png
Logistic Regression in SPSS.png
Engineers also use this math to predict if a product might fail. In marketing, companies use it to guess if a customer will buy something. Even disaster planners use it to study how people might evacuate during a fire or hurricane.

Logistic regression is a way to organize what we see in the world. It takes information like age, sex, or income and turns it into a guess. It works by finding the "best fit" for the data. Most people use a method called maximum-likelihood estimation to do this. This method helps the S-shaped curve match the real facts as closely as possible. It is a very useful way to turn messy information into clear chances. By using this math, we can make much better decisions about the future.

496 words

Logistic regression is a powerful statistical model used to estimate the probability of an event occurring. In many real-world scenarios, outcomes are binary, meaning they fall into one of two categories. We often represent these categories using indicator variables labeled 0 and 1. For example, a student might pass an exam (1) or fail (0).

Exam pass logistic curve.svg
Exam pass logistic curve.svg
This model is essential because it allows researchers to understand how different independent variables influence these binary outcomes. While it is not a classifier itself, it provides a probabilistic framework that can be used to create a binary classifier by choosing a specific cutoff value.

The core mechanism of this model relies on the logistic function, also known as the sigmoid function. This function is unique because it can take any real-valued number and map it into a value between 0 and 1.

Logistic-curve.svg
Logistic-curve.svg
This range is perfect for representing probabilities, where 0 represents absolute certainty that an event will not happen and 1 represents absolute certainty that it will. The model works by taking a linear combination of input features and passing them through this S-shaped curve. This process converts the log-odds of an event into a usable probability. By doing this, the model can show how changing an input, such as study hours, shifts the likelihood of a specific outcome.

There are several different types of logistic regression depending on the nature of the data. Binary logistic regression is the most common, dealing with a single dependent variable that has only two possible values. However, these variables can be generalized. If there are more than two possible categories, such as identifying if an image is a cat, dog, or lion, we use multinomial logistic regression. If the categories have a natural order, such as levels of satisfaction, researchers use ordinal logistic regression. This allows the model to adapt to the specific structure of the information being studied.

The history of the logistic model is closely tied to the work of Joseph Berkson. Beginning around 1944, Berkson helped develop and popularize the method. He is credited with coining the term "logit," which is a contraction of "logistic unit."

Odds Ratio-1.jpg
Odds Ratio-1.jpg
The logit serves as the unit of measurement for the log-odds scale. Since approximately 1970, the logistic model has been the most widely used method for binary regression. It serves as a simple and well-analyzed baseline model in the field of statistics.

To find the most accurate model, mathematicians use a process called maximum-likelihood estimation, or MLE. This method seeks to find the parameters that make the observed data most likely to have occurred.

Logistic Regression in SPSS.png
Logistic Regression in SPSS.png
Unlike linear regression, which often uses ordinary least squares to minimize squared errors, logistic regression does not have a closed-form expression for its parameters. Instead, it requires numerical methods to solve for the best fit. This involves calculating the log-likelihood and finding the values that maximize it. A common way to measure how well the model fits the data is through log loss, which measures the "surprisal" of the actual outcome compared to the prediction.

Applications of logistic regression are found in nearly every professional field. In medicine, it is used to predict the risk of developing diseases like diabetes or coronary heart disease based on patient characteristics like age and BMI. A famous example is the Trauma and Injury Severity Score (TRISS), which was developed by Boyd to predict mortality in injured patients. In the social sciences, it can predict voter behavior based on income or race. Engineers use it to calculate the probability of a system or product failing, while marketers use it to predict if a customer will stop a subscription.

Beyond simple classification, the model connects to broader mathematical and computational concepts. In machine learning, it is a fundamental supervised learning algorithm used for tasks like identifying spam emails. It also relates to the Bernoulli distribution, as the logistic function is its natural parameter. In more advanced settings, extensions like conditional random fields allow the model to handle sequential data in natural language processing. Whether predicting a homeowner's mortgage default or a building occupant's reaction to a wildfire, logistic regression turns complex variables into clear, actionable probabilities.

700 words
🖼️ Images & Media (5)
File:Exam pass logistic curve.svg
Exam pass logistic curve.svg
File:Logistic-curve.svg
Logistic-curve.svg
File:Odds Ratio-1.jpg
Odds Ratio-1.jpg
File:Logistic Regression in SPSS.png
Logistic Regression in SPSS.png
File:Logistic-sigmoid-vs-scaled-probit.svg
Logistic-sigmoid-vs-scaled-probit.svg
Up Next
🔢
Regression analysis
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.