View data summary

Model similarity matrix

Models

What you’re seeing

Each cell shows the cosine similarity between two models after we:

  1. extract either the leave / bail rate \(b_{mc}\) or the refusal rate \(r_{mc}\) for every fine-grained category \(c\);
  2. apply the chosen normalisation to obtain \(\tilde b_{mc}\) or \(\tilde r_{mc}\);
  3. compute \[ \mathrm{sim}(a,b)= \frac{\tilde{\mathbf v}_a\!\cdot\!\tilde{\mathbf v}_b} {\lVert\tilde{\mathbf v}_a\rVert\, \lVert\tilde{\mathbf v}_b\rVert}, \] which equals Pearson correlation when vectors are centred.

Colours follow Plotly’s diverging RdBu scheme: red ≈ anti-correlated, white ≈ uncorrelated, blue ≈ strongly correlated.

Normalisation formulas

Let \(\mathbf v_m\) be the raw vector and \(\bar v_m=\frac{1}{C}\sum_c v_{mc}\).