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

calc_expectation but for labelled distributions #1486

Open
sbenthall opened this issue Aug 16, 2024 · 0 comments
Open

calc_expectation but for labelled distributions #1486

sbenthall opened this issue Aug 16, 2024 · 0 comments

Comments

@sbenthall
Copy link
Contributor

calc_expectation returns the expected value of a function over a distribution.

https://github.com/econ-ark/HARK/blob/master/HARK/distribution.py#L2298

It isn't yet implemented to be compatible with Labelled distributions:
https://github.com/econ-ark/HARK/blob/master/HARK/distribution.py#L1450

It probably can be written to wrap expected:
https://github.com/econ-ark/HARK/blob/master/HARK/distribution.py#L2422

See also #1483

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