Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# crv_types.Arcsin

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Create a Continuous Random Variable with an arcsin distribution.

The density of the arcsin distribution is given by

.. math::
f(x) := \frac{1}{\pi\sqrt{(x-a)(b-x)}}

with :math:x \in [a,b]. It must hold that :math:-\infty < a < b < \infty.

Parameters(more...)


        def Arcsin(name, a=0, b=1):
r"""
Create a Continuous Random Variable with an arcsin distribution.

The density of the arcsin distribution is given by

.. math::
f(x) := \frac{1}{\pi\sqrt{(x-a)(b-x)}}

with :math:x \in [a,b]. It must hold that :math:-\infty < a < b < \infty.

Parameters
==========

a : Real number, the left interval boundary
b : Real number, the right interval boundary

Returns
=======

A RandomSymbol.

Examples
========

>>> from sympy.stats import Arcsin, density
>>> from sympy import Symbol, simplify

>>> a = Symbol("a", real=True)
>>> b = Symbol("b", real=True)
>>> z = Symbol("z")

>>> X = Arcsin("x", a, b)

>>> density(X)(z)
1/(pi*sqrt((-a + z)*(b - z)))

References
==========

..  http://en.wikipedia.org/wiki/Arcsine_distribution
"""

return rv(name, ArcsinDistribution, (a, b))