The previous article showed how to use the site’s “Constant gap” page. This one takes a different angle: it explains, with math and statistics, how that number is calculated, why each step is done the way it is, and how far you can trust it. At the end we work through one real chart from start to finish.

All the real figures in this article come from the International version statistics of 2026-11-04 (304 CHUNITHM contributors, 341 maimai DX contributors). The data updates daily, so the numbers will keep changing.

The problem we want to solve

For every chart we want to answer one question: how much harder is it than other charts with the same constant?

The most direct idea is “look at what people score,” but a score is affected by two things at once:

  1. How hard the chart is: this is what we want to know.
  2. Who is playing it: strong players naturally score higher. Each chart has different contributors, so comparing average scores directly really compares the differences between the players.

So we first have to remove the “skill” factor. The whole calculation has five steps:

  1. Compute an x50 for each chart: the skill level at which the median score is exactly SSS. This step removes the “who is playing” difference.
  2. Compute a baseline for each constant: what x50 is typical for charts of that constant.
  3. Decide which range of constants to estimate on: calculate only where the baseline still rises with the constant.
  4. Convert back to the scale of the constant: how much higher than the baseline an x50 is, in terms of constant difference.
  5. Classify and exclude: label charts underrated (harder than their constant), accurate, or overrated (easier than their constant), and leave out those that differ too much.

Step 1: x50

How skill is measured

Each contributor has one “skill” number:

  • CHUNITHM: the B30 average (the average of the play ratings in your best 30; for how play rating is calculated, see this article).
  • maimai DX: Rating ÷ 50 ÷ 22.4. Rating is the sum of 50 charts (see this article for how it is calculated), and an SSS+ play rating is about constant × 22.4, so after dividing it also lands on the “constant” scale.

Both games’ skill is converted to the same scale as the constant, so the rest of the calculation can be shared.

x50 uses the same scale as skill: x50 = 17.3 means that a player with a B30 average around 17.3 has a median score of exactly SSS on this chart. The harder a chart is to SSS, the higher its x50. x50 is usually quite a bit larger than the constant; for example, for CHUNITHM charts with constant 14.9, x50 is mostly around 17.3.

The expected-score model

x50 comes from a model of “what a player of this skill usually scores on this chart.”

First the intuition: imagine all charts share the same shape of “skill → score” curve. Each chart just shifts this curve left or right (a harder chart needs more skill to reach the same score) or steepens or flattens it (some charts suddenly become reachable once you pass a certain skill, while others rise slowly with skill).

A score is first converted to how far it is from the theoretical maximum, then the logarithm is taken (called the “log gap” below):

log gap = ln(theoretical max − score + 200)

The theoretical maximum for CHUNITHM is 1,010,000. For maimai DX, achievement is counted in units of 0.0001%, so the theoretical maximum of 101.0000% is written as 1,010,000, and 200 corresponds to 0.02%.

We take the logarithm because the closer a score gets to the theoretical maximum, the harder it is to push further: after taking the log, “halving the gap” is about the same size of step wherever it happens, so going from a gap of 10,000 to 5,000 weighs about the same as going from 2,000 to 1,000. The +200 lets us take the logarithm even at the theoretical maximum (gap 0), at the cost that, when the gap is very small, the halving step counts for a bit less.

The curve shared by all charts is called the template: “position → median log gap.” Each chart has two parameters, the difficulty parameter and the slope:

position = pivot
         + slope × (skill − difficulty parameter − pivot)
log gap = template(position) + error
  • The difficulty parameter shifts the curve left or right, in the same unit as the constant. skill − difficulty parameter is “how much higher this player’s skill is than this chart.”
  • The slope makes the curve steeper or flatter. The pivot is the steepest point of the template, and the slope rotates the curve around it.

How the fitting is done:

  1. Template: in the first round, use the official constant as the difficulty parameter and place every score on the position axis. Take a point every 0.25, weight scores with a Gaussian kernel (width 0.25), meaning scores closer to that point weigh more, and compute the weighted median of the log gap. Then adjust it so it never increases from left to right (the higher the skill, the gap can’t get larger).
  2. Each chart: use a grid search to find the difficulty parameter and slope that minimize the sum of absolute errors, first coarsely (steps of 0.1), then finely (steps of 0.01). We use absolute error rather than squared error because the solution that minimizes absolute error is the median, which is not easily pulled away by a few off-form scores.
  3. Realignment: in the first round, aligning by official constant stacks charts of different difficulty together, so the template is flatter than the curve of any single chart. So we place the scores on the position axis again using the fitted difficulty parameters and slopes, recompute the template, and fit each chart again. We repeat this twice.

