Children who score highly on third grade math tests are much more likely to become inventors if they are from high-income families.