#include <mcmc.h>
Public Member Functions | |
| BetaProposal () | |
| Empy constructor. | |
| BetaProposal (double idenominator) | |
| Main constructor. | |
| double | Draw (double starting_value) |
| Draw from Beta proposal. | |
| double | LogDensity (double new_value, double starting_value) |
| Log probability of proposal new value, given starting value. | |
Useful proposal type for parameters with support between 0 and 1.
The beta proposal is parameterized using the mean and the inverse denominator. The denominator is a measure a scale and can be thought of as the number of observed trials bernoulli. We use the inverse of the denominator so that larger values imply bigger steps, consistent with NormalProposal. For the Beta distribution the mean is
and the denominator is
Therefore
and
| BetaProposal::BetaProposal | ( | ) | [inline] |
Empy constructor.
| BetaProposal::BetaProposal | ( | double | idenominator | ) | [inline] |
Main constructor.
Scale of steps are parameterized using the inverse denominator of a Beta distribution:
| idenominator | Tuning parameter equal to the inverse denominator of a Beta distribution. |
| double BetaProposal::Draw | ( | double | starting_value | ) | [inline] |
Draw from Beta proposal.
| starting_value | Starting value (mean of Beta distribution). |
| double BetaProposal::LogDensity | ( | double | new_value, | |
| double | starting_value | |||
| ) | [inline] |
Log probability of proposal new value, given starting value.
| starting_value | Starting value. | |
| new_value | Proposed new value. |
1.5.9