A Bayesian Approach to the Production of Information and Learning by Doing