<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anish Rane</title>
    <description>The latest articles on DEV Community by Anish Rane (@mlaiinsightshub).</description>
    <link>https://dev.to/mlaiinsightshub</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4161830%2F5951a054-57d3-4d6e-a7b0-809bdd71b9de.png</url>
      <title>DEV Community: Anish Rane</title>
      <link>https://dev.to/mlaiinsightshub</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mlaiinsightshub"/>
    <language>en</language>
    <item>
      <title>How Logistic Regression Works: Beginner to Pro Guide</title>
      <dc:creator>Anish Rane</dc:creator>
      <pubDate>Tue, 06 Oct 2026 03:45:00 +0000</pubDate>
      <link>https://dev.to/mlaiinsightshub/how-logistic-regression-works-beginner-to-pro-guide-2dch</link>
      <guid>https://dev.to/mlaiinsightshub/how-logistic-regression-works-beginner-to-pro-guide-2dch</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Logistic regression made simple: sigmoid, probabilities and maximum likelihood, with a real diabetes prediction example anyone can follow.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Logistic regression is a supervised machine learning model which is built on the linear regression formula that which is why it is called a regression model. This model is mainly used for classification tasks where the goal is to predict the probability that an instance belongs to a given class or not. Logistic Regression is a statistical algorithm which analyses the relationship between two data factors&lt;/p&gt;

&lt;p&gt;Types of Logistic Regression&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Binomial&lt;/strong&gt; Regression&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Logistic regression is used for binary classification where we use sigmoid function that takes the input as an independent variable and produces a probability value between 0 and 1&lt;/li&gt;
&lt;li&gt;Where we use sigmoid fuction as the activiation &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Multinomial&lt;/strong&gt; Regression&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In multinomial regression there can be 3 or more possible unordered types of dependent variable such a ‘bike’, ‘sedan’, ‘SUV’, etc&lt;/li&gt;
&lt;li&gt;Where we use the softmax fuction as the activation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Ordinal&lt;/strong&gt; Regression&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In an ordinal logistic regression there can be 3 or more possible ordered types of dependent variable such as “Low”, “Medium”, or “High”. &lt;/li&gt;
&lt;li&gt;Here to we use the softmax function as the activation &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But before you put your data through, logistic regression comes with a few ground rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Independent Observations&lt;/strong&gt; : Each data point should stand on its own. Think of them like coworkers at a virtual meeting, no side chats or shared secrets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Binary Dependent Variable&lt;/strong&gt; : The outcome should be binary (0 or 1). If your target variable has more than two classes (say, cat/dog/hamster), it’s time to invite the &lt;strong&gt;softmax function&lt;/strong&gt; to the party.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linearity of Log Odds&lt;/strong&gt; : There must be a &lt;strong&gt;linear relationship between the independent variables and the log-odds&lt;/strong&gt; of the dependent variable. In plain English, the predictors should line up nicely when mapped to the odds of your outcome, not too wild, not too weird.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Outliers, Please&lt;/strong&gt; : Logistic regression is a bit of a neat freak. Outliers can throw off the model’s mojo, so make sure your dataset is clean and well-behaved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Go Big or Go Home&lt;/strong&gt; : A &lt;strong&gt;large sample size&lt;/strong&gt; is key. With more data, the model learns better and performs more reliably. Small datasets can lead to shaky predictions and models that get cold feet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If &lt;a href="https://mlaiinsightshub.blog/linear-regression-beginners-guide/" rel="noopener noreferrer"&gt;linear regression&lt;/a&gt; is the friendly neighborhood line of best fit, then &lt;strong&gt;logistic regression&lt;/strong&gt; is its more decisive cousin who only deals in black and white or rather, &lt;strong&gt;zeros and ones&lt;/strong&gt;. At the heart of logistic regression lies the &lt;strong&gt;&lt;a href="https://mlaiinsightshub.blog/activation-functions-explained-for-beginners/" rel="noopener noreferrer"&gt;sigmoid activation function&lt;/a&gt;&lt;/strong&gt;, a smooth, S-shaped curve that takes your wild, wandering predictions and gently nudges them into binary clarity.&lt;/p&gt;

