How Can the Logit Function Be Modified for a Specific Output Range?

  • Context: Undergrad 
  • Thread starter Thread starter adan
  • Start date Start date
  • Tags Tags
    Function
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 2K views
adan
Messages
13
Reaction score
3
Hi,
I am looking for changing the logit f(z) = 1/(1+exp(-z)), where z range is [-inf,+inf]. I want to adapt it as follows:
if z > 0.5 then f > 0.5
z < 0.5 then f < 0.5

Thanks
 
Last edited:
Physics news on Phys.org
Hi,
If I understand you well, you want to shift the graph to the right by 0.5. So replace ##z## by ##z-0.5##

1624359059346.png
##\ ##
 
  • Like
Likes   Reactions: Delta2 and adan
BvU said:
Hi,
If I understand you well, you want to shift the graph to the right by 0.5. So replace ##z## by ##z-0.5##

View attachment 284871##\ ##
Thank you so much!
 
  • Like
Likes   Reactions: berkeman
adan said:
I am looking for changing the logit f(z) = 1/(1+exp(-z))
Do you mean logistic function? That is apparently how @BvU interpreted this. I don't believe there is such a thing as a "logit" function.
 
  • Like
Likes   Reactions: adan
Me too... :rolleyes:

Never too old to learn 😎

##\ ##
 
  • Like
Likes   Reactions: adan and Delta2
Actually, the ##f## in this thread is the sigmoid function. Vaguely remember it's used in neural networks and fuzzy control.

##\ ##
 
  • Like
Likes   Reactions: adan
adan said:
Hi,
I am looking for changing the logit f(z) = 1/(1+exp(-z)), where z range is [-inf,+inf]. I want to adapt it as follows:
if z > 0.5 then f > 0.5
z < 0.5 then f < 0.5

Thanks
Just a technicality : Why are you using #[\-infty, \infty]#, i.e., are you considering #\pm \infty # as actual inputs?
 
  • Like
Likes   Reactions: adan