/ Python And R Data science skills: 11 ds python law of large numbers randn function in telugu vlr training

Sunday 4 February 2018

11 ds python law of large numbers randn function in telugu vlr training

11 Law of large numbers
In [15]:
#import numpy 
from numpy.random import randn
#https://www.mathsisfun.com/mean.html
In [16]:
randn()
Out[16]:
-0.06871178616085978
In [17]:
n1=0
a=randn(2)
for i in a:
    if(i>=-1 and i<=1):
        n1=n1+1
print(n1)
print(n1/2)
print(a)
2
1.0
[-0.03934996 -0.55639845]
In [ ]:
    
   

No comments:

Post a Comment