Publications by Learning Machines

Contagiousness of COVID-19 Part I: Improvements of Mathematical Fitting (Guest Post)

31.03.2020

Learning Machines proudly presents a guest post by Martijn Weterings from the Food and Natural Products research group of the Institute of Life Technologies at the University of Applied Sciences of Western Switzerland in Sion. The topic of this post will be the fitting with the R-package optim. Food? That sounds like a rather unlikely match for ...

18936 sym R (1202 sym/2 pcs) 160 img

COVID-19 in the US: Back-of-the-Envelope Calculation of Actual Infections and Future Deaths

07.04.2020

One of the biggest problems of the COVID-19 pandemic is that there are no reliable numbers of infections. This fact renders many model projections next to useless. If you want to get to know a simple method how to roughly estimate the real number of infections and expected deaths in the US, read on! As we have seen many times on this blog: simpl...

2555 sym R (3347 sym/2 pcs) 4 img

Learning Data Science: Understanding ROC Curves

14.04.2020

One widely used graphical plot to assess the quality of a machine learning classifier or the accuracy of a medical test is the Receiver Operating Characteristic curve, or ROC curve. If you want to gain an intuition and see how they can be easily created with base R read on! Many machine learning classifiers give you some kind of score or probabi...

3322 sym R (1836 sym/6 pcs) 10 img

COVID-19: Analyze Mobility Trends with R

21.04.2020

The global lockdown has slowed down mobility considerably. This can be seen in the data produced by our ubiquitous mobile phones. Apple is kind enough to make those anonymized and aggregated data available to the public. If you want to learn how to get a handle on those data and analyze trends with R read on! To download the current data set go ...

3079 sym R (8460 sym/8 pcs) 14 img

ZeroR: The Simplest Possible Classifier… or: Why High Accuracy can be Misleading

28.04.2020

In one of my most popular posts So, what is AI really? I showed that Artificial Intelligence (AI) basically boils down to autonomously learned rules, i.e. conditional statements or simply, conditionals. In this post, I create the simplest possible classifier, called ZeroR, to show that even this classifier can achieve surprisingly high values for...

5595 sym R (4550 sym/8 pcs) 8 img

Learning R: Build xkcd’s Star Wars Spoiler Generator

05.05.2020

Star Wars is somewhat nerdy, R definitely is… what could be more worthwhile than combining both This Sunday was Star Wars Day (May the 4th be with you!) and suitable for the occasion we will do a little fun project and implement the following xkcd flowchart, which can give us more than 2 million different Star Wars plots. Even if you are new t...

1413 sym R (4313 sym/4 pcs) 8 img

Will AI become conscious any time soon?

12.05.2020

We all know the classical Sci-Fi trope of intelligent machines becoming conscious and all the potential ramifications that could follow from there (free will, fighting their human creators, ethical dilemmas and so forth). Now, is this a realistic scenario? As a researcher in the area of AI (see e.g. So, what is AI really?), with a penchant for ph...

7393 sym 6 img

Lying with Statistics: One Beer a Day will Kill you!

19.05.2020

About two years ago the renowned medical journal “The Lancet” came out with the rather sensational conclusion that there is no safe level of alcohol consumption, so every little hurts! For example, drinking a bottle of beer per day (half a litre) would increase your risk of developing a serious health problem within one year by a whopping 7%!...

3128 sym R (1212 sym/4 pcs) 8 img

Learning Statistics: Randomness is a Strange Beast

26.05.2020

Our intuition concerning randomness is, strangely enough, quite limited. While we expect it to behave in certain ways (which it doesn’t) it shows some regularities that have unexpected consequences. In a series of seemingly random posts, I will highlight some of those regularities as well as consequences. If you want to learn something about ra...

4463 sym R (665 sym/4 pcs) 16 img

Learning R: Build a Password Generator

02.06.2020

It is not easy to create secure passwords. The best way is to let a computer do it by randomly combining lower- and upper-case letters, digits and other printable characters. If you want to learn how to write a small function to achieve that read on! The exact task is again taken from Rosetta Code: Create a password generation program which wil...

3020 sym R (790 sym/1 pcs) 4 img