Variance and standard deviation #
The variance of a partial linear map T in a state ψ is ‖Tψ - ⟨T⟩_ψ ψ‖ ^ 2. It only
requires ψ ∈ T.domain.
When T is symmetric, ‖ψ‖ = 1, and Tψ ∈ T.domain, it also equals ⟨T^2⟩_ψ - ⟨T⟩_ψ ^ 2.
Main definitions #
Main statements #
LinearPMap.variance_eq_norm_sq_sub_expectedValue_sq: for a unit vector and symmetricT, the variance is‖Tψ‖ ^ 2 - ⟨T⟩_ψ ^ 2.LinearPMap.variance_eq_re_inner_sub_expectedValue_sq: the second-order formula whenTψ ∈ T.domain.LinearPMap.variance_eq_zero_iff_isEigenvectorandLinearPMap.standardDeviation_eq_zero_iff_isEigenvector: for a unit vector, zero variance or standard deviation is equivalent to the eigenvector condition.
References #
variance with centered unfolded to Tψ - ⟨T⟩_ψ • ψ.
For symmetric T and ‖ψ‖ = 1, variance equals ‖Tψ‖ ^ 2 - ⟨T⟩_ψ ^ 2.
Variance is nonnegative.
Zero variance is the same as a zero centered vector.
Zero variance is the same as Tψ = ⟨T⟩_ψ ψ.
For ‖ψ‖ = 1, zero variance iff ψ is an eigenvector with eigenvalue ⟨T⟩_ψ.
Standard deviation √(variance) for ψ ∈ T.domain.
Equations
- T.standardDeviation ψ = √(T.variance ψ)
Instances For
The standard deviation, unfolded to the square root of the variance.
Standard deviation is nonnegative.
Zero standard deviation is the same as a zero centered vector.
Zero standard deviation is the same as Tψ = ⟨T⟩_ψ ψ.
For ‖ψ‖ = 1, zero standard deviation iff the eigenvector condition holds.
When Tψ ∈ T.domain, variance equals ⟨T^2⟩_ψ - ⟨T⟩_ψ ^ 2.