SciML / SciML/Integrals.jl

Specify initial evaluation points [Feature Req.]

Open
#30 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
245
Forks
36
Avg merge
4h 43m
Merged PRs (30d)
15

Description

For DiffEqUncertainty expectation() applications, distributions that are narrow relative to the support can lead to incorrect results via Quadrature as the integrand is not sampled at points w/ non-zero (numerically) joint pdf values.

B/c we know the pdf, it would advantageous to "seed" or initialize any adaptive quadrature methods w/ the mean and/or random samples from the distribution.

E.g. for a simple linear system, u'=p*u, with uncertain IC,

u0_dist = [truncated(Normal(3.0,2.0),-1000,1000)]

will produce expectations of 0

while

u0_dist = [truncated(Normal(3.0,2.0),3-1000,3+1000)]

produces the correct result. The reason being that the midpoint of the integration domain is used as initial quadrature points in most algorithms supported.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the expectation() entry point used by DiffEqUncertainty and trace how adaptive quadrature methods choose their initial points. Reproduce the narrow truncated-Normal example from the issue, then determine how mean or random samples can seed the integration. Done means the narrow-support case produces the correct expectation without regressing existing quadrature behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.