Charts with scores from fewer than 5 players are not fitted.

Solving for x50 from the model

With the model in hand, x50 is just solving one equation: at what skill does the expected log gap equal the log gap of SSS? First find the position corresponding to SSS from the template:

template(position) = ln(theoretical max − SSS + 200)

Then convert the position back to skill:

x50 = difficulty parameter + pivot
    + (position − pivot) ÷ slope

Why not just compare difficulty parameters directly? The difficulty parameter and the slope together determine the whole curve: with the same difficulty parameter, a different slope means a different skill is needed to reach SSS. x50 combines the two parameters into one concrete question, “how much skill is needed for SSS,” which is easier to interpret.

If the solved x50 is 0.5 or more below the lowest skill among this chart’s contributors, or 0.5 or more above the highest, we don’t output it: that is already extrapolation, and the model’s answer can’t be trusted.

For charts the model doesn’t output, we fall back to a simpler method: split the contributors into rating brackets, find the first bracket where the share of SSS reaches half, and interpolate linearly between it and the midpoint of the previous bracket. At the moment, though, every chart at MASTER or above that has an x50 (1,704 CHUNITHM charts, 1,628 maimai DX charts) was calculated with the model.

We also validated the model itself: for each chart, fit using half of the contributors and predict the other half. For CHUNITHM, the absolute error is about 7% lower than “take the median per rating bracket”; for maimai DX they are about the same.

Step 2: a baseline for each constant

Next we need to know “what x50 is typical for charts of this official constant.” We call it the baseline.

  1. Group the charts by official constant, take the median of x50 in each group, and note how many charts the group has.
  2. First remove constants at either end that have fewer than 3 charts (the ones in the middle are unaffected).
  3. Run a weighted isotonic regression on this series of medians, with the chart counts as weights.

Isotonic regression finds the sequence that is “closest to the original values and never decreases from left to right.” We assume that the baseline of a higher-constant chart is never lower, but each group’s median has noise and jumps up and down. The algorithm (pool adjacent violators) is intuitive: scan from left to right, and whenever a later value is lower than the one before, merge the two groups into their weighted average, until the whole series no longer decreases.

For example, suppose four groups have medians 16.90, 17.00, 16.95 and 17.10 (with equal numbers of charts). 17.00 and 16.95 violate the order, so they are merged into 16.975, giving 16.90, 16.975, 16.975, 17.10.

Why not smoothing (for example kernel smoothing)? At the ends, smoothing has neighbors on one side only, and pulls the endpoints inward. The highest-constant end is exactly where everyone is looking, so it can’t be pulled off.

Step 3: estimate only where the baseline is still rising

Scatter plot. The horizontal axis is the official chart constant from 11 to 16, the vertical axis is x50 (B30 average) from 16.0 to 18.1. The median x50 at each constant rises slowly from about 16.4 near 11.5 to about 16.8 at 13.0, then rises faster, reaching about 17.2 at 14.4; 14.5 to 15.7 is the estimation range, drawn with a stepped isotonic regression and a regression line with slope 0.40
Median x50 at each official CHUNITHM constant (2026-11-04). The pale band is the estimation range; points inside it are cyan and points outside are gray. The stepped line is the baseline inside the range (step 2), and the dashed line is the regression line used for conversion (step 4).

Look at the chart above: in the low-constant section, x50 rises very slowly. The medians from 11.5 to 13.0 hover between 16.4 and 16.8, rising only about 0.16 per 1.0 of constant.

The reason is that x50 doesn’t measure only difficulty. Strong players don’t go back to push low-constant charts to SSS, so the x50 of a low-constant chart reflects more “whether people pushed it” than how hard it is. If you compared x50 in this section, most of the gap would come from differences in play habits.

