Abstract
We present a simulation method for generating random variables from Erlang and negative binomial distributions using the generalized Lambert W function. The generalized Lambert W function is utilized to solve the quantile functions of these distributions, allowing for efficient and accurate generation of random variables. The simulation procedure is based on Halley's method and is demonstrated through the generation of 100,000 random variables for each distribution. The results show close agreement with the theoretical mean and variance values, indicating the effectiveness of the proposed method. This approach offers a valuable tool for generating random variables from Erlang and negative binomial distributions in various applications.
Original language | English |
---|---|
Article number | 100092 |
Journal | Journal of Computational Mathematics and Data Science |
Volume | 10 |
Early online date | 8 Feb 2024 |
DOIs | |
Publication status | Published - Mar 2024 |
Keywords
- Inverse transform method
- Lambert W function
ASJC Scopus subject areas
- Computational Mathematics
- Artificial Intelligence
- Applied Mathematics
- Computer Science Applications