Jump to content

NORMSINV probability function [recreate from Excel]


This topic is 4412 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm looking for a custom function (or help with a formula to build one) for the Excel probability function NORMSINV [ inverse of the standard normal cumulative distr]. There is one out there for NORMSDIST. But I need the inverse function. Not knowing much about probability functions, I don't know if I can somehow make that one work? Has anyone run across the NORMSINV function in FileMaker?

Link to comment
Share on other sites

This is an approximation, adapted from Abramowitz and Stegun, Formula 26.2.23:

NORMSINV ( p ) =


Let ( [

q = Case ( p < 0.5 ; p ; 1 - p ) ;

t = Sqrt ( Ln ( 1 / q^2 ) ) ;



c0 = 2.515517 ;

c1 = 0.802853 ;

c2 = 0.010328 ;



d1 = 1.432788 ;

d2 = 0.189269 ;

d3 = 0.001308 ;



c = c0 + c1 * t + c2 * t^2 ;

d = 1 + d1 * t + d2 * t^2 + d3 * t^3 ;

x = t - c / d

] ;

Case ( p < 0.5 ; -x ; p = 0.5 ; 0 ; x )

)

Link to comment
Share on other sites

This topic is 4412 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.