So we estimate only in the range where the baseline is clearly still rising with the constant. The rule uses the isotonic regression from step 2 (at this point it includes all constants; constants with no charts are interpolated from both sides):

  1. For each constant c, look at the stretch from c to c + 1.0: the baseline must rise by at least 0.35.
  2. Searching from the right end to the left, find the leftmost c such that every starting point from it to the right passes.
  3. If this c happens to sit on a flat part of the baseline (the next constant’s baseline isn’t higher), shift it right to the point where the rise begins.

CHUNITHM: the stretch starting at 14.5 rises by 0.364, which passes; the stretch starting at 14.4 rises only 0.342, which fails. The constant after 14.5 is higher, so no shift is needed and the start is 14.5.

13.0 to 14.4 actually also rises (about 0.36 per 1.0), but a few stretches in the middle, those starting at 13.7 to 14.2, rise only 0.26 to 0.33, so they don’t pass consecutively and the section doesn’t count. This threshold is a bit sensitive at the edge: with 10% less data, the start moves by 0.1 to 0.2.

maimai DX: rule 2 finds 13.4 (the stretch starting at 13.4 rises by 0.404, while the one starting at 13.3 rises only 0.320). But the baselines of 13.4, 13.5 and 13.6 are merged into the same value (13.937) by isotonic regression, so rule 3 moves the start to 13.6.

Once the start is decided, we redo the isotonic regression using only the constants inside the range. That’s because some constants just to the left of the range have higher medians, which merge with the left end and prop up its baseline. If the baseline is too high, charts at the left end are computed as too overrated. After redoing it, the CHUNITHM baseline at 14.5 drops from 17.171 to 17.135, and maimai DX at 13.6 drops from 13.937 to 13.787.

The more spread out the contributors’ skill is, the further down the range extends on its own.

Step 4: convert back to the scale of the constant

Now every chart has an x50 and every constant has a baseline. The difference between them is on the scale of x50, and to convert it back to the scale of the constant we need to know “how much x50 usually differs for every 1.0 of constant,” which is the slope.

The slope comes from a weighted least-squares regression of the median at each constant in the range against the constant (weights are chart counts). The symbols used:

  • c: this chart’s official constant
  • x50: this chart’s x50
  • f(c): the baseline for constant c (the isotonic regression inside the range)
  • b: how much x50 usually differs per 1.0 of constant (the regression slope)
perceived constant = c + (x50 − f(c)) ÷ b
constant gap = (perceived constant rounded to 0.1) − c

The “perceived constant” is only an intermediate value in the calculation and is not shown on screen (the last section explains why). For constants above the right end of the estimation range that have too few charts to enter the baseline (for example, CHUNITHM’s 15.8 has only 1 chart), f(c) is extended from the right end using the slope.

Why use isotonic regression for the baseline but a straight line for the conversion slope? These two things have to be considered separately. Isotonic regression is a staircase: a merged stretch has slope 0, and at the edges of the steps it is very steep. If you used its local slope as the conversion factor, in some places it would magnify the gap several times over, especially at the flatter left end. Using a single straight line across the whole range as the factor is much more stable.

The actual slopes:

Estimation range Slope b 1 ÷ b
CHUNITHM 14.5 to 15.7 0.40 2.5
maimai DX 13.6 to 15.0 0.52 1.9

We don’t know what the relationship between x50 and the constant “should” be, so we don’t apply a Rating formula and let the data decide the slope. If we assumed x50 rises one-for-one with the constant (b = 1), the constant gap would come out at only 0.4 times what it is now (CHUNITHM). In other words, the size of the constant gap depends on how b is estimated, which we come back to below.

A worked example

A CHUNITHM chart with constant 14.9:

  • The baseline for constant 14.9 is 17.28.
  • This chart’s x50 is 17.55, 0.27 above the baseline: reaching SSS on it takes more skill.
  • The slope b to three digits is 0.405: 0.27 ÷ 0.405 ≈ 0.67, so the perceived constant is about 15.57, which rounds to 15.6 at 0.1.
  • The constant gap is 15.6 − 14.9 = +0.7, which reaches +0.5, so it is labeled underrated (harder than its constant).

