-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Remake X: DiscreteDistribution should have pmv not pmf #1051
Comments
Also, "X" should not be "X", but a more descriptive and lowercase term, like "values" |
See discussion here: Because of the ambiguity about the semantics of "X" -- a dimension of X can mean either a dimension of the state values of of random variable, or the 'nature's choice' dimension -- it would be better if X/values were a different kind of data structure that makes these differences more explicit. For example, if X were a Pandas dataframe, the index could be nature's choice, and the columns would be dimensions of the RV value. However, that might not work for matrix-valued (as opposed to vector-valued) RVs. |
It might be possible to take inspiration, or an implementation, from another distribution library. https://github.com/econ-ark/HARK/wiki/Distribution-Libraries |
@llorracc how about |
Don't like ".data" because usually it will NOT be from empirical
measurement but rather from numerical approximations to theoretical objects.
A general purpose option would be "atoms" and "probs" -- encompassing the
abstract possibility that the distribution being described is, say, the
probability of a particular word occurring in a text (and the atoms are the
words).
…On Wed, Aug 3, 2022 at 9:17 AM alanlujan91 ***@***.***> wrote:
xarray.DataArray has attributes values and data by default. The
DiscreteDistributionXRA could easily make this change without significant
work.
@llorracc <https://github.com/llorracc> how about data and prob?
—
Reply to this email directly, view it on GitHub
<#1051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKCK76WHX3ZA62LJV7CHSLVXJWPPANCNFSM5BPSM7ZA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
- Chris Carroll
|
|
At the last meeting I think we had consensus on |
Clarifying the scope of this ticket: It involves two changes to the DiscreteDistribution class:
https://github.com/econ-ark/HARK/blob/master/HARK/distribution.py#L816-L829
The class needs to be refactored with this change. Then, downstream code using DiscreteDistribution needs to be updated to reflect this change.
The text was updated successfully, but these errors were encountered: