1. Backtesting in Python

    A backtest runs a trading rule over past prices and reports what would have happened: the return, the risk, the number of trades.

    pythonbacktesting

  2. Building models with scikit-learn

    scikit-learn is one interface, fit and predict, wrapped around every classical machine-learning method, plus the scaffolding that turns a model into a result…

    pythonmachine-learning

  3. The Python stack for machine learning

    Almost all machine learning work is done in Python, through a few dozen libraries that each exist for one kind of job.

    pythonmachine-learning

  4. Boosting: models that learn from the last one's mistakes

    Boosting builds a strong model from many weak ones trained in sequence, each focusing on what the previous ones got wrong.

    ml basicsmachine-learningensembles

  5. Random forests: bagging with one extra rule

    A random forest is bagging with one extra rule: at every split, each tree may only choose from a random handful of the features.

    ml basicsmachine-learningensembles

  6. Machine learning for trading in ten ideas

    Ten ideas carry the machine-learning half: the target decides the problem, the data is part of the model, every feature has a timestamp, a linear model is a…

    machine-learningensembles

  7. Quantitative finance in ten ideas

    Ten ideas carry most of quantitative finance: returns multiply, risk scales with the square root of time, correlation decides how much risk cancels, an…

    statisticsportfolio

  8. Portfolio optimisation: choosing the weights

    Portfolio optimisation chooses how much to put in each asset so that, for the risk you accept, the expected return is as high as possible; it works because…

    finance statsstatisticsportfolio

  9. Bagging: many copies of a model, averaged

    Bagging trains many copies of the same model, each on a slightly different random resample of the data, and averages their answers; the copies make different…

    ml basicsmachine-learningensembles

  10. Sharpe, Sortino and information ratio: return per unit of risk

    A return on its own means little until you know the risk taken to get it; these three ratios divide extra return by risk, and they differ only in what they…

    finance statsstatisticsportfolio

  11. Bias and variance: where a model's errors come from

    A model's error on new data comes from three places: bias (it is too simple to capture the real pattern), variance (it changes too much depending on which data…

    ml basicsmachine-learningoverfitting

  12. Covariance and correlation: why a mix is safer than its parts

    Covariance and correlation measure whether two things tend to move together; in a portfolio, that one number decides how much of the risk cancels out, which is…

    finance statsstatisticsportfolio

  13. Decision trees: a model made of yes/no questions

    A decision tree makes a prediction by asking a short series of yes/no questions about the input, like a flowchart an expert would draw; it learns which…

    ml basicsmachine-learningdecision-trees

  14. Mean and standard deviation: return and risk in two numbers

    The mean tells you where the middle of your data is, and the standard deviation tells you how far a typical value strays from that middle; in finance the first…

    finance statsstatisticsreturns

  15. Linear regression: the first model, a straight line

    Linear regression draws the straight line that best fits your data, where "best" means the total of the squared misses is as small as possible; each number it…

    ml basicsmachine-learningregression

  16. Expected value: what a risky choice is worth on average

    Expected value is the average result you would get if you could repeat a risky situation many times: multiply each possible outcome by its probability and add…

    finance statsstatisticsprobability

  17. Regression vs classification: predicting a number or a label

    Most machine learning answers one of two questions: "how much?" (regression, the answer is a number) or "which one?" (classification, the answer is a category).

    ml basicsmachine-learningvolatility

  18. Probability: how often something happens

    A probability is a number between 0 and 1 that says how often something happens in the long run.

    finance statsstatisticsprobability

  19. What machine learning is: rules learned from examples

    Machine learning is teaching a computer by example instead of by instruction: you show it many past cases with the right answers, it works out the pattern on…

    ml basicsmachine-learningfraud

  20. What is quantitative finance?

    Quantitative finance is the practice of making investment and risk decisions from measured numbers and tested rules rather than judgement alone.

    quantitative-financecareers

  21. Letting my homelab do things on its own

    A chat window only answers when I ask. I wanted my homelab to also do small jobs for me on its own, so I tried two AI agents, OpenClaw and Hermes Agent.

    agentshermes

  22. Switching to a smaller model

    I expected a new, smaller model to be slower on my homelab, and at first it was. Then I found one setting that more than doubled its speed.

    llmself-hosting

  23. Setting up my homelab

    I wanted my own private AI, running at home, where nothing I ask leaves the house.

    llmself-hosting