Probability & Information Theory (algebrax.probability)¶
algebrax.probability provides statistical physics and information-theoretic metrics:
- Stationary Distributions (
markov_steady_state): Solves principal eigenvector equilibrium \(\pi P = \pi\). - Shannon Entropy (
entropy): Measures state information content \(H(P) = -\sum p_i \ln p_i\). - Kullback-Leibler Divergence (
kl_divergence): Relative entropy between distributions. - Jensen-Shannon Divergence (
js_divergence): Symmetric information distance. - Mutual Information (
mutual_information): Information leakage audit.
PageRank (Algebraic)¶
PageRank is the stationary distribution of a random walk on a graph. Algebraically, it is the principal eigenvector of the transition matrix.
We can compute it using Power Iteration (repeated matrix-vector multiplication).
\[v_{t+1} = \alpha M v_t + (1-\alpha) \frac{1}{N} \mathbf{1}\]
Where: * \(M\) is the column-stochastic transition matrix. * \(\alpha\) is the damping factor (usually 0.85).
Related Recipes & Applications¶
- Post-Quantum Cryptography — Zero leakage verification via
mutual_information. - Supply Chain Logistics — Demand distribution divergence via
kl_divergence. - Natural Language Parsing — Parse tree structural ambiguity via
entropy.