QuantEcon / QuantEcon/Expectations.jl

Gauss-Laguerre for exponential

Open
#75 3 comments 1 reaction 2 assignees View on GitHub

@jlperla is already working on this.

Since Feb 6, 2026.

Dominant language
Julia
Stars
61
Forks
15
PR merge metrics
No merged PRs in 30d

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 $f(X)$ where Gauss-Laguerre would behave poorly for exponential $X$ using the transformation in https://github.com/QuantEcon/Expectations.jl/blob/master/src/iterable.jl#L206-L213

@copilot If this is a bug in the code rather than an issue with the math, provide a PR with a suggested fix.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.