Month: July 2021
-
Introduction to Linear & Polynomial Regression
Problem Definition Let’s say you run a business and you’re spending a varying amount of money on advertisements every single month.Naturally, your revenue is not uniform across all months and you’re trying to better understand and hopefully predict how do ads spendings predict revenue. I spent X on ads this month so my revenue should…
-
Automate a New Project Creation
Although it is not such a demanding task I looked into automating the process of creating a new project since automating stuff is always nice.Instead of creating some git repo and upload it to github with a README file manually, we are going to do it in one command, and it’s not even hard to…
-
The Simplest Open Problem In Mathematics
The Collatz Conjecture was posed in 1937 by Lothar Collatz, two years after he received his Ph.D. It remains open to this day. “Mathematics may not be ready for such problems.” — Paul Erdős. “This is an extraordinarily difficult problem, completely out of reach of present day mathematics.” — Jeffrey Lagarias What’s the conjecture about? The Collatz Conjecture states…
-
SVD Image Compression in Python
In this article we are going to take a deep dive into the SVD compression algorithm.I’ll start with explaining the theory and going through an example, and after we got our theory covered I’ll share with you the code to implementing this algorithm in Python. Before we begin, note that I’m going to assume you…
-
3 Visual Mathematical Proofs
Math is beautiful for a lot of reasons. Some would appreciate the little details in a rigorous proof and others might be fascinated with complex patterns that emerge from seemingly simple equations. In this article, we are going to concentrate on a different aspect that makes math beautiful, at least in my opinion, and it’s…
-
City Planning Using Graph Theory
Let’s wear our “city-planner’s” hats for this article. Assume that we are building a new city with n neighborhoods and m one-way roads between them. Being city planners, we have a passion for pizza, and we want to place a minimal amount of pizzerias such that from each pizzeria the delivery guy could drive to a certain neighborhood and go back as well.…
-
John Conway’s Impossible Game
Conway’s Soldiers was invented by John Conway in 1961.The structure and rules of the game are quite simple: You have an infinite checkerboard and infinite ‘soldiers’. The board is divided by an infinite horizontal line. A valid move consists of jumping over one neighboring soldier vertically or horizontally (diagonal movement is not allowed). A soldier…