sympy.stats.YuleSimon() in Python
Last Updated :
08 Jun, 2020
With the help of sympy.stats.YuleSimon()
method, we can get the random variable representing the Yule-Simon distribution.
Syntax : sympy.stats.YuleSimon(name, rho)
Return : Return the random variable.
Example #1 :
In this example we can see that by using sympy.stats.YuleSimon()
method, we are able to get the Yule-Simon distribution by using this method.
from sympy.stats import YuleSimon, density, E, variance
from sympy import Symbol, simplify
rho = 5
X = YuleSimon( "X" , rho)
gfg = density(X)( 0.5 )
print (gfg)
|
Output :
5*beta(0.5, 6)
Example #2 :
from sympy.stats import YuleSimon, density, E, variance
from sympy import Symbol, simplify
rho = 5
z = Symbol( "z" )
X = YuleSimon( "X" , rho)
gfg = density(X)(z)
print (gfg)
|
Output :
5*beta(z, 6)
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...