Bayesian Identification: A Theory for State-Dependent Utilities