Friday, February 20, 2026
HomeLanguagessympy.stats.Nakagami() in python

sympy.stats.Nakagami() in python

With the help of sympy.stats.Nakagami() method, we can get the continuous random variable which represents the nakagami distribution.

Syntax : sympy.stats.Nakagami(name, mu, omega)
Where, mu and omega are real number and mu > 1/2, omega > 0.
Return : Return the continuous random variable.

Example #1 :
In this example we can see that by using sympy.stats.Nakagami() method, we are able to get the continuous random variable representing nakagami distribution by using this method.




# Import sympy and Nakagami
from sympy.stats import Nakagami, density
from sympy import Symbol, pprint
  
z = Symbol("z")
mu = Symbol("mu", positive = True)
omega = Symbol("omega", positive = True)
  
# Using sympy.stats.Nakagami() method
X = Nakagami("x", mu, omega)
gfg = density(X)(z)
  
pprint(gfg)


Output :

2
-mu*z
——-
mu -mu 2*mu – 1 omega
2*mu *omega *z *e
———————————-
Gamma(mu)

Example #2 :




# Import sympy and Nakagami
from sympy.stats import Nakagami, density
from sympy import Symbol, pprint
  
z = 1.1
mu = 0.5
omega = 4
  
# Using sympy.stats.Nakagami() method
X = Nakagami("x", mu, omega)
gfg = density(X)(z)
  
pprint(gfg)


Output :

0.342943855019384

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

Most Popular

Dominic
32506 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6882 POSTS0 COMMENTS
Nicole Veronica
12005 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12099 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7255 POSTS0 COMMENTS
Thapelo Manthata
6967 POSTS0 COMMENTS
Umr Jansen
6956 POSTS0 COMMENTS