is an option for various fitting and other functions which specifies weights to associate with data elements.


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 all close 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:
Related Guides
History
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
BibTeX
@misc{reference.wolfram_2025_weights, author="Wolfram Research", title="{Weights}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Weights.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_weights, organization={Wolfram Research}, title={Weights}, year={2008}, url={https://reference.wolfram.com/language/ref/Weights.html}, note=[Accessed: 16-August-2025]}