# Switching Regression Models and Causal Inference in the Presence of Discrete Latent Variables

arXiv: https://arxiv.org/abs/1808.05541 · HTML: https://mlsanity.com/paper/1808.05541/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 16 Aug 2018.

## Built on by (most cited first, 4 of 4)

- [Model-based causal feature selection for general response types](https://mlsanity.com/paper/2309.12833/) (2023)
- [Maximum Risk Minimization with Random Forests](https://mlsanity.com/paper/2512.10445/) (2025)
- [Sequential Stochastic Optimization in Separable Learning Environments](https://mlsanity.com/paper/2108.09585/) (2021)
- [Invariant Causal Prediction with Local Models](https://mlsanity.com/paper/2401.05218/) (2024)

## Abstract (arXiv)

Given a response Y and a vector X = (X1, dots, Xd) of d predictors, we investigate the problem of inferring direct causes of Y among the vector X. Models for Y that use all of its causal covariates as predictors enjoy the property of being invariant across different environments or interventional settings. Given data from such environments, this property has been exploited for causal discovery. Here, we extend this inference principle to situations in which some (discrete-valued) direct causes of  Y  are unobserved. Such cases naturally give rise to switching regression models. We provide sufficient conditions for the existence, consistency and asymptotic normality of the MLE in linear switching regression models with Gaussian noise, and construct a test for the equality of such models. These results allow us to prove that the proposed causal discovery method obtains asymptotic false discovery control under mild conditions. We provide an algorithm, make available code, and test our method on simulated data. It is robust against model violations and outperforms state-of-the-art approaches. We further apply our method to a real data set, where we show that it does not only output causal predictors, but also a process-based clustering of data points, which could be of additional interest to practitioners.
