Allow importing existing datasets into squiggle distributions. #431
Locked
Hazelfire
started this conversation in
Squiggle Improvement Proposal
Replies: 1 comment 3 replies
-
Would this take anything more than #335 and a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my work on GiveDirectly, I found that it would be useful to import a dataset as a sample set distribution to perform KDE on.
For instance, I want to represent the average household size in my model, and I have a collection of data points from an excel spreadsheet that are the different household sizes in Siaya. I would love to be able to simply import these numbers as a sample set distribution to use in my model. There are two other examples where this would be useful, such as having points for the average transfer size, or the average amount GiveDirectly sends to participants.
One possible implementation path would be to add two features:
fromSamples
function that simply creates a sample set distribution given an array of samples.Beta Was this translation helpful? Give feedback.
All reactions