Description
Return [ln(condition) - ln(joint)]/ln(base).
Information units depend on the logarithm base: base two gives bits and the natural logarithm gives nats. A derivative or conversion factor must preserve its stated variable and base.
Return [ln(condition) - ln(joint)]/ln(base).
When to use this tool
Use Information: Conditional Surprisal Cell when you need an explicit information-unit conversion or surprisal component.
How to use the tool and how it works
- Enter jointProbability, conditionProbability, base. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Require 0 < jointProbability ≤ conditionProbability ≤ 1 and base > 1. Return [ln(condition) - ln(joint)]/ln(base).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| jointProbability | Joint Probability | Required. Finite number. |
| conditionProbability | Condition Probability | Required. Finite number. |
| base | Numeric base or source quantity interpreted under the specific calculation above. | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Result | Required. Object. |
| result.conditionalSurprisal | Conditional Surprisal | Calculated result member: number. |
{
"input": {
"jointProbability": 0.125,
"conditionProbability": 0.5,
"base": 2
},
"output": {
"result": {
"conditionalSurprisal": 2
}
}
} Limitations and assumptions
- This is conditional surprisal of one event, not a conditional entropy average or validation of a full conditional model.
- Outputs are nested inside result. 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
Check the probability domain and logarithm convention of the complete measure before combining values.
References
Similar or alternative tools
- Surprisal Concentration Weight Term
Return -ln(probability)/ln(logBase) and multiply it by nonnegative weight for weightedTerm.
- Conditional Mutual Information One Cell
Validate probabilities and the nested inequalities joint ≤ xz, joint ≤ yz, xz ≤ z, and yz ≤ z.