Description
Compare count-derived population fractions with supplied fractions.
Computational biology distinguishes discrete counts, probabilistic weights, sequence indexes and logical rules. A supplied event or record flag can be summarized without simulating a stochastic process, validating a sequence annotation or establishing a biological mechanism.
Compare count-derived population fractions with supplied fractions.
When to use this tool
Use Simulation Population Fraction Residual when checking the stated count, sequence, Boolean-rule or support convention.
How to use the tool and how it works
- Enter counts, suppliedFractions. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read countFractions, residuals. Use the output convention below.
Compare count-derived population fractions with supplied fractions. Require aligned arrays, nonnegative counts with positive sum and supplied fractions in [0,1]; return count/sum and countFraction-supplied for each position.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| counts | Counts | Required. Array of safe integer; maximum items 256. |
| suppliedFractions | Supplied Fractions | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| countFractions | Count Fractions | Required. Array of finite number; maximum items 256. |
| residuals | Residuals | Required. Array of finite number; maximum items 256. |
{
"input": {
"counts": [
2,
3,
5
],
"suppliedFractions": [
0.2,
0.4,
0.4
]
},
"output": {
"countFractions": [
0.2,
0.3,
0.5
],
"residuals": [
0,
-0.10000000000000003,
0.09999999999999998
]
}
} Limitations and assumptions
- Supplied fractions need not sum to one; no stochastic population, uncertainty or model fit is inferred.
- 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
Use the complete sequence, identifier universe or stochastic/logical model for actual inference, sampling and uncertainty analysis.
References
Similar or alternative tools
- Cell State Probability Mass Gap
Compare supplied cell-state probability mass with a target.
- Biological ODE Local Residual
Compare explicit observed and modeled derivatives of the same biological state in compatible units without fitting model parameters.