I wanted to know some difference between these two "System Simulation" technical points.
(It would mean a lot. Thanks ahead. I can't find it anywhere, so.) (Let me know if u need more info)
I wanted to know some difference between these two "System Simulation" technical points.
(It would mean a lot. Thanks ahead. I can't find it anywhere, so.) (Let me know if u need more info)
I think you want to know the difference between Probability Mass Function(pmf) and Probability Density Function(pdf).
Probability Mass Function is for the probability distribution of a discrete random number.
In Simulation, we need to generate random numbers according to the probability distribution. The basic random number generator usually generates a uniform random number between 0 and 1.
When the random number is discrete, we divide the range from 0 to 1 in the way that each interval becomes the probability.
For example, rolling a die, each number has a chance of $\frac{1}{6}$
Therefore, if the uniform random number fall in between 0 and $\frac{1}{6}$, generate a random number 1, if it falls in between $\frac{1}{6}$ and $\frac{2}{6}$, generate 2, and so on.
However, continuous random number case, we cannot divide the range.
Therefore, we match the uniform random number to the CDF (Cumulative Density Function)
the details can be found here. Simulation class Note
Note, the discrete case is also matching uniform to CDF technically.