fractionsuch
Fractionsuch is a mathematical notation used to denote the ratio of two quantities evaluated over a subset of a domain defined by a predicate. Formally, given a domain D, two functions A and B from D to real numbers, and a predicate P on D, the expression fractionsuch of A and B with respect to P is the value of (sum of A(x) over all x in D with P(x)) divided by (sum of B(x) over all x in D with P(x)), provided the denominator sum is nonzero. If the denominator sum is zero, the expression is undefined or assigned a conventional value by agreement.
Notation and usage commonly write as A fractionsuch_P B. The predicate P is read as “such that
Properties and examples: Basic properties include linearity in the numerator and denominator under suitable conditions; if
Relation and applications: Fractionsuch connects to conditional probability and weighted averages and can be used in