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

Upper bound to error propagator #51

Open
ffreyer opened this issue Oct 1, 2019 · 0 comments
Open

Upper bound to error propagator #51

ffreyer opened this issue Oct 1, 2019 · 0 comments

Comments

@ffreyer
Copy link
Collaborator

ffreyer commented Oct 1, 2019

Saving the full covariance matrix can be expensive, as it uses O(N^2) memory (where N is the number of inputs). A way to get around this would be to use an upper/lower limit for the covariance matrix.

Cauchy Schwarz tells us that |<u, v>|^2 <= <u><v>, i.e.

-var(x)var(y) <= cov(x, y)^2 <= var(x)var(y)

(see also Pearsons correlation coefficient) With the variance of f given by sum_ij df/dx_i df/x_j cov(x_i, x_j) we can calculate an upper limit:

var(f) <= sum_ij | df/dx_i df/dx_j sqrt(var(x_i) var (x_j)) |

This only requires O(N) memory, where N is the number of arguments.

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