LinregressResult
LinregressResult is the return type of the SciPy function scipy.stats.linregress. It is a namedtuple-like object that encapsulates the results of a simple linear regression of a dependent variable y on an independent variable x using ordinary least squares.
The LinregressResult contains several fields: slope (the regression slope), intercept (the regression intercept), rvalue (the Pearson
Access to the values can be done via attribute lookup, for example result.slope or result.intercept. The results
Implementation-wise, LinregressResult is immutable and serves as a concise container for the common statistics produced by