TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Seven basic rules for causal inference

218 pointsby RafelMri9 months ago

14 comments

levocardia9 months ago
&gt;Controlling for a collider leads to correlation<p>This is a big one that most people are not aware of. Quite often, in economics, medicine, and epidemiology, you&#x27;ll see researchers adjust for everything in their regression model: income, physical activity, education, alcohol consumption, BMI, ... without realizing that they could easily be inducing collider bias.<p>A much better, but rare, approach is to sit down with some subject matter experts and draft up a DAG - directed acyclic graph - that makes your assumptions about the causal structure of the problem explicit. Then determine what needs to be adjusted for in order to get a causal estimate of the effect. When you&#x27;re explicit about your causal assumptions, it makes it easier for other researchers to propose different causal structures, and see if your results still hold up under alternative causal structures.<p>The DAGitty tool [1] has some cool examples.<p>[1] <a href="https:&#x2F;&#x2F;www.dagitty.net&#x2F;dags.html" rel="nofollow">https:&#x2F;&#x2F;www.dagitty.net&#x2F;dags.html</a>
评论 #41293712 未加载
abeppu9 months ago
At the bottom, the author mentions that by &quot;correlation&quot; they don&#x27;t mean &quot;linear correlation&quot;, but all their diagrams show the presence or absence of a clear linear correlation, and code examples use linear functions of random variables.<p>They offhandedly say that &quot;correlation&quot; means &quot;association&quot; or &quot;mutual information&quot;, so why not just do the whole post in terms of mutual information? I <i>think</i> the main issue with that is just that some of these points become tautologies -- e.g. the first point, &quot;independent variables have zero mutual information&quot; ends up being just one implication of the definition of mutual information.
评论 #41292561 未加载
评论 #41293166 未加载
0823498723498729 months ago
Can these seven be reduced to three basic rules?<p>- controlling for a node increases correlation among pairs where both are ancestors<p>- controlling for a node does not affect (the lack of) correlation among pairs where at least one is categorically unrelated (shares no ancestry with that node)<p>- controlling for a node decreases correlation among pairs where both are related but at least one is not an ancestor
currymj9 months ago
Rule 2 (“causation creates correlation”) would be strongly disputed by a lot of people. It relies on the assumption of “faithfulness” which is not discussed until the bottom of the article.<p>This is a very innocent sounding assumption but it’s actually quite strong. In particular it may be violated when there are control systems or strategic agents as part of the system you want to study — which is often the case for causal inference. In such scenarios (eg the famous thermostat example) you could have strong causal links which are invisible in the data.
评论 #41290410 未加载
评论 #41292933 未加载
评论 #41292101 未加载
评论 #41290078 未加载
评论 #41291011 未加载
评论 #41292043 未加载
crystal_revenge9 months ago
&gt; Independent variables are not correlated<p>But it&#x27;s important to remember that <i>dependent</i> variables can also be <i>not correlated</i>. That is <i>no correlation</i> does <i>not</i> imply independence.<p>Consider this trivial case:<p>X ~ Uniform(-1,1)<p>Y = X^2<p>Cor(X,Y) = 0<p>Despite the fact that Y&#x27;s value is absolutely determined by the value of X.
评论 #41294804 未加载
评论 #41294656 未加载
nomilk9 months ago
Humble reminder of how easy R is to use. Download and install R for your operating system: <a href="https:&#x2F;&#x2F;cran.r-project.org&#x2F;bin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cran.r-project.org&#x2F;bin&#x2F;</a><p>Start it in the terminal by typing:<p><pre><code> R </code></pre> Copy&#x2F;paste the code from the article to see it run!
评论 #41294295 未加载
评论 #41293844 未加载
评论 #41294236 未加载
Vecr9 months ago
Are the assumptions &quot;No spurious correlation&quot;, &quot;Consistency&quot;, and &quot;Exchangeability&quot; ever actually true? If a dataset&#x27;s big enough you should generally be able to find at least one weird correlation, and the others are limits of doing statistics in the real world.
评论 #41293210 未加载
Rhapso9 months ago
I&#x27;m keeping this link, taking a backup and handing it out whenever i can. It is succinct and effective.<p>These are concepts i find myself constantly having to explain and teach and they are critical to problem solving.
dkga9 months ago
I highly suggest this paper here for a more complete view of causality that nests do-calculus (at least in economics):<p>Heckman, JJ and Pinto, R. (2024): “Econometric causality: The central role of thought experiments”, Journal of Econometrics, v.243, n.1-2.
评论 #41290805 未加载
评论 #41291484 未加载
chrsig9 months ago
&gt; Rule 8: Controlling for a causal descendant (partially) controls for the ancestor<p>perhaps this is a quaint or wildly off base question, but an honest one, please forgive any ignorance:<p>Isn&#x27;t this essentiallydefining the partial derivative? Should one arrive at the calculus definition of a partial derivative by following this?
评论 #41293940 未加载
shiandow9 months ago
This is missing my favourite rule.<p>0. The directions of all arrows not part of a collider are statistically meaningless.
评论 #41289998 未加载
lordnacho9 months ago
This is brilliant. The whole causal inference thing is something I only came across after university, either I missed it or it is a hole in the curriculum, because it seems incredibly fundamental to our understanding of the world.<p>The thing that made be read into it was a quite interesting sentence from lesswrong, saying that actually the common idea that correlation does not imply causation is wrong. Now it&#x27;s not wrong in the face-value sense, it&#x27;s wrong in the sense that actually you can use correlations to learn something about causation, and there turns out to be a whole field of study here.
评论 #41289863 未加载
评论 #41292028 未加载
评论 #41291636 未加载
arunsupe9 months ago
Great post. It&#x27;s nice that these rules can be trivially demonstrated by simulation. The simulation (and visuals) helps validate the concepts.
raymondh9 months ago
Is there a simple R example for Rule 4?
评论 #41293022 未加载