--- title: causality description: Learn how to perform a Granger causality test to determine if X causes y. Understand the parameters and the results returned by the test. keywords: - Granger causality test - causality - perform - determine - exogenous variables - lags - data - target column - results --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Perform Granger causality test to determine if X "causes" y. Parameters ---------- data: List[Data] Input dataset. y_column: str Target column. x_column: str Columns to use as exogenous variables. lag: PositiveInt Number of lags to use in the test. Returns ------- OBBject[Data] OBBject with the results being the score from the test. ```python wordwrap ``` --- ## Parameters This function does not take standardized parameters. --- ## Returns This function does not return a standardized model ---