1
$\begingroup$

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!

$\endgroup$
  • 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 Dec 31 '17 at 21:06
  • $\begingroup$ see this questions: mathematica.stackexchange.com/questions/160193/… and mathematica.stackexchange.com/questions/160592/… $\endgroup$ – mrz Jan 1 '18 at 18:10
  • $\begingroup$ Have you seen the third argument to SmoothHistogram3D? The Details & Options section of the documentation mentions the argument ”Intensity”. $\endgroup$ – Chip Hurst Jan 2 '18 at 6:03

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.