is-probably-odd
Check if a number is odd, with 50% confidence
Check if a number is odd, with 50% confidence
A simple method of picking between multiple options at random with an expected distribution.
Compute the suprisal of an event given its probability.
Compute the surprisal of an event given its probability.
t-SNE visualization algorithm
Weighted list implementation, pick random item using probability distribution
prospectable-elements: Web Components for visualizing Cumulative Prospect Theory
prospectable-math: Equations for calculating Cumulative Prospect Theory
The following functions calculate probability from a z-score and also z-score from a probability.
Here's a tool to help you manipulate probabilities
wrap xorshift128+ to random number generator