Skip to main content
added 100 characters in body
Source Link
benso8
  • 315
  • 1
  • 8

Using the mean for missing values is not ALWAYS a bad thing. In econometrics, this is a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance but there are other side effects as well. Here isConsider for example what that can causehappens to a regression model when replacing missing values with the mean.

Note that for regression models the coefficient of determination $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can have anhave a $R^2$ value that is not as accuraterealistic as that from the real datait should be. More variance in the data means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual observedobserved $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Let's look at an example.

Say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In econometrics, this is a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can have an $R^2$ value that is not as accurate as that from the real data. More variance in the data means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Let's look at an example.

Say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In econometrics, this is a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance but there are other side effects as well. Consider for example what happens to a regression model when replacing missing values with the mean.

Note that for regression models the coefficient of determination $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can have a $R^2$ value that is not as realistic as it should be. More variance in the data means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Let's look at an example.

Say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

small style changes and typo fixes to make a little more concise
Source Link
Nick Cox
  • 59.5k
  • 8
  • 136
  • 212

Using the mean for missing values is not ALWAYS a bad thing. In fact, in the the study of econometrics econometrics, this is actually a a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination, $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can actually have have an $R^2$ value that is not as accurate as havingthat from the real data. This is because if you have moreMore variance in the data, that means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual actual observed observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

LetsLet's look at an example of what I mean.

Lets saySay you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In fact, in the the study of econometrics, this is actually a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination, $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can actually have an $R^2$ value that is not as accurate as having the real data. This is because if you have more variance in the data, that means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual actual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Lets look at an example of what I mean.

Lets say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In econometrics, this is a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can have an $R^2$ value that is not as accurate as that from the real data. More variance in the data means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Let's look at an example.

Say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

added 22 characters in body
Source Link
benso8
  • 315
  • 1
  • 8

Using the mean for missing values is not ALWAYS a bad thing. In fact, in the the study of econometrics, this is actually a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination, $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can actually have an $R^2$ value that is not as accurate as having the real data. This is because if you have more variance in the data, that means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual actual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Lets look at an example of what I mean.

Lets say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In fact, in the the study of econometrics, this is actually a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that the coefficient of determination, $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can actually have an $R^2$ value that is not as accurate as having the real data. This is because if you have more variance in the data, that means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual actual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Lets look at an example of what I mean.

Lets say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

Using the mean for missing values is not ALWAYS a bad thing. In fact, in the the study of econometrics, this is actually a recommended course of action in some cases provided you understand what the consequences may be and in what cases it is helpful. As you have read, replacing missing values with the mean can reduce the variance. Here is what that can cause.

Note that for regression models the coefficient of determination, $$R^2 = \frac{SSR}{SSTO} = \frac{\sum (\hat{y_i} - \bar{y})^2}{\sum (y_i - \bar{y})^2}.$$ Assuming you have missing $y$ values and you replace those with the sample mean then you can actually have an $R^2$ value that is not as accurate as having the real data. This is because if you have more variance in the data, that means there is more data that is likely further away from the regression line. Since the $R^2$ value depends on individual actual observed $y$ values (see $y_i$ in $SSTO$), your $R^2$ could be inflated because $SSTO$ will be smaller.

Lets look at an example of what I mean.

Lets say you have a value $x_3$ and the corresponding observation for that $x$ value was $y_3$. We do the calculation for that result for SSTO and we have

$$ (y_3 - \bar{y})^2 $$

and that result gets added to the sum for $SSTO$. Now, instead, let's say that value $y_3$ is missing. We then let the missing $y_3 = \bar{y}$. We then have

$$ (\bar{y} - \bar{y})^2 = 0. $$.

As you can see, when we add this to the other results for the denominator the $SSTO$ sum will be smaller.

added 1 character in body
Source Link
benso8
  • 315
  • 1
  • 8
Loading
added 6 characters in body
Source Link
benso8
  • 315
  • 1
  • 8
Loading
added 17 characters in body
Source Link
benso8
  • 315
  • 1
  • 8
Loading
added 533 characters in body
Source Link
benso8
  • 315
  • 1
  • 8
Loading
Source Link
benso8
  • 315
  • 1
  • 8
Loading