In this simple example

z={0., 0.0512821, 0.0909091, 0.0952381, 0.191489, 0.242424,0.276596, 0.27907, 0.347826, 0.465116, 0.487179, 0.5, 0.555556}

Plot[PDF[pdf, z], {z, -.5, 1}]

enter image description here

the distribution is learnded quickly.

But the cumulative distribution CDF[...]

CDF[pdf, .5]

doesn't evaluate!

What's wrong here?


  • 2
    $\begingroup$ Note that the documentation states "LearnDistribution[examples] yields a LearnedDistribution[ ... ] on which the following functions can be used:"; that list does not include CDF as one of the functions. $\endgroup$
    – Bob Hanlon
    Aug 23 '21 at 12:52
  • $\begingroup$ @BobHanlon Thank you, I have read over it ! $\endgroup$ Aug 23 '21 at 12:55
  • 1
    $\begingroup$ With a fresh kernel I get a LearnedDistribution with a Method: KernelDensityEstimation but any subsequent running of the code I get a Method: Multinormal just as you show. (Windows 10, Mathematica 12.3.0) I'm just in general distrustful of such black boxes. $\endgroup$
    – JimB
    Aug 23 '21 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.