Skip to content

Commit

Permalink
refs #92 NS update
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLim23 committed Nov 18, 2024
1 parent 51990b9 commit 0bee403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/cf_methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ As a result nested sampling is good for investigating multi-modal posterior dist

This is a brief description of how the algorithm works, but a more detailed discussion of the subject is outline in this `paper <https://arxiv.org/pdf/2205.15570>`_.

The likelihood, :math:`P(D|underline{\theta}, M)`, and prior, :math:`P(\underline{\theta}| M)`, are related to the evidence by
The likelihood, :math:`P(D|\underline{\theta}, M)`, and prior, :math:`P(\underline{\theta}| M)`, are related to the evidence by

.. math::
P(D|M) = \int_\Omega P(D| \underline{\theta}, M)P( \underline{\theta}|M)\mathrm{d\underline{\theta}}.
Expand Down Expand Up @@ -220,11 +220,11 @@ The following set of steps are then repeated untial a stopping criteria is met:

The final step is to average the remaining likelihoods and to multiply it by the remaining volume varaible to get the last contribution to :math:`Z`.

The posterior weights for the :math:`i^/mathrm{th}` shell can then be written as
The posterior weights for the :math:`i^\mathrm{th}` shell can then be written as

.. math::
P_i = \frac{L_i(X_{i+1} - X_{i})}{2Z}.
P_i = \frac{L_i[X_{i+1} - X_{i}]}{2Z}.
A density estimation method (e.g. weighted histogram) can then be used to generate the PDF.
The strength of nested sampling is that it can capture multi-modal distributions, but it can be computationally expensive.
Expand Down

0 comments on commit 0bee403

Please sign in to comment.