A hint to The Book of Why by Judea Pearl
The Book of Why by Judea Pearl is a seminal work on causal inference, and it introduces the concept of a causal inference engine based on the framework of causal diagrams (also known as causal graphs (X => Y). Here's a simplified explanation of the causal inference process