Unfortunately David G. Stork has deleted his answer; I would nevertheless pick up his answer which imo can be "cured" rather easily.
I would believe that the following holds:
\begin{align}
p(x_1 | x_2) \propto p(x1,x2|x2)
\end{align}
which would mean that, as Dr. Stork has written, the joint probability density $p(x_1, x_2)$ (here the bivariate normal density) evaluated for a variable $x_1$ given a fixed value for $x_2$ will be equal to the conditional probability density $p(x_1|x_2)$ up to a normalizing constant.
We can see this from adding the option Method -> "Normalize"
to the former answer given by Dr. Stork:
condDist = ProbabilityDistribution[
PDF[ BinormalDistribution[ {μ1, μ2}, {σ1, σ2}, ρ] ], {x1, x2} ],
{ x1, -∞, +∞ },
Method -> "Normalize"
]
(Note that there are some warnings which likely call for some additional assumptions we should make using the option Assumptions
, but this should not worry us here too much.)
Comparing this expression with the answer obtained by @JimBaldwin will show that it is completely equivalent up to some expression which does contain neither $x_1$ nor $x_2$ and thus is a mere constant.
We can use this propotionality for example if we factor a complicated joint probability distribution (for example a Bayesian Network) into a multiplicative term of conditional and marginal probabilities. Here we may use the joint probability densities in the way indicated without the costly normalization, as we could do that only once at the end of our inference.
EstimatedDistribution
or the suite of statistical tools? You can also search through the other guides to see if something there is more likely to be what you need. $\endgroup$EstimatedDistribution
is aimed at working with empirical statistics (fitting models to data). My problem is not about data, but about deriving a closed-form starting from other closed forms (finding a conditional probability is akin to deriving the formula for a "slice" of a higher dimensional function). Mathematica has some capabilities to work with probability distributions in closed form (e.g.,Probability
,TransformedDistribution
), but none of these seems to do what I need. $\endgroup$