Weights
is an option for various fitting and other functions which specifies weights to associate with data elements.
Details
- Weights->Automatic associates weight 1 with all data elements.
- Weights->{w1,w2,…} associates weight wi with the i data element.
- Weights->func associates weight func[xi1,xi2,…,yi] with the i data element.
- Using VarianceEstimatorFunction->(1&) and Weights->{1/Δy12,1/Δy22,…}, Δyi is treated as the known uncertainty of measurement yi and parameter standard errors are effectively computed only from the weights. »
Examples
open allclose allBasic Examples (1)
Scope (2)
Applications (1)
Properties & Relations (2)
Weights impact the relative importance of data points on the fitting:
Scaling by a constant does not change the parameter estimates:
Obtain parameter estimates from a weighted linear fitting:
LeastSquares gives the equivalent result when weights are incorporated:
Text
Wolfram Research (2008), Weights, Wolfram Language function, https://reference.wolfram.com/language/ref/Weights.html.
CMS
Wolfram Language. 2008. "Weights." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Weights.html.
APA
Wolfram Language. (2008). Weights. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Weights.html