RATS 10.1
RATS 10.1

Parameters

probability of success (\(p\))

Kernel

\(p^{x}(1-p)^{1-x}\)

Support

0 or 1

Mean

\(p\)

Variance

\(p(1-p)\)

Main Uses

Realizations of 0-1 valued variables (usually latent regimes)

Random Draws

%RANFLIP(p) is a draw from a Bernoulli(p) (returning 0 or 1).

 

%RANBRANCH(||p1,p2||) draws one or more independent trials with (integer) values 1 or 2. The probability of 1 is \(\dfrac{p1}{p1+p2}\) and the probability of 2 is \(\dfrac{p2}{p1+p2}\). (Thus, you only need to compute the relative probabilities of the two states). The 1-2 coding is used because %RANBRANCH extends to more than two choices.

 


Copyright © 2025 Thomas A. Doan