sympy.stats.FDistribution() in python Last Updated : 05 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of sympy.stats.FDistribution() method, we can get the continuous random variable representing the F distribution. Syntax : sympy.stats.FDistribution(name, d1, d2) Where, d1 and d2 denotes the degree of freedom. Return : Return continuous random variable. Example #1 : In this example we can see that by using sympy.stats.FDistribution() method, we are able to get the continuous random variable which represents the F distribution by using this method. Python3 1=1 # Import sympy and FDistribution from sympy.stats import FDistribution, density from sympy import Symbol d1 = Symbol("d1", integer = True, positive = True) d2 = Symbol("d2", integer = True, positive = True) z = Symbol("z") # Using sympy.stats.FDistribution() method X = FDistribution("x", d1, d2) gfg = density(X)(z) pprint(gfg) Output : d2 -- ______________________________ 2 / d1 -d1 - d2 d2 *\/ (d1*z) *(d1*z + d2) -------------------------------------- /d1 d2\ z*B|--, --| \2 2 / Example #2 : Python3 1=1 # Import sympy and FDistribution from sympy.stats import FDistribution, density from sympy import Symbol d1 = 5 d2 = 6 z = 1 # Using sympy.stats.FDistribution() method X = FDistribution("x", d1, d2) gfg = density(X)(z) pprint(gfg) Output : ____ 5400*\/ 55 ----------------- 1771561*B(5/2, 3) Comment More infoAdvertise with us Next Article sympy.stats.Die() function in Python J jitender_1998 Follow Improve Article Tags : Python SymPy Python SymPy-Stats Practice Tags : python Similar Reads sympy.stats.FiniteRV() function in Python With the help of sympy.stats.FiniteRV() method, we can create a random variable gives a dictionary of density by using sympy.stats.FiniteRV() method. Syntax : sympy.stats.FiniteRV(name, dict) Return : Return the variable having dictionary of density. Example #1 : In this example, we can see that by 1 min read sympy.stats.Die() function in Python With the help of sympy.stats.Die() method, we can get the fair die having number of faces given by the parameter and having name defined in the parameter itself by using sympy.stats.Die() method. Syntax : sympy.stats.Die(name, faces) Return : Return a fair die having 'n' faces. Example #1 : In this 1 min read Python - Uniform Distribution in Statistics scipy.stats.uniform() is a Uniform continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution. Parameters : q : lower and upper tail probability x : quantiles loc : 2 min read Python - Wald Distribution in Statistics scipy.stats.wald() is a Wald continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution. Parameters : q : lower and upper tail probability x : quantiles loc : [opti 2 min read Python - Levy Distribution in Statistics scipy.stats.levy() is a levy continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution. Parameters : q : lower and upper tail probability x : quantiles loc : [opti 2 min read sympy.stats.Binomial() function in Python With the help of sympy.stats.Binomial() method, we can create a Finite Random Variable representing a binomial distribution. A binomial distribution is the probability of a SUCCESS or FAILURE outcome in an experiment or survey that is repeated multiple times. Syntax: sympy.stats.Binomial(name, n, p 1 min read Like