Np.random.randn() generated numbers are not giving mean as 1. Why?

np.random.randn() generated numbers are not giving mean as 1. Why?

Hey @ayushttg8, in normal distribution mean is 0 not 1. Also if you generate very large number of numbers like 1k, 10k etc and than you find mean of those numbers, it will come out close to zero and not exactly zero. Like 0.00667 etc. If you generate very few numbers like 3,5 than this condition may hold sometime while rest of the times it may fail.

Hope this cleared your doubts. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.