cleverly.validation.GaussianAdjustmentOutcome#
- class cleverly.validation.GaussianAdjustmentOutcome(effect: float = 1.0, adjustment_scale: float = 1.0, noise: GaussianNoise = GaussianNoise(mean=0.0, standard_deviation=1.0))[source]#
Declare
f(W) + effect * A + epsilonwith Gaussian noise.The adjustment function standardizes each nonconstant covariate, sums the standardized columns, divides by the square root of how many columns it summed, and multiplies the result by
adjustment_scale. The root-count divisor holds the adjustment standard deviation at aboutadjustment_scalefor any number of approximately independent covariates, so the confounding signal does not shrink against the fixed noise scale as the adjustment set widens. Correlated columns raise that standard deviation instead, which only makes a failure to adjust easier to detect. The known binary arm contrast iseffectbecause the treatment term is additive.- Parameters:
- effect
float Declared effect of treatment code one against code zero.
- adjustment_scale
float Multiplier on the root-count normalized standardized covariate sum.
- noise
GaussianNoise Gaussian law for
epsilon.
- effect
Methods#
Attributes#
- GaussianAdjustmentOutcome.adjustment_function: str = 'scaled_standardized_covariate_sum_over_root_count'#
- GaussianAdjustmentOutcome.known_effect#
Return the derived code-one against code-zero mean contrast.
- GaussianAdjustmentOutcome.noise: GaussianNoise = GaussianNoise(mean=0.0, standard_deviation=1.0)#
- GaussianAdjustmentOutcome.noise_law#
Return the recorded Gaussian noise declaration.