&lt;p&gt;Unlike linear regression, which aims to predict continuous values by fitting a straight line through your data, &lt;strong&gt;binomial logistic regression&lt;/strong&gt; is in the business of classification. It’s here to answer yes/no questions like: “Will this email be spam?” or “Is this customer likely to churn?” Instead of fitting a line, we’re fitting probabilities bounded between 0 and 1. You could say it’s regression with commitment issues it never promises more than 1.&lt;/p&gt;

&lt;p&gt;consider a medical issue Suppose there is a person, with a blood sugar level of 195, and you do not know whether that person has diabetes or not. What would you do then? Would you classify him/her as a diabetic or as a non-diabetic?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mnyho7mhay8a14bi1en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mnyho7mhay8a14bi1en.png" alt="Step-function decision boundary at a blood sugar level of 200, with red and blue markers" width="800" height="664"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;It features a hard threshold decision boundary at a blood sugar level of 200, with clear red and blue markers and a step function line.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;based on the boundary, you may be tempted to declare this person a diabetic, but can you really do that? This person’s sugar level (195 mg/dL) is very close to the threshold (200 mg/dL), below which people are declared as non-diabetic. It is, therefore, quite possible that this person was just a non-diabetic with a slightly high blood sugar level. After all, the data does have people with slightly high sugar levels (220 mg/dL), who are not diabetics. using a  &lt;strong&gt;simple boundary decision method&lt;/strong&gt;  would not work in this case.&lt;/p&gt;

&lt;p&gt;Sigmoid activation fuction&lt;/p&gt;

&lt;p&gt;this a mathamticall fuction which maps the predicted value to a probabilities&lt;/p&gt;

&lt;p&gt;this fuction maps any real value into another value between 0 &amp;amp; 1 this forms a S curve&lt;/p&gt;

