sympy.stats.Trapezoidal() in Python
With the help of
sympy.stats.Trapezoidal() method, we can get the continuous random variable which represents the Trapezoidal distribution by using this method.
sympy.stats.Trapezoidal(name, a, b, c, d)
Where, a, b, c and d are real number.
Return : Return the continuous random variable.
Example #1 :
In this example we can see that by using
sympy.stats.Trapezoidal() method, we are able to get the continuous random variable representing Trapezoidal distribution by using this method.
/ -2*a + 2*z
|————————- for And(a z)
|(-a + b)*(-a – b + c + d)
| ————– for And(b z)
= z, c <= z)
|(-c + d)*(-a – b + c + d)
\ 0 otherwise
Example #2 :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course