#NEWLINE# def FiniteRV( name , density ) : #NEWLINE# #INDENT# "\n    Create a Finite Random Variable given a dict representing the density.\n\n    Returns a RandomSymbol.\n\n    >>> from sympy.stats import FiniteRV, P, E\n\n    >>> density = {0: .1, 1: .2, 2: .3, 3: .4}\n    >>> X = FiniteRV('X', density)\n\n    >>> E(X)\n    2.00000000000000\n    >>> P(X >= 2)\n    0.700000000000000\n    " #NEWLINE# return rv ( name , FiniteDistributionHandmade , name )