Martin Beneš

Title photo of the author Martin Benes.


Stories


Chance of winning a lottery
Dec 20, 2023

Sportka is a popular lottery in Czechia, with an average superjackpot over 100M CZK. What is the chance of winning the lottery? How much one loses by long-term betting? Today, w...

Birthday paradox
Jun 08, 2021

There is 23 people in the group. What if I tell you that the probability that (at least) two of them have birthday at the same day is more than 0.5? You don't believe? Ok, let's...

K-Nearest Neighbors algorithm on Iris dataset
Jun 02, 2021

Let's go through a basic steps of a classification workflow on species of plants in popular dataset iris. For implementation we shall use Python and a library scikit-learn (skle...