I think you have to look at history.
First, the rich colonies had good harbours and plenty of resources. New York, for example, is still a major port. Trade creates wealth. I have a book about industrial archeology that mentions that steelmaking was big around New York, New Jersey because they had the ore and they would strip the land for miles around to feed the wood into the blast furnaces. then they had coal nearby as a substitute. Also, New York sat at the entrance to the easiest route to the west - the Hudson and the Erie canal. Travellers could also do some short mountain traversal and get to the Ohio river that took them through even richer farmland. being near the industrial towns, and steel making, they were the first to get railroads too. So the north had raw materials, trade routes, and the infrastructure to get goods to market, which is as important as the industry itself. The south had local industries, but until railroads became widespread no easy distribution network - carts are remarkably less efficient than ships or canal barges.
Climate and slavery are also important. An area that had put all its money into agriculture and slaves was less likely to instead put it into factories. As railroads became more important, local factories would find themselves competing with the massive factories and economies of scale as the north distributed its goods across America. This also explains why no factories, typically, in the west. Those Midwest states with a shortage of real resources and low population could not compete with the eastern factories that were already established, and distributing using the new rail network. Note that Detroit got rich because it was on the Great lakes; Henry Ford, for example, got iron ore and coal via lake freighters from northern Michigan. The one really big and rich Midwest-ish city would be Chicago, that was where the lake freighters unloaded to feed the rail lines west, and resources (cattle, pigs, wheat) came east to be sent to the big cities of the coast. If you wanted to build a factory closer to the west, this was the place - money and workers.
California is an anomaly. It boomed at first because of the gold rush, and then the large population centered around the main port of San Francisco became a distribution point for the west; when the transcontinental rail line was finished around 1870 it meant trade both ways. The China tea trade had been booming and California became a prime entry point for the Pacific trade. (The Kansas Pacific railway connected to the line and made it possible to go transcontinental without a ferry crossing on the Missouri, which probably helped cement Kansas City as a bigger more industrial city too.)
it’s my impression that the depression after the civil war, combined with the competition from ex-slaves, probably discouraged migration to the south and the emergence of industries. Plus, unlike the very dry southwest, the general climate, humidity, heat, and mosquitos were a bigger problem.
The newer industries of the 20th century - movies, computers and software, etc. - do not require massive resources and so relocate to desirable climates - hence, silicon valley, Hollywood. If you shoot a lot of movies, it’s convenient to locate to a place that rarely rains, and has everything from forests to mountains to desert nearby. (Ever notice how so many westerns look like the hills near Los Angeles?) Industries tend to cluster near each other - makes it easier to poach good employees, and the suppliers that feed those industries are already in place.
IMHO, education levels are just a function of the richness of the area and the number of educated people already living there - Silicon Valley workers expect their kids to get the same education they have, and care about that. Industries tend to hire (need) more highly educated people than agriculture.