Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Inverse of NORMSDIST function

Inverse of NORMSDIST function

Scheduled Pinned Locked Moved Algorithms
tutorial
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sumit7034
    wrote on last edited by
    #1

    How to find Inverse of NORMSDIST function ie NORMSINV It Returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one. Syntax double NORMSINV(double probability) Probability is a probability corresponding to the normal distribution.

    D C 7 3 Replies Last reply
    0
    • S sumit7034

      How to find Inverse of NORMSDIST function ie NORMSINV It Returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one. Syntax double NORMSINV(double probability) Probability is a probability corresponding to the normal distribution.

      D Offline
      D Offline
      Dan 0
      wrote on last edited by
      #2

      1 / NORMSDIST

      S 7 2 Replies Last reply
      0
      • D Dan 0

        1 / NORMSDIST

        S Offline
        S Offline
        sumit7034
        wrote on last edited by
        #3

        thanks 4 reply But I m not getting exact answer when i match my answer from ms excel

        1 Reply Last reply
        0
        • S sumit7034

          How to find Inverse of NORMSDIST function ie NORMSINV It Returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one. Syntax double NORMSINV(double probability) Probability is a probability corresponding to the normal distribution.

          C Offline
          C Offline
          cp9876
          wrote on last edited by
          #4

          You should check out http://www.google.com.au/codesearch[^] first when you have a well known function that you want, I had a quick check and there seems to be implementations there.

          Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

          S 1 Reply Last reply
          0
          • C cp9876

            You should check out http://www.google.com.au/codesearch[^] first when you have a well known function that you want, I had a quick check and there seems to be implementations there.

            Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

            S Offline
            S Offline
            sumit7034
            wrote on last edited by
            #5

            I Didn't see any implementations there. If u have seen any then plz provide some link.

            C 1 Reply Last reply
            0
            • S sumit7034

              I Didn't see any implementations there. If u have seen any then plz provide some link.

              C Offline
              C Offline
              cp9876
              wrote on last edited by
              #6

              There are multiple implementations there - it is really in your interest to learn how to search for them. I bet you simply typed in "NORMSINV" and just got lots of references to uses of the function, gave up and came back here. You have to be a little creative and try to make the search engine find function definitions. I went to the same page and with my next search came up with several implementations.

              Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

              1 Reply Last reply
              0
              • D Dan 0

                1 / NORMSDIST

                7 Offline
                7 Offline
                73Zeppelin
                wrote on last edited by
                #7

                No, that's not what is meant by "inverse". It's the inverse distribution function he's looking for.

                I'm the ocean. I'm a giant undertow.

                1 Reply Last reply
                0
                • S sumit7034

                  How to find Inverse of NORMSDIST function ie NORMSINV It Returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one. Syntax double NORMSINV(double probability) Probability is a probability corresponding to the normal distribution.

                  7 Offline
                  7 Offline
                  73Zeppelin
                  wrote on last edited by
                  #8

                  The inverse CDF of the normal distribution doesn't have an analytical form. You can find an approximation here[^]. The other place to look is in the online version of Numerical Recipes[^]. They have an algorithm for the inverse normal CDF. You can also use the following taken from here[^].

                  What is a good approximation to the inverse of the
                  cumulative normal distribution function? Mathematically we can
                  write this as: Find X such that Q(X) = p for any 0 < p < 1.
                  (Note: this computes an upper tail probability.) Again, it is
                  not possible to write this as a closed form expression, so we
                  resort to approximations. Because of the symmetry of the normal distribution,
                  we need only consider 0 < p < 0.5. If you
                  have p > 0.5, then apply the algorithm below to q = 1-p,
                  and then negate the value for X obtained. (This approximation
                  is also from Abramowitz and Stegun.)

                  t = sqrt[ ln(1/p^2) ]

                         c\_0 + c\_1\*t + c\_2\*t^2 
                  

                  X = t - ------------------------------
                  1 + d_1*t + d_2*t^2 + d_3*t^3

                  c_0 = 2.515517
                  c_1 = 0.802853
                  c_2 = 0.010328
                  d_1 = 1.432788
                  d_2 = 0.189269
                  d_3 = 0.001308

                  See Abramowitz and Stegun; Press, et al.

                  You should Google a little harder instead of always asking here. These algorithms were worked out a long time ago and have been available for a long time.

                  I'm the ocean. I'm a giant undertow.

                  P 1 Reply Last reply
                  0
                  • 7 73Zeppelin

                    The inverse CDF of the normal distribution doesn't have an analytical form. You can find an approximation here[^]. The other place to look is in the online version of Numerical Recipes[^]. They have an algorithm for the inverse normal CDF. You can also use the following taken from here[^].

                    What is a good approximation to the inverse of the
                    cumulative normal distribution function? Mathematically we can
                    write this as: Find X such that Q(X) = p for any 0 < p < 1.
                    (Note: this computes an upper tail probability.) Again, it is
                    not possible to write this as a closed form expression, so we
                    resort to approximations. Because of the symmetry of the normal distribution,
                    we need only consider 0 < p < 0.5. If you
                    have p > 0.5, then apply the algorithm below to q = 1-p,
                    and then negate the value for X obtained. (This approximation
                    is also from Abramowitz and Stegun.)

                    t = sqrt[ ln(1/p^2) ]

                           c\_0 + c\_1\*t + c\_2\*t^2 
                    

                    X = t - ------------------------------
                    1 + d_1*t + d_2*t^2 + d_3*t^3

                    c_0 = 2.515517
                    c_1 = 0.802853
                    c_2 = 0.010328
                    d_1 = 1.432788
                    d_2 = 0.189269
                    d_3 = 0.001308

                    See Abramowitz and Stegun; Press, et al.

                    You should Google a little harder instead of always asking here. These algorithms were worked out a long time ago and have been available for a long time.

                    I'm the ocean. I'm a giant undertow.

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    73Zeppelin wrote:

                    You should Google a little harder instead of always asking here

                    I think it is more of a case of sheer laziness. He's asking about the FDIST function now, and I pointed him to Wolfram's Mathworld.

                    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups