Close Menu
AI News TodayAI News Today

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    GOP heads to Supreme Court after losing case over TV election ad prices

    Bluesky adds an ‘algorithmic opt-out’ feature for those who don’t want to go viral

    AI Agents Are Hacking Systems. Could That Push the US and China to Cooperate?

    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    Facebook X (Twitter) Instagram Pinterest Vimeo
    AI News TodayAI News Today
    • Home
    • AI News
    • AI Reviews
    • AI Tools
    • AI Tutorials
    • Chatbots
    • Free AI Tools
    • Artificial Intelligence
    AI News TodayAI News Today
    Home»AI Tools»The Sigmoid Function: From ‘e’ to Neural Networks
    AI Tools

    The Sigmoid Function: From ‘e’ to Neural Networks

    By No Comments14 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    The Sigmoid Function: From 'e' to Neural Networks
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Welcome back!

    We recently discussed backpropagation, and I hope you now have an idea of what backpropagation is and how it actually works.

    Let’s continue the deep learning journey.

    Even though we apply the backpropagation algorithm to a neural network, we still have some problems, and vanishing gradients is one of them.

    While I was learning about vanishing gradients, I came across the sigmoid function.

    We all know that it is used in logistic regression, where we apply the sigmoid function to a value to obtain an output between 0 and 1.

    Now, here in neural networks, it can be used as an activation function.

    What I know about sigmoid is the equation we have and its usage in logistic regression and neural networks.

    I was curious about how we get this equation and the story behind it.

    In this blog, let’s see how we get to the sigmoid equation.

    By the way, if you haven’t read Part 3 of the backpropagation series, you can read it here.

    ···

    How Do We Actually Use Sigmoid?

    We already know the equation of the sigmoid function.

    σ(x)=11+e−xsigma(x) = frac{1}{1 + e^{-x}}σ(x)=1+e−x1​

    Before we proceed, let’s see how we use it in logistic regression.

    For example, we want to predict whether a student will pass or fail based on the number of hours they studied.

    We are using the logistic regression model here.

    First, it calculates a score

    Let’s say the score for a student is:

    This score is not a probability.

    It is just the linear combination of parameters.

    Now we pass it through the sigmoid function:

    σ(z)=11+e−zsigma(z) = frac{1}{1 + e^{-z}}σ(z)=1+e−z1​

    we get,

    σ(2)=11+e−2≈0.88sigma(2) = frac{1}{1 + e^{-2}} approx 0.88σ(2)=1+e−21​≈0.88

    The sigmoid function always produces an output between 0 and 1.

    Here the output is approximately 0.88 or 88%.

    In logistic regression, this can be interpreted as an 88% probability of the student passing the exam.

    We can then use a threshold, such as 0.5, to make the final classification.

    In short, the flow can be like

    Score→Sigmoid→Probability→Classtext{Score} rightarrow text{Sigmoid} rightarrow text{Probability} rightarrow text{Class}Score→Sigmoid→Probability→Class

    That’s how we commonly use the sigmoid function in logistic regression.


    But What Is This “e”?

    Now, let’s once again look at the sigmoid equation.

    σ(z)=11+e−zsigma(z) = frac{1}{1 + e^{-z}}σ(z)=1+e−z1​

    The first thing we notice is the e.

    We know that it is a mathematical constant and its value is

    e≈2.71828e approx 2.71828e≈2.71828

    But what exactly is ‘e’?

    Why is this number present in the sigmoid equation?

    Let’s take a step back and understand where this number comes from.

    One thing is that here we are not trying to discover ‘e’, but the goal is to understand the significance of ‘e’ and see where it naturally appears.

    Now let’s go to the bank and see what we can observe.


    Let’s Start with a Simple Bank Example

    Imagine we deposited Rs.100 into a bank account.

    Let’s say the bank is giving us a 100% annual interest rate.

    If the bank adds the entire year’s interest at the end of the year, we earn Rs.100 in interest.

    So after one year, we have

    100+100=200100 + 100 = 200100+100=200

    We can also write it as

    100(1+1)=200100(1 + 1) = 200100(1+1)=200

    Rs.100 became Rs.200 after one year.

    But now let’s change one thing.

    What if the bank doesn’t wait until the end of the year to add the interest?

    What if it adds the interest twice a year?

    The annual interest rate is still 100%.

    But now the year is divided into two periods.

    So for each six-month period we get half of the annual interest rate:

    12=0.5=50%frac{1}{2} = 0.5 = 50%21​=0.5=50%

    During the first six months, we get

    100(1+12)=150100left(1 + frac{1}{2}right) = 150100(1+21​)=150

    After six months, we have Rs.150.

    During the next six months, the interest is calculated on this new amount

    150(1+12)=225150left(1 + frac{1}{2}right) = 225150(1+21​)=225

    Then we have

    100(1+12)2=225100left(1 + frac{1}{2}right)^2 = 225100(1+21​)2=225

    Why did we get Rs.225 instead of Rs.200?

    Because the interest earned during the first six months also earned interest during the second six months.

    In simple terms we can say

    ‘interest earns interest’

    This is the basic idea behind compound interest.

    What Happens When We Compound More Frequently?

    Now let’s make the compounding more frequent.

    If we compound four times a year:

    100(1+14)4≈244.14100left(1 + frac{1}{4}right)^4 approx 244.14100(1+41​)4≈244.14

    If we compound 12 times a year:

    100(1+112)12≈261.30100left(1 + frac{1}{12}right)^{12} approx 261.30100(1+121​)12≈261.30

    If we compound every day:

    100(1+1365)365≈271.46100left(1 + frac{1}{365}right)^{365} approx 271.46100(1+3651​)365≈271.46

    Observe the pattern.

    As we increase the number of compounding periods, the final amount keeps increasing.

    The reason is that growth is being applied repeatedly to an amount that has already increased.

    Where Does e Come From?

    The Rs.100 is not the important part here.

    Let’s remove it and look at the growth factor:

    (1+1n)nleft(1 + frac{1}{n}right)^n(1+n1​)n

    Here, ‘n’ represents the number of times we compound during the year.

    For example:

    (1+11)1=2left(1 + frac{1}{1}right)^1 = 2(1+11​)1=2
    (1+12)2=2.25left(1 + frac{1}{2}right)^2 = 2.25(1+21​)2=2.25
    (1+14)4≈2.4414left(1 + frac{1}{4}right)^4 approx 2.4414(1+41​)4≈2.4414
    (1+112)12≈2.613left(1 + frac{1}{12}right)^{12} approx 2.613(1+121​)12≈2.613
    (1+1365)365≈2.7146left(1 + frac{1}{365}right)^{365} approx 2.7146(1+3651​)365≈2.7146

    As we make the compounding more and more frequent, the value gets closer and closer to

    2.71828…2.71828ldots2.71828…

    This number is called ‘e’

    e≈2.71828e approx 2.71828e≈2.71828

    Mathematically, we can express this idea using a limit

    e=lim⁡n→∞(1+1n)ne = lim_{n rightarrow infty} left(1 + frac{1}{n}right)^ne=n→∞lim​(1+n1​)n

    The notation may look complex, but the idea is simple.

    Here, we are asking:

    “What value does this expression approach as ‘n’ becomes larger and larger?”

    As ‘n’ increases:

    (1+1n)nleft(1 + frac{1}{n}right)^n(1+n1​)n

    gets closer and closer to:

    2.71828…2.71828ldots2.71828…

    That limiting value is ‘e’.


    So, What Does the Bank Have to Do with Sigmoid?

    But why are we talking about this and what does this bank account have to do with sigmoid.

    This example isn’t to explain compound interest, but it gives us an intuition for where ‘e’ naturally appears.

    The important idea here is repeated growth.

    When growth is repeatedly applied to an amount that has already grown, we get a compounding process.

    And when that process happens again and again more frequently, the number ‘e’ naturally appears.

    So instead of simply memorizing that

    e≈2.71828e approx 2.71828e≈2.71828

    we now have some intuition behind it.


    The Special Property of e

    From the bank example, we observed that ‘e’ naturally appears when we look at repeated growth and continuous compounding.

    But ‘e’ is more than just a number that appears in compound interest.

    It has a very special property when we look at it through calculus.

    Let’s consider the exponential function

    If we differentiate this function, we get

    dydx=exfrac{dy}{dx}=e^xdxdy​=ex

    This formula we already know.

    But what does the derivative tell us?

    We already know that it tells us the rate of change of a function.

    For example, if we have

    its derivative is

    dydx=2xfrac{dy}{dx}=2xdxdy​=2x

    This means that the rate at which x2 changes depends on the value of x.

    At x=1:

    dydx=2(1)=2frac{dy}{dx}=2(1)=2dxdy​=2(1)=2

    At x=3:

    dydx=2(3)=6frac{dy}{dx}=2(3)=6dxdy​=2(3)=6

    So, for x2, the function and its rate of change are different.

    Now let’s look at ex.

    For

    we have

    dydx=exfrac{dy}{dx}=e^xdxdy​=ex

    This means that the rate of change of ex is equal to its current value.

    Let’s look at some values.

    When x=0

    and

    dydx=1frac{dy}{dx}=1dxdy​=1

    When x=1

    e1≈2.718e^1approx2.718e1≈2.718

    and

    dydx≈2.718frac{dy}{dx}approx2.718dxdy​≈2.718

    When x=2

    e2≈7.389e^2approx7.389e2≈7.389

    and

    dydx≈7.389frac{dy}{dx}approx7.389dxdy​≈7.389

    So, here we can say that

    Rate of change = Current value

    This is one of the most important properties of the exponential function with base e.


    Why Is the Derivative of ex Equal to ex?

    We now have an idea of an important property of ‘e’ in calculus.

    ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

    We just discussed what it is but let’s see why does this happen?

    If you already know why

    ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

    then use this section for quick revision as we connect it back to the sigmoid function.

    Starting with a General Exponential

    First let’s consider a general exponential function.

    Here, z is the base and x is the exponent.

    2x,3x,5x,10x2^x,qquad 3^x,qquad 5^x,qquad 10^x2x,3x,5x,10x

    are all examples of this form.

    Now let’s see what happens when we differentiate zx

    We have,

    dydx=lim⁡h→0zx+h−zxhfrac{dy}{dx} = lim_{hto0} frac{z^{x+h}-z^x}{h}dxdy​=h→0lim​hzx+h−zx​

    Using the exponent rule we get

    zx+h=zxzhz^{x+h}=z^xz^hzx+h=zxzh

    Therefore

    dydx=lim⁡h→0zxzh−zxhfrac{dy}{dx} = lim_{hto0} frac{z^xz^h-z^x}{h}dxdy​=h→0lim​hzxzh−zx​

    Now notice that zx appears in both terms in the numerator.

    We can factor it out

    dydx=lim⁡h→0zxzh−1hfrac{dy}{dx} = lim_{hto0} z^xfrac{z^h-1}{h}dxdy​=h→0lim​zxhzh−1​

    Here zx does not depend on h, so we can take it outside the limit

    dydx=zxlim⁡h→0zh−1hfrac{dy}{dx} = z^x lim_{hto0} frac{z^h-1}{h}dxdy​=zxh→0lim​hzh−1​

    And this is where things get interesting.

    Our result is

    dydx=zxlim⁡h→0zh−1hfrac{dy}{dx} = z^x lim_{hto0} frac{z^h-1}{h}dxdy​=zxh→0lim​hzh−1​

    Look at the two parts separately.

    The first part is

    That is our original exponential function.

    The second part is

    lim⁡h→0zh−1hlim_{hto0} frac{z^h-1}{h}h→0lim​hzh−1​

    We can see that there is no ‘x’ in this expression.

    It depends on the base ‘z’, but not on ‘x’.

    This means, for any value of ‘z’, this entire limit is just a constant.

    Let’s call this constant ‘C’.

    C=lim⁡h→0zh−1hC= lim_{hto0} frac{z^h-1}{h}C=h→0lim​hzh−1​

    Therefore we can write it as,

    ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

    This tells us something important.

    When we differentiate an exponential function, we get the original exponential function, multiplied by a constant.

    In other way,

    Derivative of zx=constant×zxtext{Derivative of }z^x = text{constant}times z^xDerivative of zx=constant×zx

    The Constant Depends on the Base

    Now let’s take an example of exponential function:

    From our result, we have

    ddx3x=C3xfrac{d}{dx}3^x=C3^xdxd​3x=C3x

    For z=3, the constant is

    C=lim⁡h→03h−1hC= lim_{hto0} frac{3^h-1}{h}C=h→0lim​h3h−1​

    Now we need to find the value of this limit.

    Let’s understand this in intuitive way.

    For the base 3, the value of the constant is approximately

    C≈1.0986Capprox1.0986C≈1.0986

    Therefore,

    ddx3x≈1.0986(3x)frac{d}{dx}3^x approx 1.0986(3^x)dxd​3x≈1.0986(3x)

    Let’s see what this tells us by using at different ‘x’ values.

    When

    we have

    the rate of change here is approximately

    1.0986(1)=1.09861.0986(1)=1.09861.0986(1)=1.0986

    When

    we get

    The rate of change is

    1.0986(3)≈3.29581.0986(3)approx3.29581.0986(3)≈3.2958

    And when

    we have

    The rate of change is approximately

    1.0986(9)≈9.88741.0986(9)approx9.88741.0986(9)≈9.8874

    We can see that the derivative is not exactly equal to 3x.

    Instead, we got

    ddx3x≈1.0986(3x)frac{d}{dx}3^x approx 1.0986(3^x)dxd​3x≈1.0986(3x)

    The function and its rate of change have the same exponential shape, but the rate of change is scaled by a constant.


    Finding the Special Base

    Now, we know that

    ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

    The value of ‘C’ depended on the base.

    For 3x,

    C≈1.0986Capprox1.0986C≈1.0986

    Ok but what if we could find a base for which C is exactly 1?

    Do we have any number?

    If yes, then we get

    Our derivative would become

    ddxzx=zxfrac{d}{dx}z^x=z^xdxd​zx=zx

    In other words, we can say that the function would be exactly equal to its own derivative.

    So, now we are looking for a base z that satisfies

    lim⁡h→0zh−1h=1lim_{hto0} frac{z^h-1}{h}=1h→0lim​hzh−1​=1

    There is one particular positive number that satisfies this condition and you all know what’s that number is.

    We call this number

    and its numerical value is

    e≈2.71828eapprox2.71828e≈2.71828

    For this particular base, the constant becomes

    Therefore,

    ddxex=1⋅exfrac{d}{dx}e^x = 1cdot e^xdxd​ex=1⋅ex

    which gives us

    ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

    ···

    So What Did We Actually Discover?

    We started with a general exponential function

    Using the definition of a derivative, we found

    ddxzx=zxlim⁡h→0zh−1hfrac{d}{dx}z^x = z^x lim_{hto0} frac{z^h-1}{h}dxd​zx=zxh→0lim​hzh−1​

    We then observed that the limit is simply a constant that depends on the base.

    Then we have written it as

    ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

    Then we asked:

    Is there a base for which C=1?

    The answer is yes.

    That special base is e.

    Therefore,

    ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

    Now we have an idea of how we got the derivative.


    In the earlier bank example, ‘e’ appeared through repeated growth and continuous compounding.

    Now, through calculus, we have seen another special property of the same number

    ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

    In simple words, we can say that ex grows at a rate equal to its current value.


    Now, Let’s Return to Sigmoid

    Let’s once again look at the sigmoid equation.

    σ(x)=11+e−xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+e−x1​

    Now we have some idea of what ‘e’ actually is.

    Now we focus on the whole equation.

    The question here is why does the sigmoid function is in this particular form?

    To understand this we should go back to logistic regression.

    We started with a raw score

    ‘z’ can be any real number.

    But for classification, we wanted to interpret the model’s output as a probability.

    A probability must lie between 0 and 1

    0<p<1

    So we want to transform any value of ‘z’ into a value between 0 and 1.

    In other words, we want something that can receive

    z∈(−∞,∞)zin(-infty,infty)z∈(−∞,∞)

    and produce:

    p∈(0,1)pin(0,1)p∈(0,1)

    Building a Function That Outputs Between 0 and 1

    Now, the task is to construct such transformation.

    But how can we do that?

    Let’s start with a very simple observation.

    Suppose we have a number greater than 1.

    For example

    If we take its reciprocal, we get

    15=0.2frac{1}{5}=0.251​=0.2

    which is between 0 and 1.

    The same idea works for any numbers greater than 1

    12=0.5frac{1}{2}=0.521​=0.5
    110=0.1frac{1}{10}=0.1101​=0.1
    1100=0.01frac{1}{100}=0.011001​=0.01

    Here we can notice that

    If

    then

    0<1A<10 < frac{1}{A} < 10<A1​<1

    This gives us a simple idea.

    If we can have a quantity that is always greater than 1, then taking its reciprocal will automatically give us a value between 0 and 1.

    And that is exactly the range we want for a probability.

    However, there is one more thing we need.

    We do not want to use a fixed number such as 5 in the denominator.

    because that always give us the same output.

    Our output should change when the input ‘x’ changes.

    For example, we want a positive input to produce a larger probability, while a negative input should produce a smaller probability.

    So, we need a quantity that changes with x.

    Now e Enters the Picture

    You are right. It’s time for ‘e’ to enter.

    This is where the exponential function we just learned about becomes useful.

    Exponential functions are always positive, which means

    for every real value of x.

    For example:

    e−2≈0.1353e^{-2}approx0.1353e−2≈0.1353
    e2≈7.389e^2approx7.389e2≈7.389

    Whether the x is negative, zero, or positive, ex never becomes negative or zero.

    But the sigmoid equation contains e-x.

    Till here we only discussed about ex.

    So let’s first see what a negative exponent means.

    We already know what a positive exponent means.

    For example:

    e2=e×ee^2=etimes ee2=e×e

    and:

    e3=e×e×ee^3=etimes etimes ee3=e×e×e

    A negative exponent represents the reciprocal of the corresponding positive exponent.

    For example:

    e−1=1ee^{-1}=frac{1}{e}e−1=e1​

    Similarly

    e−2=1e2e^{-2}=frac{1}{e^2}e−2=e21​

    and

    e−3=1e3e^{-3}=frac{1}{e^3}e−3=e31​

    In general, we can write as

    e−x=1exe^{-x}=frac{1}{e^x}e−x=ex1​

    So, e-x is not a completely different function.

    It is simply the reciprocal of ex.

    Now we can use what we already know about ex.

    Since:

    its reciprocal is also positive

    1ex>0frac{1}{e^x}>0ex1​>0

    and because

    e−x=1exe^{-x}=frac{1}{e^x}e−x=ex1​

    we get

    for every real value of x.

    This is important because it gives us exactly the kind of quantity we need.

    If e-x is always positive, then adding 1 gives us a quantity that is always greater than 1

    1+e−x>11+e^{-x}>11+e−x>1

    And now we can use our reciprocal idea.

    If a number is greater than 1, its reciprocal lies between 0 and 1

    0<11+e−x<10<frac{1}{1+e^{-x}}<10<1+e−x1​<1

    Now we have a function whose output is always between 0 and 1.

    The expression we just got is

    11+e−xfrac{1}{1+e^{-x}}1+e−x1​

    and this is exactly the sigmoid function we started with

    σ(x)=11+e−xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+e−x1​

    So instead of looking at the sigmoid equation as a formula, now we can understand the intuition behind its structure.

    We wanted the output to lie between 0 and 1.

    We observed that the reciprocal of a number greater than 1 lies between 0 and 1.

    As e-x is always positive, we used it to construct a quantity greater than 1

    1+e−x>11+e^{-x}>11+e−x>1

    Taking its reciprocal gave us

    σ(x)=11+e−xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+e−x1​

    This gave us the range we wanted.

    But does this equation actually behave the way we expected it to do?

    Here, our goal is to understand the intuition behind the structure of the sigmoid function.

    There are other functions that can map values to the range 0 to 1, and why logistic regression uses sigmoid is related to odds and log-odds, a topic which we will explore in future blogs.


    Does the Sigmoid Behave the Way We Expected?

    Let’s test on few values.

    First, let’s consider

    Substituting into the sigmoid function:

    σ(0)=11+e−0sigma(0)=frac{1}{1+e^{-0}}σ(0)=1+e−01​

    as

    we get

    σ(0)=11+1=0.5sigma(0)=frac{1}{1+1}=0.5σ(0)=1+11​=0.5

    When the input is 0, the sigmoid gives us exactly 0.5.

    Now let’s take a positive number

    then

    σ(2)=11+e−2sigma(2)=frac{1}{1+e^{-2}}σ(2)=1+e−21​

    We already seen

    e−2≈0.1353e^{-2}approx0.1353e−2≈0.1353

    which gives

    σ(2)=11+0.1353=11.1353≈0.881sigma(2) = frac{1}{1+0.1353} = frac{1}{1.1353} approx 0.881σ(2)=1+0.13531​=1.13531​≈0.881

    The sigmoid converted the input 2 into approximately 0.881 or 88.1%.

    Now let’s see what happens when the input is a negative number.

    Consider

    Then

    σ(−2)=11+e−(−2)sigma(-2) = frac{1}{1+e^{-(-2)}}σ(−2)=1+e−(−2)1​
    σ(−2)=11+e2sigma(-2) = frac{1}{1+e^2}σ(−2)=1+e21​

    We know

    e2≈7.389e^2approx7.389e2≈7.389

    Finally we get

    σ(−2)=11+7.389=18.389≈0.119begin{aligned} sigma(-2) &=frac{1}{1+7.389}\ &=frac{1}{8.389}\ &approx0.119 end{aligned}σ(−2)​=1+7.3891​=8.3891​≈0.119​

    So the sigmoid converted the input -2 into approximately 0.119 or 11.9%.

    Now we can see how the sigmoid behaves.

    For a negative input:

    x=−2⟶σ(x)≈0.119x=-2 quadlongrightarrowquad sigma(x)approx0.119x=−2⟶σ(x)≈0.119

    For zero:

    x=0⟶σ(x)=0.5x=0 quadlongrightarrowquad sigma(x)=0.5x=0⟶σ(x)=0.5

    For a positive input:

    x=2⟶σ(x)≈0.881x=2 quadlongrightarrowquad sigma(x)approx0.881x=2⟶σ(x)≈0.881

    So as x increases, the sigmoid output moves from values close to 0, passes through 0.5 and moves toward 1.

    In the extreme cases:

    x→−∞⟹σ(x)→0xrightarrow-infty quadLongrightarrowquad sigma(x)rightarrow0x→−∞⟹σ(x)→0

    and

    x→+∞⟹σ(x)→1xrightarrow+infty quadLongrightarrowquad sigma(x)rightarrow1x→+∞⟹σ(x)→1

    This is exactly the behavior we wanted from a function that transforms any real number into something between 0 and 1.

    Image by Author

    Now we have an idea of how we got the equation of the sigmoid function.

    If you remember, in my recent blogs, when we discussed backpropagation and neural networks in general, we talked about activation functions and why they are important.

    We used the ReLU activation function to understand those concepts.

    Now, we can also use sigmoid as an activation function.

    But if we use sigmoid as an activation function, there is one more thing we need to know.

    During the backward pass, we already know that the network calculates gradients using derivatives.

    So, if sigmoid is part of the network, we need to differentiate it as well.

    Now let’s focus only on deriving the derivative of the sigmoid function step by step.

    σ(x)=11+e−xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+e−x1​

    Instead of carrying the exponential term throughout calculations, we can simply use the sigmoid output itself.

    This is the derivative we use whenever sigmoid appears in the gradient calculations of a neural network.

    ···

    Summary

    In the upcoming blogs, we are going to discuss topics like vanishing gradients and exploding gradients.

    As we explore these topics, we will come across the sigmoid function, and we will also need its derivative.

    If we derive the sigmoid function and its derivative in those blogs, the discussion could become long, and we may lose focus on the actual concept that we are trying to understand.

    It would also be better to have an idea of where the sigmoid function and its derivative come from before using them in further concepts.

    We first started with the bank example to see how e appears. We then learned about its important property in calculus and, using these ideas, gradually built the sigmoid equation.

    We saw how this equation is used in logistic regression and neural networks, and we also derived its derivative.

    Now, when we move on to the upcoming topics, we already have this foundation which will be useful for us.


    I hope you found this blog helpful in understanding a concept that we frequently use.

    If you have any questions or suggestions for improvement, feel free to share them in the comments on LinkedIn.

    And if you haven’t read my latest blog series on backpropagation yet, you can read it here.

    Sometimes, moving forward means going back and understanding the basics.

    Thanks for reading!

    ···

    Function Networks Neural Sigmoid
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleOpenAI, Anthropic, Google, and 100 other companies call for action to defend against rogue AI
    Next Article This Is How Anthropic Thinks AI Agents Should Navigate the Physical World
    • Website

    Related Posts

    AI Tools

    I Trained Six Models for Fraud Detection, and the Best One Isn’t in Production

    AI Tools

    AI Tools: What Works, What Doesn’t, and What to Build Yourself

    AI Tools

    Agentic AI Is Rewriting The Analytics Stack But There’s One Skill It Still Can’t Touch

    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    GOP heads to Supreme Court after losing case over TV election ad prices

    0 Views

    Bluesky adds an ‘algorithmic opt-out’ feature for those who don’t want to go viral

    0 Views

    AI Agents Are Hacking Systems. Could That Push the US and China to Cooperate?

    0 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews
    AI Tutorials

    Quantization from the ground up

    AI Tools

    David Sacks is done as AI czar — here’s what he’s doing instead

    AI Reviews

    Judge sides with Anthropic to temporarily block the Pentagon’s ban

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Most Popular

    GOP heads to Supreme Court after losing case over TV election ad prices

    0 Views

    Bluesky adds an ‘algorithmic opt-out’ feature for those who don’t want to go viral

    0 Views

    AI Agents Are Hacking Systems. Could That Push the US and China to Cooperate?

    0 Views
    Our Picks

    Quantization from the ground up

    David Sacks is done as AI czar — here’s what he’s doing instead

    Judge sides with Anthropic to temporarily block the Pentagon’s ban

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Contact Us
    • Terms & Conditions
    • Privacy Policy
    • Disclaimer

    © 2026 ainewstoday.co. All rights reserved. Designed by DD.

    Type above and press Enter to search. Press Esc to cancel.