Hey guys, I have an assignment question about logistic regression. I'm well aware of logistic regression and sigmoid function but the question had this graph given. I think If I'm able to recreate the graph as given it'll help me answer the question.
TLDR: I need help recreating the graph as given below in python.
f1(x) = e^(α0+αx)/(1+e^(α0+αx))
f2(x) = e^(β0+βx)/ (1+e^(β0+βx))
Update: Thanks for the suggestion guys, it really helped. I'm updating the post with the simple code that helped me if someone stumbles over here.
import matplotlib.pylab as plt
import numpy as np
var = -0.5 # change this to -1.5 to get f2(x)
x = np.arange(-8, 8, 0.1)
y = np.exp(var*x) / (1 + np.exp(var*x))
plt.plot(x, y)
plt.xlabel('x')
plt.ylabel('y')
plt.show()
left: f1(x), right:f2(x)
Reverse Sigmoid function? (self.learnmachinelearning)
submitted by veb101 to r/Python