-
-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I found that in many cases using Gauss-Laguerre for calculating expectations of an exponential distribution was very imprecise for many functions.
We may want to warn about things like that, depending on your perspective @tpapp in https://github.com/QuantEcon/Expectations.jl/blob/master/docs/src/index.md?plain=1#L111-L112 etc.
I believe the issue is that when it adds in extra nodes they are often exploring the tail whereas for many functions of interest the key variation is closer to the mean. There may be a theoretical point on this in numerical analysis?
@copilot can you comment on properties of
@copilot If this is a bug in the code rather than an issue with the math, provide a PR with a suggested fix.