Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Numerical Data > Statistical Model Analysis > Weights >
Mathematica > Data Manipulation > Statistical Data Analysis > Statistical Model Analysis > Weights >
Mathematica > Mathematics and Algorithms > Statistical Data Analysis > Statistical Model Analysis > Weights >

Weights

Weights
is an option for various fitting and other functions which specifies weights to associate with data elements.
  • Weights associates weight with the i^(th) data element.
  • Weights->func associates weight with the i^(th) data element.
Fit a model using equal weights:
Give explicit weights to the data points:
Compute weights from values:
Compute weights from the response values:
Fit a model using equal weights:
In[1]:=
Click for copyable input
Out[1]=
Give explicit weights to the data points:
In[2]:=
Click for copyable input
Out[2]=
Compute weights from values:
In[3]:=
Click for copyable input
Out[3]=
Compute weights from the response values:
In[4]:=
Click for copyable input
Out[4]=
Use weights in a nonlinear model:
Give explicit weights to the data points:
A generalized linear model:
Logit model:
Probit model:
Weight by a function of multiple variables:
Use default equal weights:
Compute weights from the response values:
Fit a nonlinear model using measurement errors as weights:
Obtain standard errors for the parameters:
Compare to estimates with weights not assumed to be from measurement errors:
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:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF