Questions tagged [sigmoid-curve]

A sigmoid function is a mathematical function having a characteristic "S"-shaped curve or sigmoid curve. Often, sigmoid function refers to a special case of the logistic function. It is closely related to the logistic regression.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

How to linearize logistics function? [closed]

The function is $y=L/(1+e^{(-kx)} )$. After research I found this equation to linearize it, replace y values by this: $\ln(1/(y/(L-1)))$ , then keep x values the same and plot it. But with further ...
1BG's user avatar
  • 1
0 votes
0 answers
34 views

Logistic function with different asymptotic slopes

The asymptotic slope of both sides of a logistic/sigmoid function is zero. What would be the equation of a logistic function with a different asymptotic slope on each side? I'm trying to model data ...
Materio's user avatar
-1 votes
2 answers
78 views

Example where the initial random state of a logistic regression matters?

I am looking into how random initialisation of a model would impact final results after tuning. This is a well known problem for deep learning (NN or gbdt), notably with random initialisation and ...
Lucas Morin's user avatar
  • 1,544
4 votes
1 answer
113 views

What is a visual representation of an ordinal logistic fitted model

Naturally, the above image is a graphical representation of a sigmoid function fit for a logistic regression I'm trying to understand the equivalent of an ordered logit. Below is an image that, to the ...
bluegopher's user avatar
0 votes
0 answers
42 views

Does linear separability with gamma margin guarantee convergence of perceptron algorithm?

I am studying perceptron for the first time. I came across the assumption from online resources that if the data is linearly separable with gamma margin then the perceptron algorithm will converge. Is ...
Shri's user avatar
  • 1
1 vote
1 answer
90 views

Is there a way to stretch sigmoid function output

I have an array of values and a value that lies outside of array's max value: arr = [10, 15, 20, 30] value = 150 and I want to make that value less of an outlier, ...
Cyril's user avatar
  • 11
0 votes
0 answers
79 views

Statistic for assessing quality of dose response curve (fit with logistic regression)

I want to assess the quality of a 4-parameter logistic regression fit on dose response data. I am in the process of assessing the quality of some compound screening data. This is characterising the ...
LJMH's user avatar
  • 1
2 votes
0 answers
29 views

Influence of big values in hidden layers on the output value of the output layer

In the lab on Tensorflow classification, we are trying to predict wether a coffe is well roasted or badly. A 1 is good roasted and 0 is bad. The architecture is: Now we try to visualize the trained ...
Jacky02's user avatar
  • 53
1 vote
0 answers
76 views

Test of good fitting on a sigmoid [closed]

as you can see on the figure i linked i am currently fitting my data (which looks like a sigmoid) using a function i defined with 5 parameters. ...
luigi123456's user avatar
1 vote
1 answer
89 views

Do the # of weights (non-intercept coefficients) in logistic regression = # of features

A simple question that I just want to clarify for understanding: In logistic regression, if we have $n$ input features, will there therefore be $n$ weights used for classification, one for each ...
Carter Karl Falkenberg's user avatar
0 votes
0 answers
18 views

logistic regression graph - understanding data

I am trying to understand why my data is not showing a full S-curve? Is it because the predictor does not do a good job of predicting fellow = 1, or simply because there are few fellow = 1 that score ...
In_cognito's user avatar
2 votes
1 answer
176 views

GLM: Sigmoid link with MSE for linear regression?

I have a relatively simple regression problem where I wanted to model y given x. X is continuous and is bounded [0,inf); y is bounded (0,1). My question is, is it appropriate for me to insert a ...
jbuddy_13's user avatar
  • 2,501
1 vote
1 answer
153 views

Decision boundary in Logistic regression?

According to me in logistic regression, we just try to get a line (polynomial) and then based on which side the point is from that line the sigmoid gives ans>=0.5 or <0.5, which we then ...
varun's user avatar
  • 21
0 votes
0 answers
11 views

Simulate binary response ground-truth from real causes [duplicate]

In an attempt trying to understand logistic regression throughout, I want to generate simulated data in a way that corresponds the way the logistic regression finds out the classes. The idea is that I ...
Ilkka Porna's user avatar
1 vote
0 answers
298 views

Sigmoid function with parameter that controls length of approximate linearity [closed]

It is well known that many sigmoid functions are approximately linear around x=0. I am looking for a sigmoid function that has a parameter that controls the length of this segment. I want to measure ...
Jannis's user avatar
  • 318
1 vote
1 answer
45 views

Continuous variable (1-100 scale) logistic function fitting

I've been working with a dataset where there are judgments of brightness from 1-100 (1= less bright) for 5 different brightness categories. patient Brightness level Judgment 1 1 10 1 4 80 1 5 99 ...
eegegg's user avatar
  • 25
0 votes
2 answers
137 views

Is this simple, univariate logistic regression valid?

