Violin Plot Calculator

Explore grouped distributions, density shapes, quartiles, outliers, transformations, statistical tests, and interactive machine learning insights using flexible violin plot controls instantly online for free.

Results

Your violin plot will appear here.
Enter data, choose options, then select Generate violin plot.

1. Data input

Use columns: value, group, subgroup. One value per line or a single comma-separated numeric list is also accepted.

2. Distribution and violin settings

Zero uses automatic width.
Overrides automatic ordering when provided.

3. Inner statistics and observations

4. Transformations, filters, and outliers

Comma-separated group names.

5. Statistical analysis

6. Axes and appearance

Responsive mode may shrink this width.

Formula used

Kernel density estimate: f̂h(x) = (1 / nh) Σ K((x − xi) / h), where K is a Gaussian kernel and h is bandwidth.

A violin plot mirrors a kernel density estimate around each category. Wider sections indicate more observations near that value. The inner box summarizes quartiles and the median.

Automatic bandwidth balances detail and smoothness using the available sample. Manual bandwidth provides direct control over density smoothing. Smaller values reveal detail but may amplify noise.

How to use

  1. Paste values or upload a CSV file.
  2. Select value, group, and optional subgroup columns.
  3. Choose density, inner-box, point, and transformation settings.
  4. Configure outlier rules and statistical comparisons.
  5. Generate the plot and review statistics.
  6. Export the chart, tables, cleaned data, or PDF.

Example data

valuegroupsubgroup
0.81Model AValidation
0.84Model AValidation
0.76Model BValidation
0.79Model BValidation

Machine learning uses

Compare feature distributions across target classes. Inspect residuals, confidence scores, losses, runtimes, anomaly scores, and cross-validation results. Evaluate shifts between training, validation, and test datasets.

Violin plots reveal spread, skewness, multiple peaks, and unequal sample sizes. They retain more distribution detail than standard box plots. Statistical tables support careful model comparison.

Frequently asked questions

What does violin width represent?

Width represents estimated data density. Wider regions contain more nearby observations.

How is a violin plot different from a box plot?

A box plot summarizes quartiles. A violin plot also shows the distribution shape.

What does bandwidth control?

Bandwidth controls density smoothing. Small bandwidths show detail, while large bandwidths produce smoother shapes.

Can I compare several machine learning models?

Yes. Assign each model name to the group column and provide repeated scores.

What is a split violin plot?

A split violin places two subgroup distributions on opposite sides of the same category.

How are outliers detected?

Use the IQR rule or z-score threshold. You may include, exclude, or simply list them.

Should I remove outliers?

Not automatically. Investigate their cause and compare results before excluding them.

Which transformation should I use?

Use transformations only when they match your analytical goal. Log transforms require positive values.

What do multiple peaks mean?

Multiple peaks may indicate subpopulations, mixed classes, or distinct generating processes.

Related Calculators

HistogramDensity Plot (KDE)Box PlotBar ChartCount PlotPie ChartDot PlotStrip PlotSwarm PlotECDF Plot

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.