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

Incorrect derivative of function w.r.t. parameterized argument alpha #5

Open
bentyeh opened this issue Jul 28, 2020 · 2 comments
Open

Comments

@bentyeh
Copy link
Contributor

bentyeh commented Jul 28, 2020

This footnote is not quite right.

<d-footnote>That is, if we integrate over the
straight-line between \(x'\) and \(x\), which
we can represent as \(\gamma(\alpha) =
x' + \alpha(x - x')\), then:
$$
\frac{\delta f(\gamma(\alpha))}{\delta \alpha} =
\frac{\delta f(\gamma(\alpha))}{\delta \gamma(\alpha)} \times
\frac{\delta \gamma(\alpha)}{\delta \alpha} =
\frac{\delta f(x' + \alpha' (x - x'))}{\delta x_i} \times (x_i - x'_i)
$$
The difference from baseline term is the derivative of the
path function \(\gamma\) with respect to \(\alpha\).

$$\gamma(\alpha)$$ is a vector, so by the multivariable chain rule,

$$
\frac{\delta f(\gamma(\alpha))}{\delta \alpha}
= \sum_i \frac{\delta f(\gamma(\alpha))}{\delta \gamma_i} \times  
  \frac{\delta \gamma_i(\alpha)}{\delta \alpha}
= \sum_i \frac{\delta f(x' + \alpha' (x - x'))}{\delta x_i} \times (x_i - x'_i)
$$
@psturmfels
Copy link
Contributor

You are right! That footnote definitely contains errors, and your version is correct. I'm happy to change this myself, but also happy to accept a pull request. Either way, I'll try and update it this evening. Thank you for spotting this!

@bentyeh
Copy link
Contributor Author

bentyeh commented Aug 11, 2020

I created a pull request: #6

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

2 participants