ArticleslgStudy

mathematics

Violin plot

Violin plot is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Violin plot rather than just read about it. In short: A violin plot (also known as a bean plot) is a statistical graphic for comparing probability distributions. It is similar to a box plot, but has enhanced information with the addition of a rotated kernel density plot on each side.

Violin plot — main illustration
Violin plot — illustration

Key takeaways

  • Violin plot belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Violin plot to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Violin plot from memory before moving on to harder problems.

Reference excerpt

A violin plot (also known as a bean plot) is a statistical graphic for comparing probability distributions. It is similar to a box plot, but has enhanced information with the addition of a rotated kernel density plot on each side.

History The violin plot was proposed in 1997 by Jerry L. Hintze and Ray D. Nelson as a way to display even more information than box plots, which were created by John Tukey in 1977. The name comes from the plot's alleged resemblance to a violin.

Description Violin plots are similar to box plots, except that they also show the probability density of the data at different values, usually smoothed by a kernel density estimator. A violin plot will include all the data that is in a box plot: a marker for the median of the data; a box or marker indicating the interquartile range; and possibly all sample points, if the number of samples is not too high. While a box plot shows a summary statistics such as median and interquartile ranges, the violin plot shows the full distribution of the data. The violin plot can be used in multimodal data (more than one peak). In this case a violin plot shows the presence of different peaks, their position and relative amplitude. Like box plots, violin plots are used to represent comparison of a variable distribution (or sample distribution) across different "categories" (for example, temperature distribution compared between day and night, or distribution of car prices compared across different car makers). A violin plot can have multiple layers. For instance, the outer shape represents all possible results. The next layer inside might represent the values that occur 95% of the time. The next layer (if it exists) inside might represent the values that occur 50% of the time. Violin plots are less popular than box plots. Violin plots may be harder to understand for readers not familiar with them. In this case, a more accessible alternative is to plot a series of stacked histograms or kernel density plots. The original meaning of "violin plot" was a combination of a box plot and a two-sided kernel density plot. However, currently "violin plots" are sometimes understood just as two-sided kernel density plots, without a box plot or any other elements.

See also Sina plot Box plot

References

External links

Vioplot add-in for Stata Violinplot from a wide-form dataset with the seaborn statistical visualization library based on matplotlib This article incorporates public domain material from Dataplot reference manual: Violin plot. National Institute of Standards and Technology.

Illustrations

Violin plot: Example of a violin plot
Example of a violin plot
Violin plot: Example of a violin plot in a scientific publication in PLOS Pathogens.
Example of a violin plot in a scientific publication in PLOS Pathogens.

Worked examples

Example 1 — a first encounter with Violin plot

Start with the simplest possible case. Write down what Violin plot claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Violin plot before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Violin plot ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Violin plot

In research
Violin plot appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Violin plot in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Violin plot is common in secondary-school and first-year university syllabi. It links to neighbouring topics Statistical charts and diagrams, so understanding it makes those chapters shorter.
In everyday life
Look for Violin plot outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Violin plot in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Violin plot means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Violin plot out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Violin plot in simple terms?

A violin plot (also known as a bean plot) is a statistical graphic for comparing probability distributions. It is similar to a box plot, but has enhanced information with the addition of a rotated kernel density plot on each side.

Why does Violin plot matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Violin plot?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Violin plot.

Tags

  • Statistical charts and diagrams

Keep exploring