{
  "kind": "Deterministic teaching data and analytical models; not patient observations",
  "date": "2026-10-06",
  "basic": {
    "x": [
      1,
      2,
      3
    ],
    "y": [
      1,
      3,
      2
    ],
    "r": 0.5
  },
  "nonlinear": {
    "x": [
      -3,
      -2,
      -1,
      0,
      1,
      2,
      3
    ],
    "y": [
      9,
      4,
      1,
      0,
      1,
      4,
      9
    ],
    "r": 0
  },
  "monotone": {
    "x": [
      1,
      2,
      3,
      4,
      5
    ],
    "y": [
      1,
      4,
      9,
      16,
      25
    ],
    "r": 0.9811049102515929,
    "spearman": 1
  },
  "simpson": {
    "a": {
      "x": [
        1,
        2,
        3
      ],
      "y": [
        6,
        7,
        8
      ],
      "r": 1
    },
    "b": {
      "x": [
        7,
        8,
        9
      ],
      "y": [
        1,
        2,
        3
      ],
      "r": 1
    },
    "pooledR": -0.835691166520115
  },
  "fisher": {
    "r": 0.5,
    "confidence": 0.95,
    "zCritical": 1.959963984540054,
    "rows": [
      [
        10,
        -0.18918387068441597,
        0.8591534852092955
      ],
      [
        20,
        0.07381057440740976,
        0.7717607064299188
      ],
      [
        50,
        0.25748786076828395,
        0.6832563020988134
      ],
      [
        100,
        0.33664330440909174,
        0.6341398407485443
      ],
      [
        300,
        0.4099719443689044,
        0.5803795078875008
      ]
    ]
  },
  "attenuation": {
    "rhoTrue": 0.8,
    "reliabilityY": [
      0.5,
      1
    ],
    "rows": [
      [
        0.2,
        0.2529822128134704,
        0.35777087639996635
      ],
      [
        0.4,
        0.35777087639996635,
        0.5059644256269408
      ],
      [
        0.6,
        0.4381780460041329,
        0.6196773353931868
      ],
      [
        0.8,
        0.5059644256269408,
        0.7155417527999327
      ],
      [
        1,
        0.5656854249492381,
        0.8
      ]
    ]
  },
  "agreement": {
    "x": [
      10,
      20,
      30
    ],
    "y": [
      15,
      25,
      35
    ],
    "r": 1,
    "differences": [
      5,
      5,
      5
    ]
  },
  "formulas": {
    "pearson": "Σ((x-x̄)(y-ȳ))/sqrt(Σ(x-x̄)^2 Σ(y-ȳ)^2)",
    "spearman": "Pearson correlation of average ranks",
    "fisher": "tanh(atanh(r) ± 1.959963984540054/sqrt(n−3)); approximate, independent bivariate-normal observations",
    "attenuation": "rho_observed=rho_true sqrt(Rx Ry); classical additive zero-mean independent errors, independent of true values",
    "agreement": "Y=X+5; correlation r=1, bias Y−X=5 in arbitrary units"
  }
}