Skip to content

[qq-basic] Basic Q-Q Plot (Quantile-Quantile) #977

Description

@MarkusNeusinger

Description

A Q-Q (Quantile-Quantile) plot compares the distribution of a dataset against a theoretical distribution (typically normal) or another dataset. Points falling along the diagonal reference line indicate the data follows the reference distribution.

Key Features

  • Plots sample quantiles against theoretical quantiles
  • Diagonal reference line for perfect distribution match
  • Deviations from line reveal distribution differences
  • Sensitive to skewness, heavy tails, and outliers

Applications

  • Testing normality assumptions before statistical tests
  • Identifying distribution characteristics (skewness, kurtosis)
  • Comparing two empirical distributions
  • Detecting outliers and data quality issues

Data Requirements

  • sample (numeric) - Data to compare against reference
  • Reference: Normal distribution (default) or another dataset
  • Size: 20+ observations recommended for meaningful comparison

Visual Elements

  • Scatter plot of ordered sample vs theoretical quantiles
  • 45-degree reference line (y=x)
  • Optional: confidence bands around reference line
  • Clear axis labels indicating sample and theoretical quantiles

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions