My final project
Introduction: I am Christopher Ruiz, and I study government at Harvard College. I am also very interested in education. For my project, I wanted to see if there was a relationship between students’ race and their school attendance rates during the COVID-19 pandemic. There is evidence that links race to COVID mortality rates, so I am curious to see if the disease also impacted students of color differently than their white counterparts in the same districts. My hypothesis is that COVID-19 is not colorblind and that students of color had lower attendance rates than white students after the beginning of the pandemic.
Data Source and First Visualization: I chose a CSV file from data.gov. This is government data from Connecticut school districts that stores attendance rates between 2019 and 2022. In addition, the data is divided into certain socioeconomic groups, like students receiving free and reduced lunch, homeless students, and the racial geography within a given school district. This is a cross-sectional research design over the course of 3 years. Admittedly, this dataset is poorly compiled (I will elaborate shortly). Luckily, I was still able to render data visualizations and a regression, although if I worked for the US government, I would have compiled the data differently. Here is what I mean:
| code | district | category | group | student | att22 | rate22 | att21 | rate21 | att20 | rate20 | period |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 00000CT | Connecticut | NA | All Students | 500285 | 0.92 | 496092 | 0.93 | 508346 | 0.95 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Homelessness | Students Experiencing Homelessness | 1814 | 0.83 | 1735 | 0.82 | 3916 | 0.89 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Students With Disabilities | Students With Disabilities | 78417 | 0.89 | 76487 | 0.89 | 80365 | 0.93 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Free/Reduced Lunch | Free Meal Eligible | 168984 | 0.89 | 176225 | 0.89 | 193706 | 0.93 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Free/Reduced Lunch | Reduced Price Meal Eligible | 29905 | 0.92 | 30886 | 0.93 | 27507 | 0.95 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Free/Reduced Lunch | Free/Reduced Price Meal Eligible | 198889 | 0.89 | 207111 | 0.89 | 221213 | 0.93 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | English Learners | English Learners | 43571 | 0.90 | 40619 | 0.89 | 45413 | 0.94 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Race/Ethnicity | All other races | 48700 | 0.93 | 47339 | 0.95 | 47260 | 0.96 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Race/Ethnicity | Black or African American | 63099 | 0.89 | 62267 | 0.89 | 64200 | 0.94 | June 2022 | 07/22/2022 |
| 00000CT | Connecticut | Race/Ethnicity | Hispanic/Latino of any race | 146298 | 0.89 | 138260 | 0.90 | 136953 | 0.94 | June 2022 | 07/22/2022 |
The “category” column stores data for all of the variables of interest. These include free and reduced lunch, homelessness, English learners, disabilities, high needs, and race. The “group” column corresponds to “category.” For example, “Black or African American” corresponds with “Race/Ethnicity.” The problem with this method of data collection is that it must be filtered within “group” rather than having the data pre-filtered. Nonetheless, I was able to write code that fixed this problem. Here is a visual representation of the attendance rates in the 2019-20, 2020-21, and 2021-22 school years:
2019-20 School Year
2020-21 School Year
2021-22 School Year
Through these 9 plots, there are visible differences in attendance rates between White, Latino, and Black students, and it is notable that the attendance rates are higher. However, we should run a regression analysis to see if this is significant. Here is the summary for that regression:
Call:
lm(formula = att21 ~ group, data = attendance)
Residuals:
Min 1Q Median 3Q Max
-0.228903 -0.015464 0.008897 0.023771 0.066496
Coefficients:
Estimate Std. Error t value
(Intercept) 0.946370 0.003434 275.572
groupAll Students -0.007150 0.004310 -1.659
groupBlack or African American -0.025683 0.004777 -5.376
groupEnglish Learners -0.021529 0.004889 -4.404
groupFree Meal Eligible -0.036446 0.004565 -7.985
groupFree/Reduced Price Meal Eligible -0.029267 0.004338 -6.746
groupHispanic/Latino of any race -0.025687 0.004508 -5.698
groupReduced Price Meal Eligible -0.010222 0.004606 -2.219
groupStudents Experiencing Homelessness -0.137278 0.010776 -12.739
groupStudents With Disabilities -0.030966 0.004378 -7.073
groupStudents With High Needs -0.023207 0.004330 -5.360
groupStudents Without High Needs 0.011892 0.004330 2.746
groupWhite 0.001367 0.004396 0.311
Pr(>|t|)
(Intercept) < 2e-16 ***
groupAll Students 0.09728 .
groupBlack or African American 8.51e-08 ***
groupEnglish Learners 1.12e-05 ***
groupFree Meal Eligible 2.39e-15 ***
groupFree/Reduced Price Meal Eligible 1.99e-11 ***
groupHispanic/Latino of any race 1.40e-08 ***
groupReduced Price Meal Eligible 0.02657 *
groupStudents Experiencing Homelessness < 2e-16 ***
groupStudents With Disabilities 2.10e-12 ***
groupStudents With High Needs 9.33e-08 ***
groupStudents Without High Needs 0.00608 **
groupWhite 0.75592
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.03683 on 1950 degrees of freedom
(56 observations deleted due to missingness)
Multiple R-squared: 0.1908, Adjusted R-squared: 0.1858
F-statistic: 38.31 on 12 and 1950 DF, p-value: < 2.2e-16
| (1) | |
|---|---|
| Intercept | 0.946 |
| s.e. = 0.003 | |
| p = <0.001 | |
| All Students | −0.007 |
| s.e. = 0.004 | |
| p = 0.097 | |
| Num.Obs. | 1963 |
| R2 | 0.191 |
| R2 Adj. | 0.186 |
After running the regression between attendance rates in 2021 and “group” (the racial indicator), we get an intercept of .946. Notably, the coefficient for Black attendance in 2021 is -0.025683, meaning that Black students had an attendance rate lower than the general attendance rate by 2.57%! Additionally, Hispanic/Latino students have a coefficient of -0.025687. Similarly, Hispanic students have a lower attendance rate in the 2021 school year. White students, however, had an attendance rate that was above the general rate. The p-value of our regression is less than .0001, so we reject the null hypothesis that race does not impact attendance rates. In other words, there is evidence that a student’s race did impact their attendance rates in Connecticut school districts over COVID-19, and my hypothesis is correct!
Thank you! - Chris Ruiz
MILESTONES:
MILESTONE 1:
I am interested in exploring data related to education. I volunteer at the Cambridge After School Program near Alewife and would love to see if I can collect data through surveys of the students about their thoughts on the effectiveness of the program, or really anything related to education. I don’t really know how this will manifest itself, but its a good place to start and I’m excited to brainstorm!
MILESTONE 2: The dataset that I will be using is called School Attendance by Student Group and District, 2021-2022. It is from data.gov. The dataset takes into account schools in the state of Connecticut (public and private) and also stores factors like race, homelessness, income level, whether or not students are on free-reduced lunch programs, school district, and attendance rates between 2019 and 2022. The general question I would like to answer is did COVID-19 impact the attendance rates of low income students and minority students, and if so, by how much, and also if so, did students of color have consistently lower attendance rates than their white counterparts? I hypothesize that COVID disproportionately impacted poorer students and students of color and that their attendance rates in the state of Connecticut will be lower across the board. I have read many articles that claim that COVID impacted the minority workforce disproportionately, so I believe that my hypothesis is rooted in logic and theory. Although I can’t establish causation, I think that this may be true because students in lower income districts had worse access to vaccines, more exposure to the virus, and less school resources to contain the spread of the virus, in turn lowering their attendance rates compared to wealthier, whiter districts. The variables I plan to use are percentage of non white students, percentage of white students, attendance rates in 2019, attendance rates in 2020, attendance rates in 2021, as well as the other factors like homelessness, income, and need. If all goes well, I will establish a negative correlation between non white percentage and attendance rates. This will be measured with a correlation coefficient from -1 to 1. My hypothesis would be proven if the data, when plotted, showed a negative trend between minorities and high attendance rates. My hypothesis would be disproven if attendance rates between 2019 and 2021 were consistent, and also if attendance rates between non whites and whites were consistent. I am excited to get into the data and see what I can find!
MILESTONE 3:
In this milestone, I was interested in overall attendance rates among Black and White students. I chose 2022 for this first visualization, but plan to analyze attendance impact over all 3 years that the dataset allows. It is clear that in the following graphs, black attendance rates are lower than white attendance rates across the board.
MILESTONE 4:
By analyzing the attendance distributions below, there is evidence that Black and Latino students, over all Connecticut school districts, had lower attendance rates in the 2020-2021 school year. I plan to analyze a connection between COVID-19 and attendance rates to compare attendance rates both before and after COVID-19. However, with the data visualizations below, I can estimate that the mean attendance in 2021 for White students is a couple percentage points higher than their Latino and Black counterparts. I also plan to see how homelessness impacted attendance rates, but for right now, the data supports my hypothesis that COVID-19 is not colorblind and impacts communities of color differently.