Function Reference: invginv

statistics: x = invginv (p, mu, lambda)

Inverse of the inverse Gaussian cumulative distribution function (iCDF).

For each element of p, compute the quantile (the inverse of the CDF) of the inverse Gaussian distribution with scale parameter mu and shape parameter lambda. The size of x is the common size of p, mu, and lambda. A scalar input functions as a constant matrix of the same size as the other inputs.

The inverse Gaussian CDF is only defined for mu > 0 and lambda > 0.

Further information about the inverse Gaussian distribution can be found at https://en.wikipedia.org/wiki/Inverse_Gaussian_distribution

See also: invgcdf, invgpdf, invgrnd, invgfit, invglike, invgstat

Source Code: invginv

Example: 1

 

 ## Plot various iCDFs from the inverse Gaussian distribution
 p = 0.001:0.001:0.999;
 x1 = invginv (p, 1, 0.2);
 x2 = invginv (p, 1, 1);
 x3 = invginv (p, 1, 3);
 x4 = invginv (p, 3, 0.2);
 x5 = invginv (p, 3, 1);
 plot (p, x1, "-b", p, x2, "-g", p, x3, "-r", p, x4, "-c", p, x5, "-y")
 grid on
 ylim ([0, 3])
 legend ({"μ = 1, σ = 0.2", "μ = 1, σ = 1", "μ = 1, σ = 3", ...
          "μ = 3, σ = 0.2", "μ = 3, σ = 1"}, "location", "northwest")
 title ("Inverse Gaussian iCDF")
 xlabel ("probability")
 ylabel ("x")

                    
plotted figure