Statistical Methods
Keep Empty Bins and Excluded Measurements Visible
Define the task
Binned response summaries divide one coordinate into intervals and summarize another measurement within each interval. They are not histogram densities. Choose bin edges before comparing outcomes, keep coordinate and response rows aligned, and record whether repeated measurements would give some subjects more weight. The calculator computes unweighted arithmetic means and counts. It provides no uncertainty intervals or adjustment for dependence.
Carry out the check
Supply strictly increasing edges and one coordinate,response pair per row. Bins include their left boundary and exclude their right boundary, except that the final bin includes its rightmost edge. Review the excluded count: observations outside the overall edge range must not disappear silently. Empty bins display an undefined mean rather than zero. Keep counts beside means, since equally prominent plotted points may represent very different numbers of observations. Changing edges can materially alter the visual pattern without changing the original data.
Worked hypothetical example
Hypothetical example: edges 0,1,2 and pairs (0,2), (1,4), (2,6), (3,99) give mean 2 from one observation in [0,1), and mean 5 from two observations in [1,2]. The last pair is excluded. The mean of the two displayed means is 3.5, whereas the mean of the three included responses is 4; unequal bin counts explain the difference. Retain the edges, counts, exclusions and aggregation rule with any exported summary.
Method checked 24 November 2026 against primary documentation: stats.binned_statistic.