Sampling from (non-)Normal distribution #130
Replies: 5 comments 2 replies
-
As discussed in a previous meeting with @luca-fiorito-11 and @GrimFe, the first option looks promising as it precerves the symmetry and it gives lower changes of the standard deviation with respect to the other options. I can share a notebook that today @GrimFe and I have developed to analyze how this could be implemented in SANDY. It will be on teams for both of you @luca-fiorito-11 and @AitorBengoechea and I'm now discussing the results:
I will now focus on thinking on a structured way to implement this in sandy (in matricial form) and to consider Decay Data, for which the absolute standard deviation is given. |
Beta Was this translation helpful? Give feedback.
-
Uniform distribution implemented in #145 |
Beta Was this translation helpful? Give feedback.
-
Which method has the smallest relative difference to |
Beta Was this translation helpful? Give feedback.
-
Edit: Sorry, by accident the previous post in the discussion was deleted. This allowed us to upload a newer version of the notebook. @GrimFe and I developed a notebook with a proposal for a maybe even easier sampling procedure, which allows the implementation of both normal and lognormal distribution. The proposed implementation allows to:
You can find the notebook here: https://github.com/GrimFe/SandyProposals/blob/main/random_multivariate.ipynb As you can see in the notebook, the proposed method was tested for a number of nuclides, among which Eu155. Results for the latter are visible in the notebook since they appear to be rather visually explanatory. Covarinces of the sampled populations generated with both methods (the proposed one and |
Beta Was this translation helpful? Give feedback.
-
@EnricaBelfiore , @GrimFe , can you prepare a project for this work as in https://github.com/luca-fiorito-11/sandy/projects/6 ? |
Beta Was this translation helpful? Give feedback.
-
@AitorBengoechea , @EnricaBelfiore , @GrimFe
When we choose a distribution for sampling that can go in the negative range we should apply some sort of truncation (even if the pdf is normal).
Examples if perturbation coefficients are centered in 1:
• Any coefficient <0 or >2 will be reset respectively to 0 or 2
• Any coefficient <0 or >2 will be reset to 1
• Any coefficient <0 or >2 will be resampled
I guess this should be handled in the
CategoryCov.sampling
algorithm.Please provide feedback
Beta Was this translation helpful? Give feedback.
All reactions