RUVIDEO
Поделитесь видео 🙏

Sampling the Bernoulli Distribution | Intuition & tutorial using NumPy

How can we generate coin tosses or other binary events from a Bernoulli distribution? Here are the notes https://raw.githubusercontent.com/Ceyron/machine-learning-and-simulation/main/english/essential_pmf_pdf/bernoulli_sampling.pdf

Okay, you have something modelled as a Bernoulli Distribution. For instance, you say the weather can either be bad or good. You know all the parameters, in the Bernoulli case just the probability theta. But how do you sample the distribution? In other words: How do you create datasets that look like they are from this distribution.

Surely, you could just use a sampling method in a high-level library like TensorFlow Probability, but how does it work under the hood? For this we need a source of randomness, which is usually provided by a random number generator of a uniform distribution.

In this video, I want to show the idea of sampling the Bernoulli. Then, we will look at how we could do it in NumPy / Python.

-------

? : Check out the GitHub Repository of the channel, where I upload all the handwritten notes and source-code files (contributions are very welcome): https://github.com/Ceyron/machine-learning-and-simulation

? : Follow me on LinkedIn or Twitter for updates on the channel and other cool Machine Learning & Simulation stuff: https://www.linkedin.com/in/felix-koehler and https://twitter.com/felix_m_koehler

? : If you want to support my work on the channel, you can become a Patreon here: https://www.patreon.com/MLsim

-------

⚙️ My Gear:

(Below are affiliate links to Amazon. If you decide to purchase the product or something else on Amazon through this link, I earn a small commission.)

- ?️ Microphone: Blue Yeti: https://amzn.to/3NU7OAs
- ⌨️ Logitech TKL Mechanical Keyboard: https://amzn.to/3JhEtwp
- ? Gaomon Drawing Tablet (similar to a WACOM Tablet, but cheaper, works flawlessly under Linux): https://amzn.to/37katmf
- ? Laptop Charger: https://amzn.to/3ja0imP
- ? My Laptop (generally I like the Dell XPS series): https://amzn.to/38xrABL
- ? My Phone: Fairphone 4 (I love the sustainability and repairability aspect of it): https://amzn.to/3Jr4ZmV

If I had to purchase these items again, I would probably change the following:

- ?️ Rode NT: https://amzn.to/3NUIGtw
- ? Framework Laptop (I do not get a commission here, but I love the vision of Framework. It will definitely be my next Ultrabook): https://frame.work

As an Amazon Associate I earn from qualifying purchases.

-------

Timestamps:
00:00 Introduction
00:34 What is sampling at all?
01:37 Example: Intro
01:58 A first (non-random) approach
02:19 A source of randomness
03:35 From Uniform to Bernoulli
04:54 Example (cont.)
05:48 NumPy: Random Generator
06:37 NumPy: Transformation to Bernoulli
07:27 NumPy: Writing a function for sampling
08:17 Outro

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Sampling the Bernoulli Distribution | Intuition & tutorial using NumPy», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.