Step 5: classification and exclusion

  • A constant gap of +0.5 or more is underrated (harder than its constant), −0.5 or less is overrated (easier than its constant), and anything in between is accurate. The thresholds are deliberately wide, because the conversion is only an estimate.
  • Charts where the perceived constant differs from the official one by more than ±1.5 are not listed. Constant adjustments rarely differ by that much, so it is most likely data bias (for example too few players, or nobody has pushed it seriously yet).

Results on 2026-11-04 (“gap” is the absolute value of the constant gap):

CHUNITHM maimai DX
Charts estimated 426 724
Underrated / accurate / overrated 47 / 312 / 67 104 / 495 / 125
Differ by more than ±1.5, not listed (not included above) 2 10
Median gap 0.3 0.3
90% of charts have a gap within 0.7 0.8

About 60% of charts have a gap within 0.3, and underrated and overrated charts each make up one to two tenths.

How far can you trust it?

The direction is more reliable than the size

Two reasons make “underrated or overrated” more reliable than “off by 0.7 or 0.5”:

  • The size depends on the slope b. Every chart is divided by the same b, so over- or underestimating b doesn’t change which charts are positive or negative, nor the ranking, but it scales all the numbers up or down together. As mentioned earlier, with b = 1 the numbers would be only 0.4 times as large.
  • Systematic bias (covered below) pushes a whole class of charts in one direction.

The error in x50 itself is also magnified onto the constant’s scale: for CHUNITHM, an x50 off by 0.1 means a constant gap off by 0.25. The ±0.5 thresholds are set on the constant’s scale, so a chart right near a threshold can change class from a small error.

Cross-check against another method

We cross-checked with a completely different method: within the same rating bracket, compare each chart’s median score directly against charts of the same constant. The constant gaps from the two methods have a correlation coefficient of 0.92 to 0.97 (1 means perfect agreement). The correlation coefficient is independent of scale, so this validates the direction and ordering; the size remains only a reference.

That other method was itself checked too: calculating once each with contributors from different rating brackets, the two results correlate at about 0.85. Different people giving roughly the same result means the result is reproducible and not just sampling noise. But biases shared by both sides (such as old versus new charts below) can’t be detected this way.

Systematic bias

Some biases aren’t noise, and no amount of extra data makes them go away:

  • Old charts lean underrated: many players’ scores date from when they weren’t as strong, but their skill is measured by their current B30. The same score paired with a higher skill raises x50.
  • New charts lean overrated: everyone is pushing them right now, and the scores were set at their current skill.
  • Charts that often make it into B30 get played many times, and part of their score comes from grinding.
  • Only players who turned on anonymous statistics: this group doesn’t necessarily represent all players.

The actual results show the first two points: the most underrated charts are mostly old ones, and the most overrated are mostly new ones.

No shrinkage toward the official constant

For charts with few players, the error in x50 is larger. A common approach is to “shrink” the estimate toward the official constant (empirical Bayes), pulling more the fewer the players. In validation we found that for charts with only 5 to 10 players the model’s predictions weren’t any worse, so the model doesn’t shrink at this step; the constant gap step doesn’t apply any separate shrinkage either at the moment. The cost is that for charts with few players, the constant gap is noisier.

Why we don’t show a “perceived constant”

The formula above actually computes the “perceived constant” first and then subtracts the official constant. The screen shows only the gap, not the perceived constant itself, because a number like “15.6” looks just like a real constant and is easily quoted as an official number. But it is the result of a stack of estimates (skill, model, x50, baseline, slope), each with its own error, and the overall size also depends on how the slope is estimated.

Summary

  1. Use the expected-score model to compute an x50 for each chart: the skill at which the median score is exactly SSS. This step removes the “who is playing” difference.
  2. Run isotonic regression on the median x50 at each constant to get the baseline.
  3. Estimate only in the range where the baseline is still rising with the constant.
  4. Use the regression slope to convert the x50 difference back to the scale of the constant, and rounding to 0.1 gives the constant gap.
  5. The size of the number depends on the slope, and there is systematic bias from old and new charts, so the direction is more reliable than the size.

The app and the website use the same algorithm (perceived_constant.dart in the app and perceived-constant.ts on the website), so when one is changed, change both.

If you have questions or suggestions, email support@critlog.me.