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.
...