https://www.dalalinstitute.com/chemistry/books/a-textbook-of-physical-chemistry-volume-1/the-average-value-of-the-square-of-hermitian-operators/
The Average Value of the Square of Hermitian Operators