The Equation of Knowledge From Bayes’ Rule to a Unified Philosophy of Science