Posts

Showing posts from September, 2025

Unexpected Power: Applying the Pigeonhole Principle in Machine Learning

Image
  The pigeonhole principle in mathematics is an overstated observation. We have more pigeons than holes; thus, at least one hole must contain more than one pigeon. This is, however, a seemingly contradictory concept. In computer science, artificial intelligence (AI), and machine learning (ML), pigeonholes are surprisingly valuable in practice. For instance, error prediction alongside the row/cell counting problem and its variations in any domain of computer science and teaching a computer to learn—these are all examples of pigeons in a cloakroom. The Pigeonhole Principle Restated  Stated more formally, the pigeonhole principle declares: If n houses have n + 1 or more objects, at least one house has more than one object. Sure, it seems to be common sense, but when it comes to data, and more specifically, classification algorithms and the limitations of various models, it implies an explanation for why errors occur and the representation structure of ML data. Example in Clas...

Infinity of Primes Meets Artificial Intelligence: Hidden Connections in Data Science

Image
  Mathematics has always been the main force that moves humanity forward without us realizing it and one of its most intriguing things to discover is the infinity of prime numbers. Going from Euclid's forever proof that primes are never-ending to the latest advancements in cryptography and machine learning, primes have been at the very heart of innovation. However, what if this century-old concept of infinite primes met the technologically advanced field of artificial intelligence and data science? The result may astonish you—these concealed links are the way we design complexity, protect information, and even educate intelligent systems. The Infinity of Primes – A Quick Refresher As Euclid's proof from around 300 BCE demonstrates, primes are infinite. A prime number is a natural number larger than 1 that is only divisible by 1 and itself. Assume we have a list of primes that is finite, for instance  . Multiply them all together and add 1: The number N is not divisible ...

From Math to Machines: How Relations and Functions Drive AI Intelligence

Image
  AI can seem like magic—machines recognizing faces, translating languages, or even writing human-like text. But underneath that “magic” is a bedrock of mathematics. At the core of AI’s logic are relations and functions, two ideas from elementary mathematics that silently steer decision-making, pattern matching, and learning in the smart systems around us. We'll examine the fundamental math that AI is based on in this post, complete with simple examples and useful diagrams. Relations: The Building Blocks of Connections As a relation is a collection of ordered pairs of two sets, so in mathematics, a relation is nothing but a relation of two sets. For example: Consider Set A = {students} and Set B = {courses}. For example, a relation might associate which student is taking which course. Relations in AI enable machines to connect one piece of data to another. Consider social media as a relationship that maps "User → Friends." E-commerce: Relationships between buyers and ...