Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Function for the Normal Loss Function L(z)
#1
I am pretty new to Python and my algorithm is working with the Normal loss function L(z)

L(z)=ϕ(z)−z(1−Φ(z))

I have "z" as an input and need "L(z)" as an output.

A table of that looks like this:

İmage


Does a package exist which provides a function to do so? What is the name of the package and function?
Quote
#2
You can use SciPy package, it includes ϕ(z) and Φ(z) functions (normal probability density and its cumulative distribution function), so you can easily define
L(z) using them.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to apply user defined function to Pandas DataFrame evelynow 3 173 Yesterday, 11:35 PM
Last Post: scidam
  finding the integral of probability density function Staph 3 110 Aug-11-2019, 09:19 AM
Last Post: buran
  Comparing Values Resulting from Function Outputs firebird 0 102 Jul-25-2019, 05:16 AM
Last Post: firebird
  dtype in not working in mad() function ift38375 8 214 Jul-22-2019, 02:53 AM
Last Post: scidam
  tell exact difference between xlim() and xticks() function ift38375 3 186 Jul-12-2019, 12:04 AM
Last Post: scidam
  Applying Function With If ab0217 8 281 Jul-02-2019, 12:30 PM
Last Post: ichabod801
  Apply function on different columns as defined DavidGG 5 549 Jun-03-2019, 01:12 PM
Last Post: ichabod801
  How to graphically represent this function? dc996 1 263 May-03-2019, 10:30 AM
Last Post: scidam
  semantic error log function mcgrim 26 1,214 Apr-29-2019, 09:32 PM
Last Post: mcgrim
  How to graph a normal distribution? royer14 0 229 Apr-22-2019, 09:16 PM
Last Post: royer14

Forum Jump:


Users browsing this thread: 1 Guest(s)