Wolfram Computation Meets Knowledge

Odds Ratio

The odds ratio is a way to quantify how strongly the presence or absence of property A is associated with the presence or absence of property B in a given population.

The odds ratio equals the ratio of the product of the first sample proportion and 1 minus the second sample proportion and the product of the second sample proportion and 1 minus the first sample proportion.

Formula

QuantityVariable["r", "Unitless"] == (QuantityVariable[Subscript[OverHat["p"], "1"], "Unitless"]*(1 - QuantityVariable[Subscript[OverHat["p"], "2"], "Unitless"]))/((1 - QuantityVariable[Subscript[OverHat["p"], "1"], "Unitless"])*QuantityVariable[Subscript[OverHat["p"], "2"], "Unitless"])

symbol description physical quantity
r odds ratio "Unitless"
pHat1 first sample proportion "Unitless"
pHat2 second sample proportion "Unitless"

Forms

Examples

Get the resource:

In[1]:=
ResourceObject["Odds Ratio"]
Out[1]=

Get the formula:

In[2]:=
FormulaData[ResourceObject["Odds Ratio"]]
Out[2]=

Use some values:

In[3]:=
FormulaData[
 ResourceObject["Odds Ratio"], {QuantityVariable["r","Unitless"] -> 4,
   QuantityVariable[
\!\(\*SubscriptBox[
OverscriptBox[\("p"\), \(^\)], \("1"\)]\),"Unitless"] -> 0.5`}]
Out[3]=

Publisher Information