Sticky Post – Read this first. Categories and Links in Mathemafrica

The navigability of Mathemafrica isn't ideal, so I have created this post which might guide you to what you are looking for. Here are a number of different categories of post which you might like to take a look at: First year mathematics notes and resources (particularly for the University [...]

By | January 17th, 2018|0 Comments

Preliminaries for CRL

In the previous blog post we discussed and motivated the need for a causal approach to reinforcement learning. We argued that reinforcement learning naturally falls on the interventional rung of the ladder of causation. In this blog post we'll develop some ideas necessary for understanding the material covered in this [...]

By | April 6th, 2021|1 Comment

Causal Reinforcement Learning: A Primer

As part of any honours degree at the University of Cape Town, one is obliged to write a thesis 'droning' on about some topic. Luckily for me, applied mathematics can pertain to pretty much anything of interest. Lo and behold, my thesis on merging causality and reinforcement learning. This was [...]

By | February 3rd, 2021|1 Comment

Covid-19 tests: probabilities

Bayes' Theorem is applied to medical tests, to calculate the probability of being infected with a virus, given a positive or negative test result. What drives the uncertainty is false negative results, or false positive results. In this article, I give a practical outline as to how one can interpret [...]

By | January 1st, 2021|0 Comments

A challenging limit

This post comes mostly from the youtube video by BlackPenRedPen found here: This in turn comes from - details and links can be found in the original video In this post we will have a look at a complicated-looking limit that has an interesting solution. Here it is: $latex [...]

By | November 29th, 2020|0 Comments

Parrondos Paradox

Introduction In this post we will have a look at Parrondos paradox. In a paper* entitled "Information Entropy and Parrondo's Discrete-Time Ratchet"** the authors demonstrate a situation where, by switching between 2 losing strategies, we can create a winning strategy. Setup The setup to this paradox is as follows: We [...]

By | November 11th, 2020|0 Comments

Basic Reverse Image Search Using an Autoencoder

Introduction In this post we are going to create a simple reverse image search on the MNIST handwritten image dataset. That is to say, given any image, we want to return images that look most similar to it. To do this, we will use an autoencoder, trained using Tensorflow 2. [...]

By | October 21st, 2020|0 Comments

A simple introduction to causal inference

  Introduction Causal inference is a branch of Statistics that is increasing in popularity. This is because it allows us to answer questions in a more direct way than do other methods. Usually, we can make inference about association or correlation between a variable and an outcome of interest, but [...]

By | August 20th, 2020|0 Comments

Inverse Reinforcement Learning: Guided Cost Learning and Links to Generative Adversarial Networks

Recap In the first post we introduced inverse reinforcement learning, then we stated some result on the characterisation of admissible reward functions (i.e reward functions that solve the inverse reinforcement learning problem), then on the second post we saw a way in which we proceed with solving problems, more or [...]

By | May 28th, 2020|0 Comments

Maximum Entropy Inverse Reinforcement Learning: Algorithms and Computation

In the previous post we introduced inverse reinforcement learning. We defined the problem that is associated with this field, which is that of reconstructing a reward function given a set of demonstrations, and we saw what the ability to do this implies. In addition to this, we also saw came [...]

By | May 22nd, 2020|0 Comments

Inverse Reinforcement Learning: The general basics

Standard Reinforcement Learning The very basic ideas in Reinforcement Learning are usually defined in the context of Markov Decision Processes. For everything that follows, unless stated otherwise, assume that the structures are finite. A Markov Decision Process (MDP) is a tuple $latex (S,A, P, \gamma, R)$ where the following is [...]

By | May 17th, 2020|0 Comments
Continue Reading….