## Maths in a minute: Odds ratios

An odds ratio gives you a way of measuring how strongly and event is associated to an event .

This is best understood using an example. Suppose you've created a home made face cream but some of the friends you've given it to said they got spots after using it. The odds ratio gives you a way of measuring how strongly people getting spots is associated to using the face cream, using available data.

Let’s suppose that you gave the face cream to 10 people, 6 of whom developed spots within a week. The odds of getting spots, having used the face cream, is the ratio between the number of people who got spots and the number of people who didn’t, so that’s .

Since people might develop spots spontaneously for other reasons too, you ask the friends you haven’t given the face cream to if they also developed spots within a week. Suppose that there are 20 people in total you haven’t given the cream to, and that 5 of them did develop spots. The odds of developing spots, having not used the cream, is therefore .

The odds ratio compares the odds of spots with the cream to the odds of spots without the cream. It does so by taking the ratio of the former to the latter:

Since this number is greater than you know that the odds of getting spots having used the cream is bigger than the odds of spots not having used the cream — in fact, it’s more than four times as big. This indicates an association of using the cream and getting spots. Were the ratio less than , then this would indicated an association between not using the cream and getting spots. And were it exactly equal to , then this might indicate that whether or not you get spots has nothing to do with the cream.

Note that an odds ratio does not deliver conclusive proof that one event causes another, for example that the cream causes spots. Even though in our example the odds ratio indicates an association between the cream and spots, this association could simply be down to chance. Or it could be down to other factors. For example, you may have chosen to give the face cream to people you know have problem skin, in which case them having a higher odds of developing spots is not surprising. It's important not to confuse correlation with causation. To get conclusive answers as to what your cream does to skin you need to do more research.

Let’s now look at the general formula for working out an odds ratio to see how strongly event is associated to event . Suppose that in outcomes of a process event occurred and event also occurred, and that in outcomes event didn’t occur and event occurred. The odds of occurring alongside is therefore .

Also suppose that in outcomes of the process event occurred and event didn’t occur, and that in outcomes event didn’t occur and event didn’t occur. The odds of occurring in the absence is therefore .

The odds ratio here is

Note that the word "event" here is used in a very general sense. For example, if you had a group of cats and dogs and wanted to see whether catching mice is something associated to cats more than dogs, then "being a cat" and "being a dog" would be classed as events.

*This article now forms part of our collaboration with the Isaac Newton Institute for Mathematical Sciences (INI) – you can find all the content from the collaboration here. *

*
The INI is an international research centre and our neighbour here on the University of Cambridge's maths campus. It attracts leading mathematical scientists from all over the world, and is open to all. Visit www.newton.ac.uk to find out more. *