CommerceLens
Try it yourself

Interactive Statistics Calculator

Every calculator below runs the same TypeScript functions (lib/analytics/*) that power the rest of the site. Paste your own numbers to see the formula, the calculation, and a plain-language business read of the result.

Mean, Median, Mode, Range, Percentiles, Quartiles, IQR, Variance, SD
Enter a list of numbers (e.g. a set of order values), separated by commas, spaces or newlines.
14 valid numbers parsed
Mean
1845.00
Median
1085.00
Mode
420
Range
8480.00
Q1
837.50
Q3
1805.00
IQR
967.50
Variance
4673103.85
Std. Deviation
2161.74
Formulas
mean(x) = Σxᵢ / n median(x) = middle value of sorted x (average of two middles if n is even) mode(x) = most frequently occurring value range(x) = max(x) - min(x) variance = Σ(xᵢ - mean)² / (n - 1) [sample variance] std dev = √variance IQR = Q3 - Q1 outlier fence = [Q1 - 1.5·IQR, Q3 + 1.5·IQR]
Business interpretation: The mean (₹1845) is noticeably above the median (₹1085), which points to a right-skewed distribution — a handful of large values are pulling the average up. The median is the more representative “typical” figure here. 1 of 14 values fall outside the Tukey IQR fence [-614, 3256] and would be flagged as statistical outliers.
  • Mode (420): the single most frequently occurring value — useful when you need one representative “typical” transaction (e.g. the most common order size) rather than an average that no real order may equal.
  • Range (8480.00): the gap between the smallest and largest value. It is easy to explain but highly sensitive to a single extreme order — treat it as a rough headline, not a robust spread measure.
  • Variance (4673103.85) and standard deviation (2161.74): variance is in squared units and mostly useful as an intermediate calculation; standard deviation converts it back to the original unit, so “typical orders sit within roughly ±₹2162 of the mean” is directly interpretable for planning inventory or revenue ranges.
Percentile calculator:th percentile
Formula
percentile(x, p) = value at rank (p/100)·(n-1) in sorted x, linearly interpolated between the two nearest ranks
P90 = 2905.00
Business interpretation: 90% of the 14 observed values fall at or below 2905.00. Percentiles like P90 or P95 are what teams typically use for SLA-style targets (e.g. “95% of orders deliver within X days”) since, unlike the mean, they are not distorted by a handful of extreme values.