Fundamental mathematical formulas for machine learning (optimization): argmax Reasoning Backward from the Future


arg-max-ml Fundamental mathematical formulas for machine learning (optimization): argmax Reasoning Backward from the Future

arg_max = F(x) Fundamental Machine Learning Equation

argmax: Reasoning Backward from the Future

The fundamental mathematical principle behind all of machine learning (and optimization) is the following formula:

arg_max_{x∈X} F(x)

It means: among all possible inputs tex_cafde94665679fd27198a9a1bf3a41ba Fundamental mathematical formulas for machine learning (optimization): argmax Reasoning Backward from the Future, find the one that maximizes the objective function F(x). The result of this expression is the optimal input x, not the maximum value itself.

This formula represents the idea of reasoning backward from the future to make the best choice now. The space of all possible x’s is often unenumerable, and the function F is usually unknown ahead of time—it’s something we try to learn or approximate. This reflects a “perfect-information” or “goal-directed” perspective.

In contrast, traditional recursive mathematics works in the other direction: using the past to predict the future. For example, the Fibonacci sequence:

tex_0fe4e4d2304a8bbdef33a1aa498754ec Fundamental mathematical formulas for machine learning (optimization): argmax Reasoning Backward from the Future

Here, we assume F(n-1) and F(n-2) are already known, and we infer F(n). This is the core principle behind dynamic programming. It is a way of reasoning forward from the past.

Therefore, machine learning and optimization are essentially about predicting the future. In fact, the argmax formula can be naturally expressed in the following Python code:

def arg_max(X, F):
    best_x = None
    best_score = float('-inf')
    for x in X:
        score = F(x)
        if score > best_score:
            best_score = score
            best_x = x
    return best_x

However, in real-world applications, we can’t directly implement this because:

  • X is an unenumerable set (e.g., all images, all sentences, all action strategies).
  • F(x) is a subjective model that needs to be learned or assumed.

We can however, possibly parallelize the search for best_x in above e.g. parallel_for x in X via multithreading.

Machine Learning Algorithms

Math

–EOF (The Ultimate Computing & Technology Blog) —

550 words
Last Post: Why NordVPN Is the Best Choice for Online Privacy and Security in 2025
Next Post: Telegram Accounts Are Shockingly Easy to Hack Without 2FA

The Permanent URL is: Fundamental mathematical formulas for machine learning (optimization): argmax Reasoning Backward from the Future (AMP Version)

Leave a Reply