&lt;p&gt;in the logistic regression we use the concept of the threshold value whihc defins the probability of either 0 or 1 and value that&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7k0mzqe11a85g0cnz49b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7k0mzqe11a85g0cnz49b.png" alt="Sigmoid curve of diabetes probability against blood sugar level, centered at 200" width="800" height="664"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Plot with a sigmoid curve, which smoothly models the probability of diabetes based on blood sugar level. The curve is centered at 200, showing a gradual transition from 0 to 1 instead of a sharp threshold.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;the logistic regression considers the probility of the output. now considering the probility the equation for logistic regression:&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3DP%2528x%2529%2B%253D%2B%255Cfrac%257B1%257D%257B1%2B%252B%2Be%255E%257B-%2528%255Cbeta_0%2B%252B%2B%255Cbeta_1%2Bx%2529%257D%257D%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="P(x) = \frac{1}{1 + e^{-(\beta_0 + \beta_1 x)}}" width="132" height="23"&gt;
&lt;/h4&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3DP%2528x%2529%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="P(x)" width="33" height="17"&gt; : Probability of the outcome (e.g., having diabetes) given the input &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3Dx%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="x" width="9" height="8"&gt; (e.g., blood sugar level)&lt;/li&gt;
&lt;li&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_0" width="15" height="16"&gt; : Intercept term&lt;/li&gt;
&lt;li&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_1" width="14" height="16"&gt;​ : Coefficient (slope) for the predictor &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3Dx%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="x" width="9" height="8"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3De%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="e" width="7" height="8"&gt; : Base of the natural logarithm&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;the best fitting combination of &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_0" width="15" height="16"&gt;&lt;/a&gt; &amp;amp; &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_1" width="14" height="16"&gt;&lt;/a&gt; will be the one which maxixmizes the product mentioend below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%25281%2B-%2BP_1%2529%25281%2B-%2BP_2%2529%25281%2B-%2BP_3%2529%25281%2B-%2BP_4%2529%25281%2B-%2BP_6%2529%2B%255Ccdot%2BP_5%2BP_7%2BP_8%2BP_9%2BP_%257B10%257D%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%25281%2B-%2BP_1%2529%25281%2B-%2BP_2%2529%25281%2B-%2BP_3%2529%25281%2B-%2BP_4%2529%25281%2B-%2BP_6%2529%2B%255Ccdot%2BP_5%2BP_7%2BP_8%2BP_9%2BP_%257B10%257D%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="(1 - P_1)(1 - P_2)(1 - P_3)(1 - P_4)(1 - P_6) \cdot P_5 P_7 P_8 P_9 P_{10}" width="392" height="17"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkqm6fer0eqa6hffi4pvr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkqm6fer0eqa6hffi4pvr.png" alt="Sigmoid curve showing diabetes probability by blood sugar level" width="800" height="664"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;A sigmoid curve showing diabetes probability based on blood sugar level.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;the equation is called the likeliy hood function&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cleft%255B%2B%255Cprod_%257Bi%2B%255Cin%2B%255Ctext%257Bnon-diabetics%257D%257D%2B%25281%2B-%2BP_i%2529%2B%255Cright%255D%2B%255Ccdot%2B%255Cleft%255B%2B%255Cprod_%257Bi%2B%255Cin%2B%255Ctext%257Bdiabetics%257D%257D%2BP_i%2B%255Cright%255D%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cleft%255B%2B%255Cprod_%257Bi%2B%255Cin%2B%255Ctext%257Bnon-diabetics%257D%257D%2B%25281%2B-%2BP_i%2529%2B%255Cright%255D%2B%255Ccdot%2B%255Cleft%255B%2B%255Cprod_%257Bi%2B%255Cin%2B%255Ctext%257Bdiabetics%257D%257D%2BP_i%2B%255Cright%255D%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\left[\prod_{i \in \text{non-diabetics}} (1 - P_i) \right] \cdot \left[\prod_{i \in \text{diabetics}} P_i \right] " width="278" height="20"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;by trying different values of  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_0" width="15" height="16"&gt;&lt;/a&gt; and  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_1" width="14" height="16"&gt;&lt;/a&gt;, you can manipulate the shape of the sigmoid curve. At some combination of  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_0" width="15" height="16"&gt;&lt;/a&gt; and  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_1" width="14" height="16"&gt;&lt;/a&gt;, the ‘likelihood’ will be maximised.&lt;/p&gt;

&lt;p&gt;find the optimal values of  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_0%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_0" width="15" height="16"&gt;&lt;/a&gt; and  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fs0.wp.com%2Flatex.php%3Flatex%3D%255Cbeta_1%2B%26bg%3Dffffff%26fg%3D000%26s%3D0%26c%3D20201002" alt="\beta_1" width="14" height="16"&gt;&lt;/a&gt; such that the likelihood function is maximized? The optimisation methods used to do that are maximum likelihood estimation, or MLE&lt;/p&gt;

&lt;p&gt;Related guides you may like&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://mlaiinsightshub.blog/linear-regression-beginners-guide/" rel="noopener noreferrer"&gt;Linear Regression Explained: A Beginner’s Guide to Prediction&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mlaiinsightshub.blog/regularization-prevents-overfitting-machine-learning/" rel="noopener noreferrer"&gt;How Regularization Prevents Overfitting in ML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mlaiinsightshub.blog/linear-regression-hyperparameter-tuning-guide/" rel="noopener noreferrer"&gt;Linear Regression and Hyperparameter Tuning: Complete Guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  💬 Over to you
&lt;/h2&gt;

&lt;p&gt;Have you used logistic regression on a real project, or did you jump straight to tree models? What was the trickiest part to get your head around: the sigmoid, log-odds or maximum likelihood?&lt;/p&gt;

