Saturday, December 28, 2024
Google search engine
HomeLanguagessciPy stats.alpha() | Python

sciPy stats.alpha() | Python

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




# 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 :




# 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 :

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

Most Popular

Recent Comments