Logic and statistics