ScientificErrorAnalysis
Variance
return the variance of a quantity-with-error
Calling Sequence
Parameters
Description
Examples
Variance( obj )
obj
-
quantity-with-error
The Variance( obj ) command returns the variance of the quantity-with-error obj.
The quantity-with-error obj can have functional dependence on other quantities-with-error.
If the quantity-with-error obj does not have functional dependence on other quantities-with-error, the uncertainty of obj is accessed and converted to the variance (by squaring).
If the quantity-with-error obj has functional dependence on other quantities-with-error, the variance is calculated using the usual formula of error analysis involving a first-order expansion with the dependent form and covariances between the other quantities-with-error. This process can be recursive.
The variance u2⁡y in y, where y depends on the xi, is
u⁡y2=∑i=1N⁡ⅆyⅆxi2⁢u⁡xi2+2⁢∑i=1N−1⁡∑j=i+1N⁡ⅆyⅆxi⁢ⅆyⅆxj⁢u⁡xi,xj
where u⁡xi is the error in xi, u⁡xi,xj is the covariance between xi and xj, and the partials are evaluated at the central values of the xi.
Variances involving physical constants are calculated naturally and correctly in the implied system of units because central values and errors are obtained from the interface to ScientificConstants.
with⁡ScientificConstants:
with⁡ScientificErrorAnalysis:
a≔Quantity⁡10.,2.:
Variance⁡a
4.
GetConstant⁡h
Planck_constant,symbol=h,value=6.626070040×10−34,uncertainty=8.1×10−42,units=J⁢s
Variance⁡Constant⁡h
6.561×10−83
GetConstant⁡me
electron_mass,symbol=me,derive=2⁢R∞⁢hc⁢α2
Variance⁡Constant⁡me
1.241654324×10−76
GetError⁡Constant⁡me2
1.241654323×10−76
See Also
combine/errors
ScientificConstants
ScientificConstants[Constant]
ScientificConstants[GetConstant]
ScientificConstants[GetError]
ScientificErrorAnalysis and ScientificConstants
ScientificErrorAnalysis[Covariance]
ScientificErrorAnalysis[GetCorrelation]
ScientificErrorAnalysis[Quantity]
ScientificErrorAnalysis[SetCorrelation]
Download Help Document