Start / Is binference right for my data?
Is binference right for my data?¶
binference fits when three things hold. You have many objects. Each object carries its own noisy information about one quantity, which you can divide into bins (intervals, grid cells or categories). And you want the population of that quantity, or each object’s value informed by it. The tables below match what you have and what you want to binference’s inputs and outputs.
What you have¶
Each row names the constructor that turns your data into a
Likelihoods, then the guide section that explains it and the
tutorials that use it.
You have, for each object |
binference reads it with |
Read more |
|---|---|---|
a measured value and its Gaussian error |
|
|
likelihoods or log-likelihoods on the bins |
|
|
a likelihood function or a SciPy distribution |
|
|
a posterior on the bins, and the prior it was computed under |
|
|
posterior samples, and the prior they were drawn under |
|
|
the bin it was measured in, and the detector’s response matrix |
|
|
a classifier’s probabilities, and the class prevalence it was trained on |
|
guide, Classifier outputs: class fractions under label shift |
a classifier’s scores, and a labelled validation set |
|
guide, Classifier outputs: class fractions under label shift, Mixed-stock analysis |
Posteriors and posterior samples need their interim prior, which binference divides out (pitfalls).
What you want¶
You want |
binference gives |
Read more |
|---|---|---|
the population, with its uncertainty |
|
|
a number computed from the population, such as its mean |
|
|
each object’s value, informed by the population: its hierarchical posterior |
|
|
the histogram of these objects, the realised sample |
|
|
totals and rates from an incomplete catalogue, given its selection function |
|
guide, Selection effects and rates, Selection measured by injections |
a quick single answer, a point estimate |
|
What binference does not do¶
Compute the per-object inputs. binference starts where each object already has a likelihood, a posterior, samples or a measured bin. Fitting photometry, training a classifier or simulating a detector happens before it.
Use posteriors whose prior is unknown. Without its interim prior, binference cannot turn a posterior back into a likelihood.
Fit a population without bins. The population is a histogram on your bins, optionally with a finer B-spline
Basis. binference has no parametric population models, such as a power law, and no neural density models (Neural and simulation-based deconvolution).Let the population depend on other variables. All objects share one population; binference has no covariate-dependent populations.
Model correlated objects. The model multiplies the objects’ likelihoods, so it treats their data as independent given the population (theory).