Top "Linear-regression" questions

for issues related to linear regression modelling approach

Efficient Multiple Linear Regression in C# / .Net

Does anyone know of an efficient way to do multiple linear regression in C#, where the number of simultaneous equations …

c# .net linear-regression
Time series prediction using R

I have the following R code library(forecast) value <- c(1.2, 1.7, 1.6, 1.2, 1.6, 1.3, 1.5, 1.9, 5.4, 4.2, 5.5, 6, 5.6, 6.2, 6.8, 7.1, 7.1, 5.8, 0, 5.2, 4.6, 3.6, 3, 3.8, 3.1, 3.4, 2, 3.1, 3.2, 1.6, 0.6, 3.3, 4.9, 6.5, 5.3, 3.5, 5.3, 7.2, 7.4, 7.3, 7.2, 4, 6.1, 4.3, 4, 2.4, 0.4, 2.4) sensor<-ts(value,frequency=24) fit <- …

r time-series regression linear-regression forecasting
How do I apply scikit-learn's LogisticRegression for some decimal data?

I've the training data set like this: 0.00479616 | 0.0119904 | 0.00483092 | 0.0120773 | 1 0.51213136 | 0.0113404 | 0.02383092 | -0.012073 | 0 0.10479096 | -0.011704 | -0.0453692 | 0.0350773 | 0 The first 4 columns is features of one sample and the …

python machine-learning scikit-learn linear-regression logistics
How to add interaction term in Python sklearn

If I have independent variables [x1, x2, x3] If I fit linear regression in sklearn it will give me something …

python scikit-learn regression linear-regression
why gradient descent when we can solve linear regression analytically

what is the benefit of using Gradient Descent in the linear regression space? looks like the we can solve the …

machine-learning linear-regression gradient-descent
Linear regression with dummy/categorical variables

I have a set of data. I have use pandas to convert them in a dummy and categorical variables respectively. …

python pandas linear-regression statsmodels dummy-variable
Comparing two linear models with anova() in R

I don't quite understand what the p-value in this output means. I don't mean p-values as such, but in this …

r regression linear-regression anova
How to get the P Value in a Variable from OLSResults in Python?

The OLSResults of df2 = pd.read_csv("MultipleRegression.csv") X = df2[['Distance', 'CarrierNum', 'Day', 'DayOfBooking']] Y = df2['Price'] X = add_…

python linear-regression statsmodels
Efficient Cointegration Test in Python

I am wondering if there is a better way to test if two variables are cointegrated than the following method: …

python pandas linear-regression
AttributeError: module 'statsmodels.formula.api' has no attribute 'OLS'

I am trying to use Ordinary Least Squares for multivariable regression. But it says that there is no attribute 'OLS' …

python machine-learning linear-regression statsmodels