[Tex/LaTex] Symbol for not conditionally independent

math-operatorsstatistics

I have previously used some code from here to produce a symbol to represent the conditionally independence of some variables. Does anyone know a method for generating a symbol for not conditionally independent. That is, the symbol below but with a forward slash through the symbol netween a and c. Thank you.

some code

\documentclass{article}

\usepackage{amsmath}
\usepackage{graphicx}

\begin{document}

% function for conditional independence - from link above    
\newcommand{\bigCI}{\mathrel{\text{\scalebox{1.07}{$\perp\mkern-10mu\perp$}}}}

a $\bigCI$ c $\mid$ b

\end{document}

which produces

enter image description here

Best Answer

I'm not sure about the advantage of scaling the symbol by 7%. I propose the definitions for both the scaled and unscaled symbol.

\documentclass{article}
\usepackage{amsmath,graphicx,centernot}

% function for conditional independence - from link above
\newcommand{\bigCI}{\mathrel{\text{\scalebox{1.07}{$\perp\mkern-10mu\perp$}}}}
\newcommand{\nbigCI}{\centernot{\bigCI}}

\newcommand{\CI}{\mathrel{\perp\mspace{-10mu}\perp}}
\newcommand{\nCI}{\centernot{\CI}}

\begin{document}

$a \bigCI c \mid b$ and $a \nbigCI c \mid b$

$a \CI c \mid b$ and $a \nCI c \mid b$

\end{document}

enter image description here

Related Question