I am working on a research project. We have roughly 300 study participants that have been categorised into 4 groups. Some of these participants had a recurrence of a disease, and the rest did not. I'm ...
user123's user avatar
1 vote
1 answer
452 views

Why does SKLearn's Logistic Regression model have the same coefficients as my own model for 1 class but have different coefficients for other classes

I am currently implementing logistic regression from scratch and I'm comparing my model with SKLearn's logistic regression. Since this is just an exercise, I decided to use toy data, specifically ...
Jed's user avatar
  • 11
0 votes
0 answers
22 views

Mean of $t$ in the logistic regression model

The question comes from a sentence of page 208 of Christopher M. Bishop's "Pattern Recognition and Machine Learning". The sentence is excerpted as follows: My questions are mainly two: Why ...
zzzhhh's user avatar
  • 303
0 votes
1 answer
240 views

Define plateau of sigmoid function

I have a sigmoid function ...
Saraha's user avatar
  • 1
0 votes
0 answers
46 views

Multiclass (OVR) Logistical Regression on "Surrounded" Classes

I'm trying to understand/visualize how multiclass logistic regression works but most of the examples I've seen concern 3 classes with all of them on the outside. How does logistic regression work when ...
Anthony Baca's user avatar
5 votes
1 answer
630 views

Where does the Logistic Distribution get its name?

Having read around on the topic I understand its application as a close approximation of the normal distribution with a nicer mathematical form, but where does its name come from? Is it associated ...
Connor's user avatar
  • 451
1 vote
1 answer
80 views

Reference for Logistic and Sigmoid Kernels

I've been close reading a paper and was mystified when the author mentioned two kernels: The logistic kernel $\frac{1}{e^x + 2 + e^{-x}}$ and the sigmoid kernel $\frac{2}{\pi}\frac{1}{e^x + e^{-x}}$. ...
J.D.'s user avatar
  • 59
0 votes
0 answers
124 views

confusion about logistic regression and its weights [duplicate]

I have studied Logistic regression and I am still confused about certain things: does logistic regression use linear regression to predict a continuous output, but since linear regression can output ...
Mohammed Younis's user avatar
0 votes
2 answers
318 views

How does the TI-84 calculate the best fit for a logistic model?

Back in High School I remember the TI-84 calculator allowing the user to enter a few data points and then select from a list of options to find an equation that best fit the data points. One of these ...
Shaws34's user avatar
3 votes
1 answer
633 views

Impact of change in independent variable on probability in logistic regression

Take the following logistic regression: $$\log(o) = \beta_0 + \beta_1 x + \epsilon$$ We know that increasing $x$ by 1 increases the log-odds of the event by $\beta_1$, and multiply the odds of the ...
robertspierre's user avatar
4 votes
1 answer
763 views

Why do fixed effects in a logistic regression model differ depending on the presence of a random intercept?

If I have two linear regression models, one with a random intercept and one without (but otherwise identical), the fixed effects in the two models are identical. My understanding is that this stems ...
Jeff's user avatar
  • 3,655
1 vote
1 answer
3k views

How do I find probabilities in logistic regression?

let's assume we have continuous independent variable and obviously binary dependent one. How can we calculate probabilities which is displayed on y-axis? With scale like in the image below, it's clear ...
ilyalipnitsky's user avatar
2 votes
2 answers
1k views

What is a sigmoid function and what does it give as output?

I know the equation of the sigmoid function and use it in logistic regression, SVM, etc. $$ S(x) = \frac{1}{1 + e^{-x}} $$ In the case of the sigmoid function, What is the exact input and output of ...
F.C. Akhi's user avatar
  • 667
1 vote
1 answer
354 views

Binary classification neural network - equivalent implementations with sigmoid and softmax

