Need help now? Support now: crisis lines by country.

Mathematical Institute for Research of Pain

Pain math: the mathematics of pain

Pain math for anyone who lives with pain, cares for someone who does, treats it or studies it, written in layers from plain words to the mathematics.

There is no thermometer or measure for pain. I suppose every doctor has wished many times that he had one.

Richard C. Cabot, Social Work: Essays on the Meeting-Ground of Doctor and Social Worker, 1919, p. 39 · Source

What the Institute does

The Mathematical Institute for Research of Pain (MIRP) is for anyone who lives with pain, cares for someone who does, treats it or studies it. It works through the questions people in pain actually ask, in plain words: what is known, what is not yet known, and what would tell us.

The pages are written in layers, from plain words to the mathematics, so each reader can go as deep as they like. Nothing is dumbed down. You don’t need to be a mathematician. If maths feels daunting, you are still welcome here. Start wherever you are.

The Institute is open by invitation while it is being tested.

Some questions people in pain ask are answered in public, in the same layers: Questions about pain.

The words used about pain, and the mathematics behind them, have a public dictionary: Pain words.

For anyone who likes probability, a puzzle with one exact answer: Problem No. 1: Flare or calm first?

A shape over many days

Ask someone in pain how they are, and the answer moves from hour to hour, a little worse and then a little better. One day on its own looks like noise. Look at many days together and a shape appears: a flare that climbs, a peak, a slow way back down.

Pain math starts from that shape, on the 0 to 10 scale people are asked about every day. One line on the scale is a flare threshold. Another is recovery, which is not the same as no pain at all. The time from flare to recovery is what treatment works to shorten.

Which comes first, and how long

One teaching model asks, from today’s state, whether a flare or a recovery comes first and how long the wait is. Possible futures start at today’s state and stop at the first line they reach. The chance of reaching the flare line first is called the committor.

Imagine a forecast saying that a good spell is as likely as another flare to come first. Six weeks later neither has happened, and you start to wonder whether the forecast was wrong. It need not have been wrong. The chance of an event happening first leaves a separate question: how long you might wait.

To read such a percentage, imagine 100 copies of the same starting day and count how many turn out a given way. The committor is a probability under a specified law and starting condition. It is not a measure of how committed someone is to getting better.

In the mathematics, the flare-first chance q+q_+ satisfies ℒq+=0\mathcal{L}q_+ = 0 between the lines, with value 1 on the flare line and 0 on the recovery line, where ℒ\mathcal{L} is the generator of the diffusion. The mean first hitting time mm instead solves ℒm=−1\mathcal{L}m = {-1} with zero boundary values, when the mean is finite. Equal committors therefore need not mean equal waiting times.

Inside, the room Who Gets There First? is about committors and waiting times.

Title page of The Doctrine of Chances: or, A Method of Calculating the Probability of Events in Play, by A. De Moivre, F.R.S., printed in London by W. Pearson for the author in 1718. Between the title and the author’s name, an engraved vase of fruit with a bird on each side.
Abraham de Moivre, The Doctrine of Chances: or, A Method of Calculating the Probability of Events in Play, London: W. Pearson, for the author, 1718, title page. Scan: Fondazione Mansutti, via Wikimedia Commons; public domain. Its Problem IX asks which of two players will first win all the other’s counters, and the book also works out how long such play lasts: the same two questions, which comes first and how long the wait is, that the committor and the waiting time ask of a flare and a recovery.

The Logic of Pain

A claim about pain can sound convincing while leaving a premise unstated. Take “Your scan is normal, so nothing is wrong.” The first part may be an accurate report of what the scan found. The second part does not follow from it. Between them sits an unspoken rule: if anything real were causing pain, this scan would have shown it.

The Logic of Pain makes that step visible without asking anyone to prove their pain or earn care. It holds 56 arguments: 41 do not follow as said, and each one’s form is checked in Lean. Lean is a computer program that checks every step of a proof. The proofs check what follows under stated meanings. They cannot establish what is happening inside a body or certify care.

You do not need to win an argument to deserve care.

Inside the Institute

The Pain Bias Codex gathers checks on conclusions about pain, in four families.

The Tropes of Pain gathers things people say about pain, in forty-nine entries: for each, the step a listener may hear, and whether it follows.

The pain atlas places anatomical structures in a reference body.

The Table of Pain Targets gives each molecule, molecular family or pathway one place, arranged by function and anatomical home.

Teaching models, not forecasts

The models are teaching models: their values are simulated and are not forecasts for anyone. Their paths cannot predict your recovery or your next flare. Each room distinguishes published observations from mathematical examples and states what its conclusions can support. Diagrams are drawn from the data or the stated model they show; invented examples are labelled as invented. Nothing here is medical advice or a forecast about any person.

Need help now? Support now: crisis lines by country.

Ways in

The front door shows working pieces from inside, and the place to enter an invite code. If you have an invite code, type it there. Capital letters, spaces and hyphens don’t matter.

No code yet? Ask for an invite. Leave your email and, if you like, what kind of pain you live with. A person reads every request and writes back by hand with an invite code, so it may take a few days.

Except where a page says otherwise, the Institute’s own text and figures are shared under CC BY-NC 4.0. Pictures and quotations from others keep their own credits and licences.

Back to the invite page · Sign in

Paper