When you need to know if your data follows a specific pattern—like a bell curve—a QQ plot is your go-to tool. It visually compares your observed data against a theoretical distribution. If the points fall along the reference line, your data aligns with that specific assumption.
Visualizing Distribution Fit
A QQ plot provides a side-by-side comparison between your sample data and a theoretical distribution. By plotting the theoretical quantiles on one axis and your sample quantiles on the other, you can immediately see how closely your observations align with common statistical models.
Whether you are checking for a normal, lognormal, uniform, or exponential distribution, this tool creates a scatter of your data against a reference line. This reference line acts as a benchmark; when your data adheres to the distribution, the points will trace this path closely.
Interpreting Deviations
Not all data will perfectly match a theoretical model. When points fall off the reference line, the nature of the deviation tells a story. Points moving away from the line at the ends of the plot often suggest 'heavy tails' or 'light tails' compared to a normal distribution.
This visual feedback is particularly useful when preparing for deeper analysis. If you find your data deviates significantly, you might choose to apply a transformation or use a non-parametric method that does not require the same strict assumptions.
Identifying Outliers
One of the primary benefits of this method is the clear identification of outliers. Because the plot maps every data point relative to the expected theoretical distribution, values that are extreme or behave differently from the rest of the sample will stand out clearly at the far ends of the distribution.
The tool supports robust reference lines designed to handle such outliers more effectively, ensuring that your assessment of the overall distribution is not unfairly biased by a few unusual data points.
1 · Intent → method
An LLM picks plot_qq from a fixed catalog.
2 · Method → numbers
Deterministic Python engine runs the math. Same input → same output.
3 · Numbers → plain language
A second LLM translates the result into your domain’s vocabulary.
What does it mean if my points are not on the reference line?
If your data points curve away from the reference line in a QQ plot, it indicates that your data does not fit the chosen theoretical distribution (like normal or exponential) perfectly. The specific shape of the curve—such as 'S' shapes or tail deviations—helps you identify where your data differs from the assumption.
Can I use this tool to see if my data is skewed?
Yes. A QQ plot is a highly effective way to spot skewness. If your data is skewed, the points will systematically deviate from the straight reference line, usually showing a noticeable curve at one or both ends of the plot.
Tool input schema
Schema for plot_qq not exported yet (run pnpm export:registry).