Consider the cell :Pt|H2(p1atm)|H⊕(x1M)||H⊕(x2M)|H2(p2atm)|Pt. The cell reaction be spontaneous if:
If a random variable X assume values x1, x2, x3, …, xn with the corresponding probabilities p1, p2, p3, …, pn. Then