Open In App

sciPy stats.alpha() | Python

Last Updated : 14 Mar, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
scipy.stats.alpha() is an alpha continuous random variable that is defined with a standard format and some shape parameters to complete its specification.
Parameters : q : lower and upper tail probability x : quantiles a : shape parameter loc : [optional] location parameter. Default = 0 scale : [optional] scale parameter. Default = 1 size : [tuple of ints, optional] shape or random variates. moments : [optional] composed of letters [‘mvsk’]; 'm' = mean, 'v' = variance, 's' = Fisher's skew and 'k' = Fisher's kurtosis. (default = 'mv'). Results : alpha continuous random variable
Code #1 : Creating alpha continuous random variable Python3 1==
# Python code to demonstrate scipy.alpha()
from scipy.stats import alpha

# using alpha() method
numargs = alpha.numargs
[ a ] = [0.6, ] * numargs
rv = alpha(a)
Code #2 : Python3 1==
# Python code to demonstrate scipy.alpha()
import numpy as np
import matplotlib.pyplot as plt

# getting distribution using linspace()
distribution = np.linspace(0, np.minimum(rv.dist.b, 3))
plot = plt.plot(distribution, rv.pdf(distribution))
Output :

Next Article
Practice Tags :

Similar Reads