I am trying to generate an inverse gaussian distribution using the ICDF function in matlab. The parameters are:
mu = 4.68 lambda = 12286
I get the following error: Warning: Divide by zero. This warning will be removed in a future release. Consider using DBSTOP IF NANINF when debugging.
The issue is that the lambda is very high - when I try values of 50, 100, or 1000 there is no problem. I'm working with Matlab 2006, so I can't use the makedist function. Is there a way to avoid this error, or another function I can use to generate an inverse gaussian from a set of random probabilities?
Thanks!