Skip to main content

Optimized Nested Sampling: fast inference for non-linear additive models

Project description

Faster inference by parameter space reduction of linear parameters.

Context

For models that are composed of additive components:

y = A_1 * y_1(x|theta) + A_2 * y_2(x|theta) + ...

And data that are one of:

y_obs ~ Normal(y, sigma)
y_obs ~ Poisson(y)

y may be one or multi-dimensional. sigma may be different for each y (heteroscadastic).

Here we see that each component y_i changes y linearly with its normalisation parameter A_i.

We therefore have two groups of parameters:

  • linear parameters: A_i

  • non-linear parameters: theta

We can define the predictive part of our model as:

y_1, y_2, ... = compute_components(x, theta)

What optns does

  1. Profile likelihood inference with nested sampling. That means the normalisations are optimized away.

  2. Post-processing: The full posterior (A_i and theta) is sampled by conditionally sampling A_i given theta.

Usage

See the demo scripts in the examples folder!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optns-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optns-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file optns-0.1.0.tar.gz.

File metadata

  • Download URL: optns-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for optns-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38c844dd50f19e00f4c123a4da56d4846619674bd8b57b38e0cc6349a7a4932d
MD5 f9b6972716b882866dba407d78c7d1c1
BLAKE2b-256 89f26085328bb192f540d2be0000fa24a58a2fe40a0588316f4a2e940ea7e371

See more details on using hashes here.

File details

Details for the file optns-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: optns-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for optns-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f9c788f12b69d3d3a7ec90a4c111f18e24610abd78398bf343b7a60b08f1ba
MD5 c043910459c7d822792512656490edb1
BLAKE2b-256 eb6a0db4e030988f4c2a60a28bacb8a194ef298e70c815156cde9536f1884e4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page