Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to explain DistributionChart function in mathematica, For example: if I have

nd1 = RandomVariate[NormalDistribution[], 25];
nd2 = RandomVariate[NormalDistribution[2, 10], 25];

DistributionChart[nd1, BarOrigin -> Right]

enter image description here

DistributionChart[nd2, BarOrigin -> Right]

enter image description here

1) what is the importance or application of representing data as distribution chart as compare to Normal distribution 2) How to quantify it? or differentiate from 2nd chart in quantitative way or can i estimate probability of middle fatter region

share|improve this question
Is that a lipstick chart ;) – wolfies Oct 18 '13 at 17:16
up vote 3 down vote accepted

You can interpret it as probability density. Here I just put a plot of the pdf in the same graph:

Module[{data = RandomVariate[#, 2000]},
     Plot[PDF[#, x], {x, Min[data], Max[data]}, PlotRange->All],
     DistributionChart[data, BarOrigin -> Left]
     }, PlotLabel -> #, PlotRange -> All
    ]] & /@ {ExponentialDistribution[2.1], 
             NormalDistribution[0.3, 1.3],
             UniformDistribution[{-1, 1}]}

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.