![]() Just to offer another approach, you can calculate it directly using import math There’s one in scipy.stats: > import scipy.stats Numpy has a random.normal function, but it’s like sampling, not exactly what I want. There is a similar question in Perl: How can I compute the probability at a point given a normal distribution in Perl?. In my imagine it would like this: nd = NormalDistribution(mu=100, std=12) Just wondering if there is a library function call will allow you to do this. How to calculate probability in normal distribution given mean, std in Python? I can always explicitly code my own function according to the definition like the OP in this question did: Calculating Probability of a Random Variable in a Distribution in Python Question or problem about Python programming: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |