Come analyze HEASARC, IRSA, and MAST data in the cloud! The Fornax Initiative is now welcoming all interested beta users.
bayes
set up for Bayesian inference
| Syntax: | bayes | <option> |
|---|---|---|
| bayes | <mod par #> <prior type> [<hyperparameters>] | |
| bayes | smooth <par> [order 1|2] [space lin|log] [lambda <value> | lcurve | discrep] [radii <r |
|
| bayes | smooth clear |
where <option> ::= [off |on |cons]. If a parameter number is given as the first argument then this command sets up the prior for the specified model parameter but does not turn Bayesian inference on. If the first argument to the bayes command is not a parameter number then one of the options off, on, or cons is used. The first two turn Bayesian inference off or on, while cons turns Bayesian inference on and gives all parameters a constant prior. The options for prior types are as follows:
| Prior type | Log(prior) | |||
| cons | 0 | |||
| exp |
|
|||
| jeffreys | ||||
| gauss |
|
|||
| lognormal |
|
|||
| gamma |
|
|||
| cauchy |
|
|||
| beta |
|
|||
| studentst |
|
|||
| halfnormal |
|
|||
| powerlaw |
|
|||
| isotropic |
|
|||
| shiftedlognormal |
|
Where p is the parameter value, h the
hyperparameter values, and for the beta prior x = (p-min)/(max-min)
where min and max are the parameter hard limits.
Multi-parameter smoothness prior. The priors above act on one parameter at a time. The bayes smooth subcommand instead applies a single prior that couples a chosen model parameter <par>(its local index within the model) across all datagroups, penalising shell-to-shell roughness of that parameter. It is the in-engine regularizer for projct de-projection, where the per-datagroup normalisations (or temperatures) recovered by inverting the projection are noisy and anti-correlated; see the projct model description for the underlying failure modes. The prior is a correlated Gaussian
- order 1|2
- 1 penalises the gradient of the profile (biasing towards a flat profile); 2 penalises the curvature (biasing towards a power-law-like profile). Default 2.
- space lin|log
- whether the operator acts on the parameter (lin) or its logarithm (log). Default log, appropriate for normalisations that vary over orders of magnitude.
- lambda <value> | lcurve | discrep
- a fixed strength <value>; or lcurve to select
it automatically at the corner of the misfit-versus-roughness L-curve; or
discrep to select it by the discrepancy principle (increase the
smoothing until the data misfit reaches the number of degrees of freedom). The
lcurve and discrep options refit the model over a grid of
and leave the model fitted at the chosen value.
- radii <r
> ... <r
>
- the shell radii, one per datagroup. If omitted they default to the XFLT major axis of each datagroup (the projct convention), so cluster users need not re-enter them.