What is the correct way to apply the chain rule if the independent variable is binary?
Concretely, say you have the expression
$\frac{\partial y}{\partial x} = \frac{\partial y}{\partial z}\frac{\partial z}{\partial x}$
and you want to write an analogous expression where x is a binary variable (y and z are continuous). Would the following be correct?
$\frac{\Delta y}{\Delta x} = \left(\lim_{\Delta z \rightarrow 0}\frac{\Delta y}{\Delta z} \right) \frac{\Delta z}{\Delta x}$
Thanks!
\lim
→ $\lim$. $\endgroup$