Thank you! That is really helpful!
• 0 views
•
link
Can someone explain why the violin plot on the right has more peaks than another? The distribution of data points is almost the same between the two sides but shapes are different.
The violin plot is just a reversed and mirrored density plot. Both are based on a Kernell density estimate which require an important parameter called the bandwidth (h on the figure below). The higher the bandwidth, the smoother the curve (like for the violin plot on the left), while with lower bandwidth, individual data points have more impact.
![]()
Thank you! That is really helpful!
Log in to answer this question.