Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discretize data to use discrete conditional independence test #9

Open
djinnome opened this issue May 11, 2023 · 1 comment
Open

discretize data to use discrete conditional independence test #9

djinnome opened this issue May 11, 2023 · 1 comment

Comments

@djinnome
Copy link
Member

djinnome commented May 11, 2023

Z-transform data, data after normalization
$$\right{ \begin{array}{cc} data > 1.5 = & 1 \ data < -1.5 = & -1, \ otherwise, = & 0\end{array}$$

@djinnome
Copy link
Member Author

Steps to transform the data:

  • normalize the data (subtract off the mean, divide by the variance)
  • Calculate Z-score (if z < -1.5, data = -1, -1.5 <= z <= 1.5 data = 0, z >= 1.5 data = 1
  • run discrete conditional independence test (y0 also dagitty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant