Define expectation through Lebesgue integration and work with almost-sure equality, absolute continuity, and the Radon–Nikodym derivative.