Top "Linear-regression" questions

for issues related to linear regression modelling approach

Adding a regression line on a ggplot

I'm trying hard to add a regression line on a ggplot. I first tried with abline but I didn't manage …

r ggplot2 regression linear-regression
Add regression line equation and R^2 on graph

I wonder how to add regression line equation and R^2 on the ggplot. My code is: library(ggplot2) df <…

r ggplot2 linear-regression r-faq
How to do exponential and logarithmic curve fitting in Python? I found only polynomial fitting

I have a set of data and I want to compare which line describes it best (polynomials of different orders, …

python numpy scipy curve-fitting linear-regression
What is the difference between linear regression and logistic regression?

When we have to predict the value of a categorical (or discrete) outcome we use logistic regression. I believe we …

machine-learning data-mining linear-regression
Linear regression with matplotlib / numpy

I'm trying to generate a linear regression on a scatter plot I have generated, however my data is in list …

python numpy matplotlib linear-regression curve-fitting
How to overplot a line on a scatter plot in python?

I have two vectors of data and I've put them into pyplot.scatter(). Now I'd like to over plot a …

python numpy matplotlib linear-regression scatter-plot
How to force R to use a specified factor level as reference in a regression?

How can I tell R to use a certain level as reference if I use binary explanatory variables in a …

r regression linear-regression categorical-data dummy-variable
Multiple linear regression in Python

I can't seem to find any python libraries that do multiple regression. The only things I find only do simple …

python numpy statistics scipy linear-regression
How to calculate the 95% confidence interval for the slope in a linear regression model in R

Here is an exercise from Introductory Statistics with R: With the rmr data set, plot metabolic rate versus body weight. …

r statistics linear-regression confidence-interval
gradient descent using python and numpy

def gradient(X_norm,y,theta,alpha,m,n,num_it): temp=np.array(np.zeros_like(theta,float)) for …

python numpy machine-learning linear-regression gradient-descent