Lartillot Gaussian model
The multidimensional Gaussian model from Lartillot et al '06 is useful for testing Bayesian applications.
The model is parameterised by a vector $\theta = (\theta_1, \theta_2, \ldots, \theta_d)$ of dimension $d$. The prior on $\theta$ is a product of independent normals with a null mean and unit variance. The likelihood function is given by $$\mathcal{L}(\theta, v) = {(2\pi v)^{-d/2}} \prod_{i = 1}^d \text{exp}\bigg[\frac{-\theta_i^2}{2v}\bigg],$$ where $v$ is the common variance for all $d$ dimensions.
The joint posterior is given by $d$ products of $\mathcal{N}(0, v/(1+v))$. Finally, the evidence is given by $$ \mathcal{Z} = (2\pi v)^{-d/2} \left(\frac{v}{1 + v} \right)^{d/2}=\left(2\pi(1+v)\right)^{-d/2}\ . $$
This codebase provides a simple implementation of the Lartillot Gaussian model in Python.
pip install lartillot_gaussian
from lartillot_gaussian import LartillotGaussianModel
import numpy as np
model = LartillotGaussianModel(d=10, v=1.0)
theta = np.array([[0]])
print(model.lnz)
Metadata
Release files for lartillot-gaussian 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lartillot_gaussian-0.0.2.tar.gz | 6.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lartillot_gaussian-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / lartillot_gaussian-0.0.2.tar.gz
| Download URL | lartillot_gaussian-0.0.2.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
702f4453760882240826a33ed5812852917ea7a05f473168a3d9323a62d283de
|
|
BLAKE2b-256 checksum How to use checksums |
34f389426c5521a1364d6078b0f21f78a16830409aa8e85443e6d7c25521b106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2025.
Transparency logRelease files / lartillot_gaussian-0.0.2-py3-none-any.whl
| Download URL | lartillot_gaussian-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99d1b878e42fe935bd331de13879444c637ba6b819f1287fe0017615736c6caa
|
|
BLAKE2b-256 checksum How to use checksums |
34ff0b27cac29423a813e6d8d082f608b4d4a0f444d021a012a2ce91cfbd48df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2025.
Transparency logSecurity for lartillot-gaussian 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lartillot_gaussian-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 27, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.