Saturday, January 17, 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
32474 POSTS0 COMMENTS
Milvus
118 POSTS0 COMMENTS
Nango Kala
6846 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12062 POSTS0 COMMENTS
Shaida Kate Naidoo
6985 POSTS0 COMMENTS
Ted Musemwa
7219 POSTS0 COMMENTS
Thapelo Manthata
6933 POSTS0 COMMENTS
Umr Jansen
6911 POSTS0 COMMENTS