Lesson 7 of 20

Does more tissue mean more infiltration? — hunting a confounder

finding nothing is a result too

Does more tissue mean more infiltration? — hunting a confounder
Suspect it, measure it, and if it is not there, write that down. Checking confounders is basic courtesy before publishing a result.

In lesson 2 we settled on tissue tiles as the denominator. But one worry remains.

A slide with a lot of tissue contains that many more different regions — tumour margin, normal tissue, maybe a lymph node. So might a larger tissue area give a higher infiltration rate? And if it did, "high infiltration" might really be reporting "a lot of tissue was sectioned".

That is called confounding. Let us measure it.

This error is on purpose — import pandas as pd is missing. It is practice at reading an error message.
Python Runs in your browser
rho = 0.047. The p-value is a small 0.0007, but the per-bin medians run almost flat between 4.1% and 5.5%.
Python Runs in your browser

There is something to learn here.

a small p ≠ a large effect

With 5,201 slides, even a tiny correlation becomes "statistically significant". But the actual size is rho = 0.047 — near enough to nothing. The median gap between the smallest and largest tissue bins is 1.4 pp, and the measurement error we meet in lesson 11 is 1.8 pp. The difference is smaller than the error.

So the conclusion is "tissue size is not a confounder worth worrying about in this data". We looked, and it was not there. That is a result too.

Check it per cancer type as well. A flat red line (the per-bin median) means no confounding.
Loading…
🤔 Check yourself
At n = 5,201 you get rho = 0.047 with p = 0.0007. What is the right reading?
🤔 Check yourself
You checked for a confounder and there was none. What belongs in the paper?