Outcome: pain intensity on a numeric rating scale from 0 (no pain) to 10 (worst pain). Higher is worse. Most patients have mild to moderate pain and a few have severe pain, so the distribution is left-peaked. Both groups start from the same distribution. Switch on the raw data to see 100 simulated patients per group (different people in each group) as dots, as a light histogram and as a boxplot. Press the button and watch the intervention group move to the left, away from the control group.
The height of a curve is a density, not a probability. What counts is the area under the curve, and it is 1 for each group. A pure shift moves mean, median and mode by the same amount Δ (here downwards) and leaves the shape unchanged. A shift of Δ = 1 corresponds to the example in the script: the therapy lowers pain by 1 point more than usual care. Lower pain is better, so the intervention curve moves to the left.
Draw one patient at random from the control group and one from the intervention group, independently of each other. How likely is it that they differ by at least d points of pain? The difference of two random patients is itself a random variable. Its curve is shown below, and the probability is the shaded area. The slider sets d.