numpy.random.chisquare() in Python
With the help of chisquare() method, we can get chi-square distribution by using this method. Mainly we can use this distribution in hypothesis testing.
Syntax : numpy.random.chisquare(df, size=None)
1) df – number of degree of freedom and must be >0.
2) size – Output shape of scalar array.
Return : Return the scalar numpy array.
Example #1 :
In this example we can see that by using chisquare() method, we are able to get the chi-square distribution and return the scalar numpy array by using this method.
Example #2 :