conditional_independence.gauss_invariance_suffstat

conditional_independence.gauss_invariance_suffstat(obs_samples, context_samples_list)[source]

Helper function to compute the sufficient statistics for the gauss_invariance_test from data.

Parameters
  • obs_samples – (n x p) matrix, where n is the number of samples and p is the number of variables.

  • context_samples_list – list of (n x p) matrices, one for each context besides observational

Returns

dictionary of sufficient statistics

Return type

dict