0 votes
in Python by
Write a function to generate N samples from a normal distribution and plot them on the histogram.

1 Answer

0 votes
by
This is a relatively simple Python problem that requires setting up a distribution and then generating and plotting n samples from it. We can do this with the SciPy library for scientific computing.

First, declare a standard normal distribution, e.g. mean=0 and standard deviation = 1. Then we generate samples through the rvs(n) function.

Related questions

0 votes
asked Oct 2, 2023 in Python Imaging Library by sharadyadav1986
+1 vote
asked Oct 28, 2022 in Python by SakshiSharma
...