mardi 16 février 2021

How to generate random numbers through a Markov chain following a probability distribution in Python?

I need to make a code in python which generates random numbers through a Markov chain following this probability distribution:

pdf(x)=100 exp(-10x)

Then, I need to plot it for 10000 samples.

I do not have any idea how to do it, any help is appreciated!




Aucun commentaire:

Enregistrer un commentaire