Generate a set of random numbers distributed according to an inverse Gaussian distribution:
Compare its histogram to the PDF:
Generate a set of random numbers distributed according to a generalized inverse Gaussian distribution:
Compare its histogram to the PDF:
Distribution parameters estimation:
Estimate the distribution parameters from sample data:
Compare a density histogram of the sample with the PDF of the estimated distribution:
Skewness:
For generalized inverse Gaussian distribution:
Kurtosis:
For generalized inverse Gaussian distribution:
Different moments with closed forms as functions of parameters:
Closed form for symbolic order:
Moments for generalized inverse Gaussian distribution:
Closed form for symbolic order:
Hazard function of inverse Gaussian distribution:
Hazard function of generalized inverse Gaussian distribution:
Quantile function of inverse Gaussian distribution:
Quantile function of generalized inverse Gaussian distribution: