Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Binary Mutual Information from Counts

Measure dependence between two binary variables using a positive 2×2 count table.

Statistics workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaInformation = (a*log2(a*(a+b+c+d)/((a+b)*(a+c)))+b*log2(b*(a+b+c+d)/((a+b)*(b+d)))+c*log2(c*(a+b+c+d)/((c+d)*(a+c)))+d*log2(d*(a+b+c+d)/((c+d)*(b+d))))/(a+b+c+d)
Sources and model references

Made for real tasks

  • Measure dependence between two binary variables using a positive 2×2 count table.
Explore step-by-step workflows →

Worked example

Inputs

Count X0 Y0
30 count
Count X0 Y1
10 count
Count X1 Y0
10 count
Count X1 Y1
50 count

Expected results

Information
0.2564258917 bits

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter count x0 y0, count x0 y1, count x1 y0, count x1 y1.
  2. Use the displayed units and confirm the model assumptions.
  3. Calculate and compare the outputs against your input scenario.

Try this example

{
  "a": 30,
  "b": 10,
  "c": 10,
  "d": 50
}

Accuracy and scope

Positive cell counts required. Plug-in estimate has finite-sample bias and is not a causal effect or p-value.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.