Mean field theories and dual variation by