In SmoothHistogram3D, the x- and y-axes are in the form of the original input; 0 maps to 0 and 1 maps to 1, etc. However, the z-axis returns a probability rather than a quantity (or approximate quantity). (I think that's correct, at least.) Is there any way to make the z-axis return the number of points in that area? Maybe the probability times sample size? Thank you!

  • 1
    $\begingroup$ maybe you can use SmoothKernelDistribution[data] and plot any function of its PDF; for example, Plot3D[Evaluate[ Length[data] PDF[SmoothKernelDistribution[data], {x, y}]], {x, -3, 3}, {y, -3, 3}]? $\endgroup$
    – kglr
    Commented Dec 31, 2017 at 21:06
  • $\begingroup$ see this questions: mathematica.stackexchange.com/questions/160193/… and mathematica.stackexchange.com/questions/160592/… $\endgroup$
    – mrz
    Commented Jan 1, 2018 at 18:10
  • $\begingroup$ Have you seen the third argument to SmoothHistogram3D? The Details & Options section of the documentation mentions the argument ”Intensity”. $\endgroup$
    – Greg Hurst
    Commented Jan 2, 2018 at 6:03


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.