Skip to content

Instantly share code, notes, and snippets.

View ethnt's full-sized avatar
🐢

Ethan Turkeltaub ethnt

🐢
View GitHub Profile
@ethnt
ethnt / gist:7405897
Last active December 27, 2015 23:28 — forked from anonymous/gist:7405894

Randomness and Probability

  • Bernoulli trial: a random variable such that;
    1. Two possible outcomes, success and failure;
    2. Probability of success is always the same (P(success) = p);
    3. All trials are independent.

Examples:

  • fair coin (50% chance of heads and tails), heads = success, p = 1/2
@ethnt
ethnt / Gemfile
Last active December 15, 2015 14:49 — forked from passcod/Gemfile
How to use Sidekiq with Padrino.
# ...
gem 'sidekiq'
gem 'slim'
# ...