More Independence Tests Used for Causal Inference

Open
#312 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Begin with the linked gsq project and hyppo's documentation to determine which additional conditional-independence tests are in scope. Define supported data types, limitations, benchmarks, and acceptance tests before implementation; done means the selected tests are documented and usable for the stated simulations.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
In causal inference - causal discovery problems, there are two approaches: i) constraint-based and ii) score-based.

Constraint-based algorithms are based on conditional independence testing, which is severely lacking in Python, hence why I use hyppo. Most are in R, but not Python.

There are a number of simple CI tests that would be beneficial (imo) to add to hyppo. These simple CI tests might be worse and less powerful compared to the ones currently in hyppo, but might be significantly faster and also useful as a benchmark.

Describe the solution you'd like
For example, the PC algorithm developed in R uses the G-squared test for binary data.

https://github.com/keiichishima/gsq/

In addition, other less complex conditional independence tests are desirable for the sake of just being able to run on simple simulations.

Additional context (e.g. screenshots)
Obviously the tests are limited. E.g. G-squared is for binary data and/or discrete data in the linked repo. However, this can just be explicitly noted in the docs.

Dominant language
Python
Stars
253
Forks
103
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from neurodata/hyppo

All issues in neurodata/hyppo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.