The work includes:

The theory of regression (linear vs logistic),

Assumptions of logistic regression,

Advantages and disadvantages,

Real-life applications (medicine, marketing, finance, fraud detection),

A case study with Titanic dataset to test the method.

What is Logistic Regression?

Unlike linear regression (which predicts numbers like prices or scores), logistic regression predicts categories. For example:

Will a student pass or fail?

Will an email be spam or not?

Will a passenger survive or not?

It uses the Sigmoid function to give probabilities between 0 and 1. If the probability is greater than 0.5, the model predicts “Yes (1).” If lower, it predicts “No (0).”

Titanic Dataset Example

The Titanic dataset is one of the most famous datasets in machine learning. It includes information such as:

Passenger class (1st, 2nd, 3rd),

Age, sex, ticket fare, cabin, port of embarkation,

Whether the passenger survived or not.

Steps in the project:

  1. Data Review – looking at the dataset and its features.

  2. Preprocessing – handling missing values.

  3. Model Training – applying logistic regression.

  4. Evaluation – checking the accuracy of the predictions.

The model could predict survival chances based on features like gender and class, which were among the most important factors.

Results and Insights

Logistic regression is simple to apply and gives clear results.

It works well for binary outcomes.

However, it has some limits: it cannot predict continuous values, and small datasets can cause weak results.

The Titanic case showed that logistic regression is effective, but combining it with methods like decision trees can give even better accuracy.

Ayca Gurses

I am a computer engineer and developer in Istanbul, Turkiye.

Get in touch

contact@aycagurses.com

TR