Skip to main content
`Ctrl`+`K`

# scipy.odr.multilinear

scipy.odr.multilinear = <scipy.odr._models._MultilinearModel object>

  Arbitrary-dimensional linear model

  Deprecated since version 1.17.0: `scipy.odr` is deprecated and will be removed in SciPy 1.19.0. Please use pypi.org/project/odrpack/ instead.

  This model is defined by \(y=\beta_0 + \sum_{i=1}^m \beta_i x_i\)

  Examples

  We can calculate orthogonal distance regression with an arbitrary dimensional linear model:

      >>> from scipy import odr
      >>> import numpy as np
      >>> x = np.linspace(0.0, 5.0)
      >>> y = 10.0 + 5.0 * x
      >>> data = odr.Data(x, y)
      >>> odr_obj = odr.ODR(data, odr.multilinear)
      >>> output = odr_obj.run()
      >>> print(output.beta)
      [10.  5.]