So if you design a new car, and you find a flaw in the design, would it be cheaper to fix it at the design stage, or after you've set up a production line, done all your tooling, trained your staff, ordered all components and started rolling out cars?
Exactly. So the longer you wait to start building the car, the greater the chances that the flaws will be found at the design stage.
I agree with your assertion that a prosperous economy does a world of good for research, but basic research? Assuming we're talking about the same things here I'd say that's not something done by most companies. Companies does applied research, and they're damn good at it. Basic research is just a money sink to them and something most often done with taxpayers money. Solar is a good example. Now they're beginning to become efficient and many companies are investing in researching it, because of the research done over the last 30 years or so, mainly funded by taxpayers. Does that mean that the research done over the last 30 years have been wasted? Or that they've provided a foundation that companies can build on?
Well sure, why pay for something if you can get the government to pay for it? The problem is that the government faces the same problem choosing priorities for basic research. But however you slice it, and whoever funds basic research, the more prosperous we are, the more basic research there can be.
When it comes to the children then. I thought the race was on to find the next Einstein/Beethoven, not to provide a comfortable life for your children. Perhaps one of the snotty children of that poor family over there have the potential, but don't get the chance to proper education because of their socio-economic status. While we all like to think that our children are geniuses, the likelihood of that being true is slim. So you need a broad search scope, meaning that you'd want to give the largest amount of people possible the chance to test their potential. Not just the ones lucky enough to have good parents.
You're again operating on the assumption that you can create some test to find the winners. You can't. The information to do that doesn't exist. If you created such a program, you likely would have passed right over Einstein. (I'll admit, you probably would have caught Beethoven.)