Gibbs entropy



In thermodynamic system,

S = -k_B \sum_i p_i \ln p_i \,           (1)