Code
schools.avg_score.describe()
count 6078.000000
mean -0.681208
std 1.459946
min -4.116623
25% -1.793010
50% -0.946118
75% 0.247189
max 4.915018
Name: avg_score, dtype: float64
For a more detailed look at the geography of educational achievement in California, we can conduct a similar analysis at the school level rather than the district level.The school-level data from SEDA only contain achievement information averaged over all grade levels and subjects. This means we cannot examine math achievement, specifically, due to data suppression, however an examination of overall achievement still reveals important insight at a higher geographic scale.
The median school in california is nearly one grade behind the national average. But the best school is nearly 5 grade levels above average. When consuming the map, it is important to keep in mind that these scores are scaled relative to the national average, and the distribution of scores in California is shifted to the left.
We can see this by looking at the descriptive statistics for the schools in the state. Of the 6087 schools in our dataset (note, not all schools in the state have full achievement data), the mean score is -0.68 and the median score is -0.946. This means the median school in california is .946 grades behind the national average
schools.avg_score.describe()
count 6078.000000
mean -0.681208
std 1.459946
min -4.116623
25% -1.793010
50% -0.946118
75% 0.247189
max 4.915018
Name: avg_score, dtype: float64
The histogram shows the number of schools at each score threshold. The bulk of the observations are to the left of the zero (which represents the national average), demonstrating again that California lags behind other regions of the country.
schools.avg_score.hist()
But the distribution of achievement is not geographically even, which can be seen by plotting the average achievement score as a choropleth map, where each school is colored according to its score
schools.explore("avg_score",
="quantiles",
scheme=8,
k="PRGn",
cmap="Stamen Toner Lite",
tiles={"radius": 7},
marker_kwds=["NAME", "avg_score"],
tooltip )