With the help of
sympy.stats.Reciprocal() method, we can get the continuous random variable which represents the Reciprocal distribution.
sympy.stats.Reciprocal(name, a, b)
Where, a and b are real number and a, b > 0.
Return : Return the continuous random variable.
Example #1 :
In this example we can see that by using
sympy.stats.Reciprocal() method, we are able to get the continuous random variable representing reciprocal distribution by using this method.
1/(x*(-log(a) + log(b)))
Example #2 :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.