“Flock” may be extreme. Changes are often small, in many cases too small to tell if the recession is the primary factor or there are other driving factors. Using the subprime mortgage crisis recession as an example. The peak recession period was 2008-2009. It typically takes a couple years before the maximum effect is propagated to bachelor’s degree recipients, so I’d expect to see the largest effect in ~2011, and things gradually moving back to normal trends a few years after 2011.
CS majors show the following pattern. If anything, it looks like fewer people switched to CS following the 2008-09 recession than normal. It certainly does not look like students are flocking to CS in 2011. Engineering shows the same type of pattern.
2007 – 2.5% (pre-recession)
2011 – 2.6% (peak major effects from recession)
2015 – 3.2% (returning to normal trend)
For health/nursing, the pattern is as follows. Nursing/health majors did increase significantly from 2007 to 2011, but the rate of increase was similar to or slightly less than the trend of future years, so it’s not clear that the recession was a significant driver.
2007 – 7.1% (pre-recession)
2011 – 9.1% (peak major effects from recession)
2015 – 12.0% (returning to normal trend)
I think stronger patterns often relate to perceptions of specific industries or world events, which can include perceptions about availability of future jobs, feelings about in what fields inspire students, as well as general feelings about fields being good/bad. For example, economics majors had a gradual peak during Reaganomics. History majors had peaked during Vietnam. Political Science majors had a peak following the fall of the Soviet Union (history also had a smaller peak).
It’s too early to see the impact of COVID in NCES stats, but one can look at how major enrollment (not number of completed degrees) changed at specific colleges. For example, at Stanford, it appears than biology / human biology major enrollment had a sharp decrease during COVID and is quickly recovering, now that COVID is more under control. I expect becoming a doctor seemed less appealing during COVID. CS enrollment changed from a trend of rapid increase to a decreased enrollment during COVID, perhaps due to perceptions of the change from in office to remote work and/or effects on hiring new grads.
This decreased CS major enrollment during COVID may continue to trickle down to bachelor’s degree recipients this year, due to delay between major declaration and degree received. However, as of 2022, CS major enrollment has recovered and is now at all time record high levels. The percentage of Stanford’s current 2022 students declaring a major in CS is a larger portion of students than any other major in Stanford’s recorded history.