meridian.analysis.review.checks.PotentialBiasCheck

A check for correlation between paid channels and control variables to flag potential confounding.

Inherits From: BaseCheck

Methods

is_relevant

View source

Checks if the check is relevant for the given model context.

run

View source

Runs the potential bias check.

This check computes the Pearson correlation between each paid channel's media/RF data and all control variables. It flags channels where the maximum absolute correlation with any control variable exceeds a predefined threshold.

Returns
A results.PotentialBiasCheckResult object containing the results of the check.