poisson_logpmf

std.stats.poisson_logpmf · Level L5

The log-probability of k events under a Poisson distribution with mean λ: k·log λ − λ − log k!, with log k! as log Γ(k + 1).

log P(k) = k·log λ − λ − log Γ(k + 1)

Signature

poisson_logpmf(k: i64[n], lam: f64[n]) → f64[n]

Structure

The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks another library function this one runs — called once, or by Scan once per element; select it to open that function.

ki64[n]lamf64[n]1LogloglamAddk1MultiplyklogLogGammalogfactSubtracttSubtractlogplogpf64[n]
  • input
  • operation
  • constant
  • call
  • output

Verification

  • Signature proven by NOVA’s shape solver, for every size.
  • Agrees with the reference k·log λ − λ − log(k!), with the exact factorial to 80 digits (100-digit arithmetic), on all 40 test cases.
  • All 175 float64 results inside the running error bound; the closest uses 5% of it.
  • Interpreter and NumPy backend return bit-identical results.
  • At float32 too: the 40 test cases rounded to float32, and 40 of them inside the running error bound at u = 2⁻²⁴; the closest uses 5% of it.
Accuracy in detail
correctly rounded (the float64 nearest the exact value)
65%
largest error, in units in the last place
7.07

Identity

Calls
—
Called by
—
sha256:1b0f34db14a5492cdebb076fd18aa237866bd7e61ab6a9341dcff14b2f01fe01

The semantic hash of the graph. It changes when the program changes, and never when only its documentation does.

Control handle

Symbol
Ω:std.stats.poisson_logpmf · Ω:poisson_logpmf
Pins
sha256:c8ce235636bad6bd79824e996ed30908710e9bfcb134763b0694389dfdfb23fethis graph alone
Evidence
sha256:94aa783190e58cf37fc91ba8ef4c8b7a937730f71216865b14bd5c0986a3fc8cthe hash of its verification record
Needs
no capability: a pure function

Through NOVA’s control layer, the symbol launches this function only while the program still matches what it pins: a change to this graph, or to any graph it reaches, needs a migration first.

ΣEML 2026

Efficient New Language — a high-density semantic overlay for humans and AI agents.

This site’s demos run on the real EML toolchain, in your browser.

© 2026 EveMissLab (一言諾科技有限公司) / Neo.K. All rights reserved.