&lt;p&gt;If this helped, &lt;strong&gt;hit ❤️ and follow&lt;/strong&gt; for more plain-English ML and engineering guides. New posts go out every Tuesday and Friday, and this one is part of the &lt;strong&gt;Machine Learning Basics&lt;/strong&gt; series.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://mlaiinsightshub.blog/how-logistic-regression-works-guide/" rel="noopener noreferrer"&gt;ML AI Insights Hub&lt;/a&gt;. Find more plain-English ML guides, worked engineering examples and free Python/Excel calculators at &lt;a href="https://mlaiinsightshub.blog" rel="noopener noreferrer"&gt;mlaiinsightshub.blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>python</category>
      <category>datascience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Hi DEV 👋 I'm Anish: a Mechanical Engineer Explaining ML &amp; AI in Plain English</title>
      <dc:creator>Anish Rane</dc:creator>
      <pubDate>Mon, 05 Oct 2026 03:45:00 +0000</pubDate>
      <link>https://dev.to/mlaiinsightshub/hi-dev-im-anish-a-mechanical-engineer-explaining-ml-ai-in-plain-english-15hd</link>
      <guid>https://dev.to/mlaiinsightshub/hi-dev-im-anish-a-mechanical-engineer-explaining-ml-ai-in-plain-english-15hd</guid>
      <description>&lt;p&gt;Hi DEV community! I'm &lt;strong&gt;Anish Rane&lt;/strong&gt;, a mechanical engineer from India who moved into machine learning. I recently finished an &lt;strong&gt;MSc in Machine Learning &amp;amp; AI&lt;/strong&gt; at Liverpool John Moores University.&lt;/p&gt;

&lt;p&gt;I started writing because most ML tutorials either drown you in maths or skip the &lt;em&gt;why&lt;/em&gt;. I write the guides I wish I'd had when I switched from engineering to AI: plain English, worked examples, and code you can actually run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you'll find here
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;🧠 Machine Learning Basics:&lt;/strong&gt; linear and logistic regression, regularization, activation functions. Each one is explained from first principles and comes with Python/scikit-learn examples.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🤖 Fine-Tuning LLMs:&lt;/strong&gt; how to choose a base model, and when to use LoRA, QLoRA, prompt-tuning or RLHF, depending on your hardware and data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚙️ Powertrain Engineering:&lt;/strong&gt; how diesel engines and epicyclic gears work, and why duty cycles decide engine life. This is classic mechanical engineering, with a data-driven angle.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who it's for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Students and early-career engineers getting into ML&lt;/li&gt;
&lt;li&gt;Mechanical/automotive engineers curious about AI&lt;/li&gt;
&lt;li&gt;Anyone who wants the intuition before the equations&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Free tools
&lt;/h2&gt;

&lt;p&gt;I also build &lt;strong&gt;free Python and Excel engineering calculators&lt;/strong&gt;. You can find them, along with every guide, at 👉 &lt;a href="https://mlaiinsightshub.blog" rel="noopener noreferrer"&gt;mlaiinsightshub.blog&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's connect
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🌐 Portfolio: &lt;a href="https://anishrane-cox.github.io/Portfolio/" rel="noopener noreferrer"&gt;anishrane-cox.github.io/Portfolio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💻 GitHub: &lt;a href="https://github.com/AnishRane-cox" rel="noopener noreferrer"&gt;github.com/AnishRane-cox&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🦋 Bluesky: &lt;a href="https://bsky.app/profile/mlaiinsightshub.bsky.social" rel="noopener noreferrer"&gt;@mlaiinsightshub.bsky.social&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;New posts go out every &lt;strong&gt;Tuesday and Friday&lt;/strong&gt;. Follow along, and tell me in the comments: &lt;strong&gt;what ML or engineering topic should I explain next?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>introduction</category>
      <category>machinelearning</category>
      <category>engineering</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
