Skip to main content
added 2 characters in body
Source Link
Tim
  • 141.2k
  • 26
  • 270
  • 512

Regression

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance. Below you can see a diagram illustrating this (source here). As you can see, it's not $X$ or $Y$ that are normally distributed, but the residuals centred around value estimated using the linear regression model.

enter image description here

Normalization

The second thing is normalization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$$$z_i = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you can find an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get "scale free" estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same. This kind of data transformations are commonly used in multilevel modelling where centering (i.e. subtracting the mean) is commonly used.

Check those online lectures to find out more on linear regression.

Regression

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance. Below you can see a diagram illustrating this (source here). As you can see, it's not $X$ or $Y$ that are normally distributed, but the residuals centred around value estimated using the linear regression model.

enter image description here

Normalization

The second thing is normalization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you can find an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get "scale free" estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same. This kind of data transformations are commonly used in multilevel modelling where centering (i.e. subtracting the mean) is commonly used.

Check those online lectures to find out more on linear regression.

Regression

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance. Below you can see a diagram illustrating this (source here). As you can see, it's not $X$ or $Y$ that are normally distributed, but the residuals centred around value estimated using the linear regression model.

enter image description here

Normalization

The second thing is normalization. We define it as follows:

$$z_i = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you can find an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get "scale free" estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same. This kind of data transformations are commonly used in multilevel modelling where centering (i.e. subtracting the mean) is commonly used.

Check those online lectures to find out more on linear regression.

some improvements
Source Link
Tim
  • 141.2k
  • 26
  • 270
  • 512

Regression

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance. Below you can see a diagram illustrating this (source here). As you can see, it's not $X$ or $Y$ that are normally distributed, but the residuals centred around value estimated using the linear regression model.

enter image description here

Normalization

The second thing is standardizationnormalization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you havecan find an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description hereenter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get scale independent"scale free" estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same. This kind of data transformations are commonly used in multilevel modelling where centering (i.e. subtracting the mean) is commonly used.

Check those online lectures to find out more on linear regression.

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance.

The second thing is standardization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you have an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get scale independent estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same.

Check those online lectures to find out more on linear regression.

Regression

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance. Below you can see a diagram illustrating this (source here). As you can see, it's not $X$ or $Y$ that are normally distributed, but the residuals centred around value estimated using the linear regression model.

enter image description here

Normalization

The second thing is normalization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you can find an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get "scale free" estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same. This kind of data transformations are commonly used in multilevel modelling where centering (i.e. subtracting the mean) is commonly used.

Check those online lectures to find out more on linear regression.

Source Link
Tim
  • 141.2k
  • 26
  • 270
  • 512

First of all, for linear regression your variables doesn't have to be normally distributed. What you are interested in is if the residuals are normally distributed.

Simple linear regression is defined as:

$$y_i = \beta_0 + \beta_1x_i + \epsilon_i$$

where $\beta_0$ is an intercept, $\beta_1$ is a slope and $\epsilon_i$ is a residual. The regression line is an expected value for $y_i$ observation being a linear function of the explanatory variable:

$$E(y_i) = \beta_0 + \beta_1x_i$$

and there is some variance ($\sigma$) of residuals around this value:

$$ y_i \sim Normal(\beta_0 + \beta_1x_i, \sigma)$$

The relation between your explanatory and the dependent variable has to be linear with residuals normally distributed and having a stable (i.e. homoscedastic) variance.

The second thing is standardization. We define it as follows:

$$z = \frac{x_i - \mu}{\sigma}$$

so that the resulting variable $z$ has mean of 0 and standard deviation of 1. This doesn't make this variable a normally distributed one. After transformation, it has a standard scale, so if you use this kind of transformed variable you'll get a standardized regression estimates (estimates with mean 0 and standard deviation of 1, i.e. $z$-scores).

Below you have an example of 1000 values drawn from uniform distribution (left side) and the same values "normalized" (right side). The distribution on the right side is not more "normal" than it was before, the only thing that changed is it's scale.

enter image description here

So the only thing that changes in here is the scale of explanatory variable. The change is helpful because it enables you to get scale independent estimates of regression parameters, what makes their interpretation easier because the regression parameters relate to the standard deviations. The same is with normalizing the dependent variable - the only thing that changes is scale, the data stays the same.

Check those online lectures to find out more on linear regression.