in order to solidify my understanding, I am doing some simple calculations with pen and paper for some very simple NN for binary classification (input vector with two entries, 1 hidden layer and just ...
user120112's user avatar
0 votes
1 answer
90 views

Sigmoid equivalent to Softmax exercise 2 [duplicate]

This question is not the same as this one I asked previously. In the previous question I asked to prove that the sigmoid and softmax are equivalent. I found a solution here, but I think it's not ...
Slim Shady's user avatar
0 votes
1 answer
340 views

Sigmoid equivalent to Softmax exercise

I am currently studying the Sutton and Barto Intro To RL Book, and I'm trying to do exercise 2.9 (at the bottom of the following picture): So the exercise wants me to show that the softmax is ...
Slim Shady's user avatar
1 vote
0 answers
28 views

Determine the optimal threshold for sigmoid layer in neural network for binary classification [duplicate]

I have a neural network that gives out a continuous value as output and I need to classify it as class 0 or 1. I am currently using a sigmoid on this continuous output value but after sigmoid the ...
Alex's user avatar
  • 11
1 vote
1 answer
91 views

Using logistic regression to classify data set (asking about the steps)

I have a training data set of predictors being classified into 2 classes. For now, I have already created a logistic regression model, that is, having solved the coefficients $\beta_0, \beta_1,\cdots$....
cgo's user avatar
  • 8,747
5 votes
3 answers
1k views

How does logistic growth rate coincide with the slope of the line in the exponential phase of the growth?

For a logistic function $$f(x) = \frac{L}{1 + e^{-k(x - x_0)}},$$ people call $k$ the logistic growth rate. Now, I have encountered this statement: In the log scale the logistic growth rate coincides ...
Dave's user avatar
  • 53
1 vote
0 answers
19 views

What is the best practice for logistic regression data perspective?

I'm running into an interesting problem (for me at least) right now where I'm worried that my data setup is negatively influencing the accuracy of my model. Lets use historical chess matches as our ...
WhiskeyHammer's user avatar
1 vote
1 answer
177 views

Can I use a logistic regression as a calibration curve?

Lets use basketball as our example. The use case: There is a model that predicts the probability that the favored team will win. The probability range then is necessarily constrained between 0.5 and ...
WhiskeyHammer's user avatar
1 vote
1 answer
41 views

Logistic regression : incoherent coefficient values from z tests?

I am working on a customer purchase problem. I have 150 campaigns sent by email, that I denote C0, C1 ... ...
Anthony G's user avatar
8 votes
4 answers
4k views

Is Wikipedia's page on the sigmoid function incorrect?

Is Wikipedia's page on the sigmoid function incorrect? It states that: A common example of a sigmoid function is the logistic function From my knowledge of machine learning, I thought that "the ...
stackoverflowuser2010's user avatar
10 votes
1 answer
326 views

Is there any difference between a Logistic Regression for inference and for prediction?

When studying Linear Regression, I remember that Multicollinearity is something that impacts inference and not prediction, at least not always. Also, I noted that the assumptions tends to be neglected ...
dsbr__0's user avatar
  • 747
1 vote
0 answers
117 views

Re-parameterization to resolve non-identifiability in this squiggly model (linear combination of logistic functions)?

So my desire here is to be able to capture a variety of temporal dynamics governing the change in value of some feature of interest. I want the model to be able to represent, for example, bounded: ...
Nikolai Gates Vetr's user avatar
1 vote
2 answers
1k views

For prediction problems, why cant we simply use softmax as activation for hidden layers and no activation function for output layer

I am a beginner who is learning how to use neural networks for prediction problems, and almost all tutorials I have found use relu for hidden layer and sigmoid function for output later. My question ...
Eisenheim's user avatar
0 votes
0 answers
359 views

Likelihood values from Sigmoid [duplicate]

Repost of Mathemetics StackExchange question. There are multiple doubts of mine associated around this theme: In MLE, we try to find the PDF parameters ($\theta$) which maximise the likelihood of the ...
Aroonalok's user avatar
  • 143
2 votes
2 answers
725 views

Why $1/(1+e^{-x}) = e^x/(1+e^x)$

I am currently learning the sigmoid/logistic function and have completely forgotten how the maths behind this equivalence works: $$ \dfrac{1}{1+ e^{-x}} = \dfrac{e^{x}}{1+e^{x}} $$ By this I mean how ...
geedigit's user avatar
13 votes
2 answers
2k views

sklearn logistic regression converging to unexpected coefficient for a simple case

The case is as follows: Suppose that import numpy as np X = np.array([1, 1, 1]) y = np.array([1, 0, 1]) Then I perform a logistic regression with no intercept to ...
Syllabear's user avatar
  • 393
4 votes
1 answer
1k views

What value of predictions minimizes the binary cross entropy loss function? Is it 0.5?

I saw some examples of Autoencoders (on images) which use sigmoid as output layer and ...
Boom's user avatar
  • 205
7 votes
2 answers
1k views

Do you do linear regression in logistic regression?

I just studied single & multiple linear regression 2 days ago now I'm reading about logistics regression and I want to implement it from scratch, I just want to know If my understanding about ...
himynameisjm's user avatar
1 vote
1 answer
85 views

Binary logistic regression coefficients

Consider the following MWE example. A dataset with only one feature (categorical feature with 4 different categories ['cat', 'dog', 'hamster', 'frog']) + target (overall 10% positive class). After ohe ...
simon's user avatar
  • 121
0 votes
0 answers
260 views

Calculate future revenue based on a log growth formula similar to exponential growth formula?

The exponential (not continuous) growth formula from high school is: $$A(t)=A^{kt}$$ Where $A$ is the initial amount, $t$ is the number of time periods and $k$ is the shape or growth rate. Looking ...
Doug Fir's user avatar
  • 1,558
0 votes
1 answer
93 views

When I normalize my X, it changes the curve

I am going between Excel and R for this understand the fitted lines of this experiment. I have X and I have Y. When plotted it give me a curve that looks slightly sigmoidal, but I realize the X goes ...
alittleloopy's user avatar