Beyond the day job

Mathematics, games & forecasting

Gabriel's work in IT is about systems that should behave predictably and people who rely on them. His interests follow the same thread: the mathematics of chance and strategy in card games, and the long cycles of the sky that people have tried to model and forecast for thousands of years.

01 · Mathematics & technology

The language underneath every system

Every system Gabriel has supported, from client machines to a conversational chatbot, comes down to logic, data and probability. Mathematics is what makes those systems understandable rather than mysterious.

That is what links his Bachelor's degree in Information Technology at MCAST with his top skills in machine learning, databases and Python. Machine learning is applied statistics and optimisation. Databases rest on set theory and relational algebra. Python is the tool that turns an equation into something you can run, test and check against reality.

The two subjects below are where he likes to apply that toolkit for its own sake: games, where the maths is exact, and forecasting, where the hard part is knowing what the maths can and cannot tell you.

02 · Game theory & card games

A deck of cards is a probability machine

Card games are small, closed worlds with exact rules, which makes them ideal for studying chance, incomplete information and strategy. Every hand is a decision made under uncertainty, judged by its expected value rather than its result.

Possible orderings of a 52-card deck (52!). A well-shuffled deck is almost certainly in an order never seen before.
8.07 × 10⁶⁷
Distinct five-card poker hands: 52 choose 5.
2,598,960
Chance of a pocket pair in Texas Hold'em. Whatever your first card, 3 of the remaining 51 match it.
1 in 17
Chance a flush draw on the flop (9 outs) completes by the river: 1 − (38/47 × 37/46).
≈ 35%

Expected value

Every decision is a weighted average of outcomes. A call is right when the pot odds pay more than the probability of winning costs, regardless of how any single hand turns out.

Nash equilibrium

A set of strategies where no player gains by changing theirs alone. In poker it describes play that cannot be exploited, even by an opponent who knows exactly what you are doing.

Mixed strategies & bluffing

Bluffing is not a personality trait; it is a probability. Von Neumann showed that optimal play must bluff at a precise frequency, or a thinking opponent can exploit the pattern.

Bankroll & the Kelly criterion

Kelly's formula gives the stake that maximises long-run growth for a given edge. It is the same idea risk managers use to size bets on uncertain outcomes.

From von Neumann to poker AI

  1. 1944

    John von Neumann and Oskar Morgenstern publish Theory of Games and Economic Behavior, with a simplified poker model at its heart.

  2. 1950

    John Nash defines the equilibrium concept that now carries his name.

  3. 1956

    John L. Kelly Jr. at Bell Labs publishes the betting formula later known as the Kelly criterion.

  4. 1962

    Edward O. Thorp's Beat the Dealer uses probability and computer simulation to show blackjack can be beaten by card counting.

  5. 2017

    Carnegie Mellon's Libratus beats top professionals at heads-up no-limit Hold'em, using counterfactual regret minimisation.

  6. 2019

    Pluribus, from Carnegie Mellon and Facebook AI, beats elite professionals in six-player no-limit Hold'em.

That last step is where game theory meets Gabriel's interest in machine learning: the strongest poker programs were not given strategies. They learned them by playing against themselves billions of times and steadily reducing their regret.

Try it · Monte Carlo simulation

How often are you dealt a pocket pair?

Maths says 3 in 51, about 5.88%. Deal random two-card hands and watch the observed rate settle towards the exact answer as the sample grows.

Hands dealt
0
Observed rate
–
Exact probability
5.88%

03 · Astronomical cycles & forecasting

Modelling the sky, testing the forecast

Astrological forecasting rests on a genuinely mathematical foundation: the positions and cycles of the Sun, Moon and planets, which can be calculated precisely for any moment, past or future. What interests Gabriel is that mathematics, and the question every forecasting model has to answer: does it actually predict anything?

The mathematics of cycles

Planetary positions follow Kepler's laws of orbital motion. Modern ephemerides, the tables of where each body will be, are computed by numerically integrating the whole solar system. The angles between bodies, which astrology calls aspects, are simple geometry on top of that data.

People have modelled these rhythms for millennia. The Greek Antikythera mechanism, built around the 2nd century BC, used bronze gears to compute lunar cycles and predict eclipses. It is often called the world's first analogue computer.

Even an effect like Mercury “going retrograde” is pure geometry: it happens three or four times a year as Earth and Mercury overtake each other, which makes the planet appear to move backwards against the stars.

The synodic month: new moon to new moon.
29.53 days
The Metonic cycle: 235 lunar months line up almost exactly with 19 solar years.
19 years
The Saros cycle, used since antiquity to predict when similar eclipses return.
≈ 18 yrs 11 days
The Jupiter–Saturn synodic period. Their last “great conjunction” was on 21 December 2020.
≈ 19.86 years

How to test a forecasting model

The same discipline applies to an astrological model, a stock forecast or a machine learning model predicting server load.

  1. 01

    State the hypothesis

    Write the claim as something measurable: which cycle, which outcome, over what time window.

  2. 02

    Compute, don't approximate

    Take planetary positions from published ephemerides such as NASA JPL's DE440, not from hand-drawn tables.

  3. 03

    Beat a baseline

    A forecast only adds value if it beats a simple benchmark, such as “tomorrow looks like today” or a seasonal average.

  4. 04

    Test out of sample

    Fit on one period and test on another. With enough cycles and parameters, any model can match the past; few predict the future.

Connecting the dots

Where these interests meet his work

These ideas are not separate from Gabriel's IT career. The same patterns show up in the work he did at MITA.

  • Game trees relates to Chatbot development

    The conversational topics Gabriel built for the MITA SAM Chatbot in Power Virtual Agents are branching decision trees: each user reply moves the conversation to a new node, just like a move in a game tree.

  • Bayesian reasoning relates to System diagnostics

    Good troubleshooting is probability in action. Each test result raises or lowers the likelihood of each possible cause until one explanation clearly wins.

  • Cycles & time series relates to Log & feedback analysis

    Finding recurring operational bottlenecks in system logs is the same pattern-hunting that cycle analysis needs, along with the same discipline about telling signal from noise.

  • Forecasting relates to Preventive maintenance

    Scheduling inspections before equipment fails is forecasting in its most practical form: estimating when something is likely to break and acting first.

  • Strategic interaction relates to Vendor & service management

    Coordinating with external vendors on parts and turnaround times is a repeated game, where cooperation and reliability pay off over many rounds.

Toolkit

Skills that make the ideas testable

  • Python

    Monte Carlo simulations of card games, probability calculations, and scripts that compute and analyse astronomical cycles.

  • Databases

    Storing and querying long time series, such as hand histories, ephemeris data or service metrics, so patterns can be tested rather than eyeballed.

  • Machine Learning

    Models that learn strategies or forecast outcomes, along with the validation habits that stop a model from fooling its own author.

Talk maths, games or models

Gabriel is happy to connect with people who share these interests.