The second law of thermodynamics and multifractal distribution functions: Bin counting, pair correlations, and the Kaplan–Yorke conjecture