np.random.exponential 1

np.random.exponential

samples = np.random.exponential(size=10000, scale=tau)

Here is what the above code is Doing:
1. We’re creating a variable called tau and setting it equal to 5.
2. We’re creating a variable called samples and setting it equal to a numpy array of 10,000 random numbers drawn from an exponential distribution with a scale parameter of tau.

Similar Posts