Can linear regression be used on non-normal data?

Can linear regression be used on non-normal data?

In linear regression, errors are assumed to follow a normal distribution with a mean of zero. It seems like it’s working totally fine even with non-normal errors. In fact, linear regression analysis works well, even with non-normal errors. But, the problem is with p-values for hypothesis testing.

Does Y need to be normally distributed for linear regression?

The answer is no: the estimation method used in linear regression, ordinary least squares (OLS) method, doesn’t not require the normality assumption. So, if you see that a variable is not distributed normally, don’t be upset and go ahead: it is absolutely useless trying to normalize everything.

How are categorical predictors used in linear regression?

9.1.1 Linear Regression – Categorical Predictor Performing a linear regression with a categorical attribute works programmatically just like a linear regression with a continuous attribute. More specifically, the same function is used, lm (), and the specification of the attributes in the model formula are the same.

Do you need normality for a regression model?

A standard regression model assumes that the errors are normal, and that all predictors are fixed, which means that the response variable is also assumed to be normal for the inferential procedures in regression analysis. The fit does not require normality.

When to use continuous attribute in linear regression?

In previous chapters, linear regression has only included a continuous attribute to help predict or explain variation in a continuous outcome. In previous models from chapter 7 and 8, linear regression models were considered that tried to explain variation in the minimum temperature with the sea level pressure and the average dew point.

Is the y-variable normally distributed in regression?

I suppose that is the origin of people thinking that the y-variable should be normally distributed as an assumption for regression, but the y-data distribution in regression is not conditional, and that is not true. It is desirable for estimated residuals to be normally distributed, though even that is not a very strict requirement.