About 610,000 results
Open links in new tab
  1. python - Linear regression with matplotlib / numpy - Stack Overflow

    from scipy.stats import linregress linregress(x,y) #x and y are arrays or lists. gives out a list with the following: slope : float slope of the regression line intercept : float intercept of the regression line r …

  2. python - Linear regression of arrays containing NAN values - Stack …

    It's not relevant for linregress because it only admits 1-D arrays anyways but if x is 2-D and you're building a linear regression model using sklearn.linear_model.LinearRegression / …

  3. python - Difference (s) between scipy.stats.linregress, numpy ...

    Jun 30, 2015 · The three are very different but overlap in the parameter estimation for the very simple example with only one explanatory variable. By increasing generality: scipy.stats.linregress only …

  4. python - scipy linregress function erroneous standard error return ...

    I have a weird situation with scipy.stats.linregress seems to be returning an incorrect standard error:

  5. python - How to force zero interception in linear regression? - Stack ...

    Apr 3, 2012 · 11 Starting in Python 3.11, we can perform a linear_regression with an intercept forced to 0 directly with the standard library:

  6. python - scipy.stats.linregress - get p-value of intercept - Stack Overflow

    8 scipy.stats.linregress returns a p-value corresponding to the slope, but no p-value for the intercept. Consider the following example from the docs:

  7. python - How to apply linregress in Pandas bygroup - Stack Overflow

    Feb 8, 2013 · I would like to apply a scipy.stats.linregress within Pandas ByGroup. I had looked through the documentation but all I could see was how to apply something to a single column like …

  8. python - Standard deviation/error of linear regression - Stack Overflow

    m, b, r_value, p_value, std_err = stats.linregress(t, yp) The quality of the linear regression is given by the correlation coefficient in r_value, being r_value = 1.0 for a perfect correlation.

  9. python - Multi-variable linear regression with scipy linregress - Stack ...

    Jun 23, 2016 · Multi-variable linear regression with scipy linregress Asked 9 years, 5 months ago Modified 1 year, 11 months ago Viewed 12k times

  10. python - Linear Regression Residuals - Should I "standardise" the ...

    Mar 23, 2016 · Take a look into the documentation of scipy.stats.linregess(): The first argument is x, the abscissa, and the second is y, your observed value. So if obs_values = Mortality should be the …