Confirm-Solutions / confirmasaurus

3 stars 0 forks source link

Better techniques for computing CDFs from INLA? #18

Open tbenthompson opened 2 years ago

tbenthompson commented 2 years ago

Currently, we use Simpson's rule in some places and Gauss-hermite quadrature in others. We haven't considered the CDF step very much. I am not sure how much error is introduced by this step. Before exploring implementation options, we should simply do a convergence test with current quadrature rules to determine how much error is being introduced at this step.

tbenthompson commented 2 years ago

for simpson/trapezoid, the procedure would look something like:

tbenthompson commented 2 years ago

for gaussian quadrature, the procedure would look like:

tbenthompson commented 2 years ago

I also would like to investigate what the "normal" way of doing this is because this CDF computation from numerical integration on a pre-computed grid of points is surely a 100% solved problem. i wouldn’t be surprised if the simpson rule version is the standard approach.

tbenthompson commented 2 years ago

a third approach would be:

this would involve more runtime computation because the interpolation would require a matrix vector product.