{
  "alt": "Scatter plot of the county white-Black math gap against the school segregation index, one dot per county. The cloud slopes up from the lower left to the upper right, and ten markers for tenths of counties by segregation rise from left to right.",
  "caption": "Dots slope up from left to right, and the markers for tenths of counties by segregation rise from {fact:gap_seg_d1} in the least segregated tenth to {fact:gap_seg_d10} in the most. Markers are weighted mean gaps with 95% intervals from a bootstrap over states. Within states, a county one standard deviation higher on the index has a gap wider by {fact:b_seg} standard deviations.",
  "data": [],
  "id": "gap_vs_segregation",
  "notes": [
    "The index measures how unevenly students of every racial and ethnic group are spread across a county's schools relative to the county's composition. It is not a Black–white index, and it is for the 2022 to 2023 school year in County Health Rankings' 2024 release of NCES school data, after the test years.",
    "The gap is white minus Black, so a positive value means white students score higher."
  ],
  "source": "Stanford Education Data Archive 6.0, 2009-2019 (county gaps, math), and County Health Rankings 2024 (school segregation, school year 2022 to 2023, NCES Common Core of Data); weighted by tests counted, modeled estimates",
  "spec": {
    "label": "label",
    "overlays": [
      {
        "hi": "hi",
        "kind": "line",
        "label": "Tenths of counties by segregation, with 95% intervals",
        "lo": "lo",
        "rows": [
          {
            "hi": 0.504,
            "lo": 0.445,
            "n_units": 210,
            "x": 0.012,
            "y": 0.474
          },
          {
            "hi": 0.531,
            "lo": 0.469,
            "n_units": 210,
            "x": 0.0283,
            "y": 0.501
          },
          {
            "hi": 0.535,
            "lo": 0.453,
            "n_units": 210,
            "x": 0.0397,
            "y": 0.495
          },
          {
            "hi": 0.592,
            "lo": 0.481,
            "n_units": 210,
            "x": 0.0504,
            "y": 0.534
          },
          {
            "hi": 0.592,
            "lo": 0.494,
            "n_units": 210,
            "x": 0.0618,
            "y": 0.544
          },
          {
            "hi": 0.614,
            "lo": 0.531,
            "n_units": 210,
            "x": 0.0747,
            "y": 0.571
          },
          {
            "hi": 0.726,
            "lo": 0.615,
            "n_units": 210,
            "x": 0.0938,
            "y": 0.67
          },
          {
            "hi": 0.804,
            "lo": 0.709,
            "n_units": 210,
            "x": 0.1228,
            "y": 0.753
          },
          {
            "hi": 0.802,
            "lo": 0.726,
            "n_units": 210,
            "x": 0.1572,
            "y": 0.764
          },
          {
            "hi": 0.951,
            "lo": 0.857,
            "n_units": 211,
            "x": 0.2687,
            "y": 0.904
          }
        ],
        "x": "x",
        "y": "y"
      }
    ],
    "payload": "gap_vs_segregation.json",
    "size": "tests",
    "sizeFormat": {
      "thousands": true
    },
    "sizeLabel": "Tests counted (math, two groups)",
    "x": "sseg",
    "xDomain": [
      0,
      0.62
    ],
    "xFormat": {
      "digits": 2
    },
    "xLabel": "School segregation index (Theil's index, 0 to 1)",
    "y": "wbg",
    "yDomain": [
      -0.6,
      2.2
    ],
    "yFormat": {
      "digits": 1,
      "signed": true
    },
    "yLabel": "White minus Black math gap (standard deviations)"
  },
  "subtitle": "White minus Black math gap (standard deviations of the national cohort) against the school segregation index (Theil's index across racial and ethnic groups), one dot per county; dot area is the tests counted",
  "title": "The white–Black math gap is wider in counties with more school segregation, a correlation of {fact:r_seg} across {fact:n_seg} counties",
  "type": "scatter"
}
