Description
Require positive component and reference and return ln(component) - ln(reference).
Logarithms turn positive ratios into additive coordinates. An event log-likelihood uses the natural logarithm of the probability of the observed outcome; its sign and interpretation differ from negative log loss.
Require positive component and reference and return ln(component) - ln(reference).
When to use this tool
Use Log Ratio Reference Component Check when you need one natural-log probability or positive-ratio component with explicit endpoint handling.
How to use the tool and how it works
- Enter component, reference. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read logRatio. Use the output convention below.
Require positive component and reference and return ln(component) - ln(reference).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| component | Component | Required. Finite number; strictly above 0. |
| reference | Supplied reference in the documented record convention. | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| logRatio | Log Ratio | Required. Finite number. |
{
"input": {
"component": 8,
"reference": 2
},
"output": {
"logRatio": 1.3862943611198904
}
} Limitations and assumptions
- Values must share a quantity basis; this is a natural-log ratio, not a complete compositional transform, probability check, or causal comparison.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Document the event model, reference quantity, logarithm base, and aggregation rule when interpreting the complete result.
References
Similar or alternative tools
- Bernoulli Log Likelihood Trial
Validate probability in [0, 1] and require the observed outcome's probability positive.
- Commodity Numeraire Price Ratio
Divide nonnegative commodityPrice by positive numerairePrice for relativePrice.