Friday, November 21, 2025
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
32405 POSTS0 COMMENTS
Milvus
97 POSTS0 COMMENTS
Nango Kala
6781 POSTS0 COMMENTS
Nicole Veronica
11928 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11997 POSTS0 COMMENTS
Shaida Kate Naidoo
6907 POSTS0 COMMENTS
Ted Musemwa
7166 POSTS0 COMMENTS
Thapelo Manthata
6862 POSTS0 COMMENTS
Umr Jansen
6847 POSTS0 COMMENTS