LabToolsThe Research Infrastructure
  • Features
  • Demo
  • Technology
  • Examples
  • White Paper
  • FiTrace
  • Data Analysis ↗
  • Calculators
  • Scheduler
Download
FeaturesDemoTechnologyExamplesWhite PaperFiTraceData Analysis ↗CalculatorsSchedulerHealth Tracker ↗

All examples · Example 13 of 34

Paired Dot PlotComparisonStatistical report

Paired Dot Plot: Pre/Post Treatment

Systolic blood pressure for each of 20 patients before and after treatment; lines join measurements from the same patient.

Systolic blood pressure for each of 20 patients before and after treatment; lines join measurements from the same patient.

Key findings

  • Blood pressure fell by 9.17 mmHg on average (95% CI [4.924, 13.42]), paired t p = 0.0002, Cohen's dz = 1.01.
  • The Wilcoxon signed-rank test agrees (p = 0.0008).
  • Ignoring the pairing would have given p = 0.059 — because before and after are correlated (r = 0.814), the paired design is far more powerful.
15 LabTools stats calls
6 of 15 stats methods
LabTools 0.14.3
600 dpi PNG Data (CSV) Raw LabTools output
In this reportDescriptive statisticsNormality of the paired differencesOutlier screenPaired comparison: Before vs AfterCorrelation between the two measurements

Descriptive statistics

Location, spread and shape for every group — the first thing to read before choosing a test. Skewness near 0 and excess kurtosis near 0 are what a normal distribution looks like.

GroupnMeanSDSEMMedianQ1 – Q3Min – MaxSkewnessExcess kurtosis
Before treatment20149.714.733.295152.8142.3 – 158.3123.4 – 175.3-0.205-0.303
After treatment20140.5153.354143.3131.7 – 152.6106.6 – 164.6-0.5680.0466
LabTools call
stats.describe
labtools stats describe --groups @groups.json

The same method is available as an MCP tool (stats_describe) and from the desktop app's statistics panel.

Normality of the paired differences

The paired t-test assumes the DIFFERENCES are normal, not the raw measurements — so that is what is tested (differences computed as before − after).

GroupnShapiro–Wilk WpAnderson–Darling A²pK–S DpVerdict
Before − after difference200.97040.760.21150.830.098290.88Consistent with normal
LabTools calls (3)
stats.normality
labtools stats normality --groups @groups.json --method shapiro-wilk
stats.normality
labtools stats normality --groups @groups.json --method anderson-darling
stats.normality
labtools stats normality --groups @groups.json --method kolmogorov-smirnov

The same method is available as an MCP tool (stats_normality) and from the desktop app's statistics panel.

Outlier screen

Five detectors with different assumptions. Grubbs tests the single most extreme point, generalised ESD looks for up to several (immune to masking), Dixon's Q is the small-sample chemistry test, modified-z uses the median and MAD so needs no normality, and the IQR rule is Tukey's boxplot fence. LabTools flags points; it never deletes them.

MethodBefore − after difference
Grubbsnone
Generalised ESDnone
Dixon's Qnone
Modified z (MAD)none
IQR fences (1.5×)none
LabTools calls (5)
stats.outliers
labtools stats outliers --groups @groups.json --method grubbs
stats.outliers
labtools stats outliers --groups @groups.json --method generalized-esd --max-outliers 5
stats.outliers
labtools stats outliers --groups @groups.json --method dixon-q
stats.outliers
labtools stats outliers --groups @groups.json --method modified-z
stats.outliers
labtools stats outliers --groups @groups.json --method iqr

The same method is available as an MCP tool (stats_outliers) and from the desktop app's statistics panel.

LabTools notes

  • The IQR rule is descriptive — it has no p-value and flags roughly 0.7% of a perfectly normal sample by construction.

Paired comparison: Before vs After

Each unit is measured twice, so the analysis is on the within-unit differences. The paired t-test and the Wilcoxon signed-rank test answer the same question with and without a normality assumption; the unpaired Welch test is shown only to illustrate how much power ignoring the pairing throws away.

TestStatisticdfpDifference (Before − After)95% CIEffect size
Paired t-testt = 4.52190.00029.17[4.924, 13.42]dz = 1.01 (large)
Wilcoxon signed-rankW = 15—0.0008median 9.1—r = 0.857 (rank-biserial)
Welch t-test (ignores pairing)t = 1.9537.990.0599.17[-0.3485, 18.69]g = 0.604
LabTools calls (3)
stats.ttest
labtools stats ttest --a @Before.json --b @After.json --test paired
stats.wilcoxon
labtools stats wilcoxon --a @Before.json --b @After.json
stats.ttest
labtools stats ttest --a @Before.json --b @After.json --test welch

The same method is available as an MCP tool (stats_ttest) and from the desktop app's statistics panel.

Correlation between the two measurements

Why pairing helps: patients who start high tend to stay high. The stronger this correlation, the more a paired test gains over an unpaired one.

CoefficientEstimater²np
Pearson r (linear)0.8140.6625201.3 × 10⁻⁵
Spearman ρ (monotonic, rank)0.8752—204.4 × 10⁻⁷
Kendall τ (rank, tie-robust; normal-approximation p)0.7053—201.4 × 10⁻⁵
LabTools calls (3)
stats.correlation
labtools stats correlation --a @Before.json --b @After.json --method pearson
stats.correlation
labtools stats correlation --a @Before.json --b @After.json --method spearman
stats.correlation
labtools stats correlation --a @Before.json --b @After.json --method kendall

The same method is available as an MCP tool (stats_correlation) and from the desktop app's statistics panel.

LabTools notes

  • Pearson's r measures LINEAR association only, and is sensitive to outliers. A scatter plot (plot.create kind='scatter') is worth a look before reporting it; use method='spearman' if the relationship is monotonic but curved.

Methods paragraph

Written to go straight into a manuscript.

Blood pressure fell by a mean of 9.2 mmHg (95% CI 4.9–13.4; paired t(19) = 4.52, p = 0.0002, Cohen’s dz = 1.01). A Wilcoxon signed-rank test agreed (W = 15, p = 0.0008).

Every number on this page was computed by the LabTools statistics engine (version 0.14.3) from the example's CSV on 2026-09-23. Where a value was derived before the data reached LabTools (replicate means, paired differences, log odds ratios), the text says so. The data are simulated from a fixed random seed.

Stacked Bar: Treatment OutcomesWaterfall Plot: Tumour Response

Get started

Run the same analysis on your data

Every test on this page is built into LabTools — from the statistics panel, the command line, or an AI assistant through MCP.

Download freeMore examples

LabTools

The research infrastructure: plot to figure to manuscript in one place. Free for academic and individual use.

Product

  • Features
  • Technology
  • Demo & Tutorials
  • Examples
  • Download

Support

  • Contact Support
  • Help Center

Filliaux Industries

  • filliaux.com
  • Data Analysis
  • Health Tracker

Stay updated

Research tips, product updates, and release notes. No spam.

© 2026 Filliaux Industries · LabToolsPrivacyTermsCookiesLinkedIn