Wednesday, June 10, 2026
HomeLanguagessympy.stats.YuleSimon() in Python

sympy.stats.YuleSimon() in Python

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.




# Import sympy and Yule-Simon
from sympy.stats import YuleSimon, density, E, variance
from sympy import Symbol, simplify
  
rho = 5
  
# Using sympy.stats.YuleSimon() method
X = YuleSimon("X", rho)
gfg = density(X)(0.5)
  
print(gfg)


Output :

5*beta(0.5, 6)

Example #2 :




# Import sympy and Yule-Simon
from sympy.stats import YuleSimon, density, E, variance
from sympy import Symbol, simplify
  
rho = 5
z = Symbol("z")
  
# Using sympy.stats.YuleSimon() method
X = YuleSimon("X", rho)
gfg = density(X)(z)
  
print(gfg)


Output :

5*beta(z, 6)

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32515 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6896 POSTS0 COMMENTS
Nicole Veronica
12012 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7018 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6963 POSTS0 COMMENTS