bayesplain.core.correlation.validate_pair

bayesplain.core.correlation.validate_pair(x, y)[source]

Check two paired samples and drop rows where either value is missing.

Parameters:
x : array_like

Paired observations of equal length.

y : array_like

Paired observations of equal length.

Returns:

The complete pairs.

Return type:

tuple of ndarray

Raises:

ValueError – If the lengths differ, fewer than four complete pairs remain, or either variable is constant.