Weights
is an option for Regress and NonlinearRegress which specifies weights for the input data.


Weights
Weights
is an option for Regress and NonlinearRegress which specifies weights for the input data.
Details and Options
- To use Weights, you first need to load the Regression Common Functions Package. You can do this by using Needs["LinearRegression`"] or Needs["NonlinearRegression`"], which will automatically load the Regression Common Functions Package, or you can load the package directly by using Needs["RegressionCommon`"].
- Possible settings for Weights are Automatic, a list of numbers with the same length as the data, or a pure function.
- With the default setting Weights->Automatic, each data point is given a weight of 1.
See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), Weights, Wolfram Language function, https://reference.wolfram.com/language/RegressionCommon/ref/Weights.html.
CMS
Wolfram Language. 2007. "Weights." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/RegressionCommon/ref/Weights.html.
APA
Wolfram Language. (2007). Weights. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/RegressionCommon/ref/Weights.html
BibTeX
@misc{reference.wolfram_2025_weights, author="Wolfram Research", title="{Weights}", year="2007", howpublished="\url{https://reference.wolfram.com/language/RegressionCommon/ref/Weights.html}", note=[Accessed: 12-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_weights, organization={Wolfram Research}, title={Weights}, year={2007}, url={https://reference.wolfram.com/language/RegressionCommon/ref/Weights.html}, note=[Accessed: 12-August-2025]}