"Statistical Bias" - Less Wrong
http://lesswrong.com/
"Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/
http://lesswrong.com/lw/ha/statistical_bias/Sat, 31 Mar 2007 04:55:51 +1000
Submitted by <a href="http://lesswrong.com/user/Eliezer_Yudkowsky">Eliezer_Yudkowsky</a>
•
13 votes
•
<a href="http://lesswrong.com/lw/ha/statistical_bias/#comments">8 comments</a>
<div><p>(Part one in a series on "statistical bias", "inductive bias", and "cognitive bias".)</p>
<p>"Bias" as used in the field of statistics refers to directional error in an estimator.  Statistical bias is error you cannot correct by repeating the experiment many times and averaging together the results.
</p>
<p>The famous <em>bias-variance decomposition</em> states that the expected squared error is equal to the squared directional error, or bias, plus the squared random error, or variance.  The law of large numbers says that you can reduce <em>variance</em>, not bias, by repeating the experiment many times and averaging the results.</p><a id="more"></a><p>An experiment has some randomness in it, so if you repeat the experiment many times, you may get slightly different data each time; and if you run a statistical estimator over the data, you may get a slightly different estimate each time.  In classical statistics, we regard the true value of the parameter as a constant, and the experimental estimate as a probabilistic variable.  The <em>bias</em> is the systematic, or average, difference between these two values; the <em>variance</em> is the leftover probabilistic component.
</p>
<p>Let's say you have a repeatable experiment intended to estimate, for example, the height of the Emperor of China.  In fact, the Emperor's height is 200 cm.  Suppose that every single American believes, without variation, that the Emperor's height is 180 cm.  Then if you poll a random American and ask "How tall is the Emperor of China?", the answer is always "180 cm", the error is always -20 cm, and the squared error is always 400 (I shall omit the units on squared errors).  But now suppose that Americans have normally distributed beliefs about the Emperor's height, with mean belief 180 cm, and standard deviation 10 cm.  You conduct two independent repetitions of the poll, and one American says "190 cm", and the other says "170 cm", with errors respectively of -10 cm and -30 cm, and squared errors of 100 and 900.  The average error is -20 cm, as before, but the average squared error is 100 + 900 / 2 = 500.  So even though the average (directional) error didn't change as the result of adding noise to the experiments, the average squared error went up.
</p>
<p>Although in one case the random perturbation of the answer happened to lead the American in the correct direction - the one who answered 190 cm, which is closer to the true value of 200 cm - the other American was led further away from the answer, replying 170 cm.  Since these are equal deviations, the average answer did not change.  But since the square increases faster than linear, the larger error corresponded to a still larger squared error, and the average squared error went up.
</p>
<p>Furthermore, the new <em>average</em> squared error of 500 equals exactly the square of the directional error (-20 cm) plus the square of the random error (standard deviation of 10cm): 400 + 100 = 500.
</p>
<p>In the long run, the above result is universal and exact:  If the true value is constant X and the estimator is Y, then E[(X - Y)^2] = (X - E[Y])^2 + E[(E[Y] - Y)^2].  Expected squared error = squared expected bias + expected variance of estimator.  This is the bias-variance decomposition.
</p>
<p>If we averaged together the two Americans above, we would get an average estimate of 180 cm, with a squared error of 400, which is less than the average error of both experiments taken individually, but still erroneous.
</p>
<p>If the true value is constant X and the estimator is Y, then by averaging many estimates together we converge toward the expected value of Y, E[Y], by the law of large numbers, and if we subtract this from X, we are left with a squared error of (X - E[Y])^2, which is the bias term of the bias-variance decomposition.  If your estimator is all over the map and highly sensitive to noise in the experiment, then by repeating the experiment many times you can get the expected value of your <em>estimator</em>, and so you are left with only the <em>systematic</em> error of that estimator, and not the random noise in the estimator that varies from experiment to experiment.  That's what the law of large numbers is good for.</p></div>
<a href="http://lesswrong.com/lw/ha/statistical_bias/#comments">8 comments</a>
Robin_Hanson2 on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/dy4
http://lesswrong.com/lw/ha/statistical_bias/dy42007-03-31T12:06:51+10:00
<div><p>I think this often goes under the name of "systematic error."</p></div>
simon2 on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/dy5
http://lesswrong.com/lw/ha/statistical_bias/dy52007-03-31T13:23:13+10:00
<div><p>Repeating an experiment with systematic error is a special case of non-independent evidence.</p></div>
Adrian_Tschoegl on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/dy6
http://lesswrong.com/lw/ha/statistical_bias/dy62007-04-01T08:14:02+10:00
<div><p>Eliezer: glad you followed up on Robin's suggestion to do this. The examples in my earlier post on "Useful Bias", then involve resorting to systematic error to deal with problems arising out of processes with unsystematic errors. Similarly, the examples other commenters gave, such as alcoholics foreswearing all drinks or persons setting their watches five minutes early, would also be cases of using sytematic error to avoid problems caused by unsystematic errors.</p></div>
HalFinney on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/dy7
http://lesswrong.com/lw/ha/statistical_bias/dy72007-04-01T09:46:17+10:00
<div><p>I think this same basic formula is behind the argument for majoritarianism: the crowd's consensus (average) squared-error, plus the variance in the crowd, equals the expected squared-error for a random person in the crowd. Therefore the crowd consensus view has a lower expected squared-error than the average squared error for individuals in the crowd. Hence a random participant will do better to substitute the crowd consensus for his own estimate.</p><p>I'm reading a book, "The Difference", by Scott E. Page, which discusses how and when crowds do well, and he calls it the Diversity Prediction Theorem: Given a crowd of predictive models, Collective Error = Average Individual Error - Prediction Diversity.</p></div>
da on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/dy8
http://lesswrong.com/lw/ha/statistical_bias/dy82008-11-11T23:26:03+11:00
<div><p>It is good discription ofsystematic and random error,but how do u differentiat error and bias</p></div>
sunwei on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/7uuf
http://lesswrong.com/lw/ha/statistical_bias/7uuf2012-11-20T00:53:53.928891+11:00
<div class="md"><p>I think this is called "inconsistency" rather than bias. Inconsistency means no matter how many data you have, and however you average them, the result still has directional error.</p></div>
alex_zag_al on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/a0ub
http://lesswrong.com/lw/ha/statistical_bias/a0ub2013-11-08T04:49:40.184788+11:00
<div class="md"><p>this is an easy mistake to make. You're thinking about one large sample, from which you derive one good estimate.</p>
<p>When the article says</p>
<blockquote>
<p>Statistical bias is error you cannot correct by repeating the experiment many times and averaging together the results.</p>
</blockquote>
<p>it means, getting many samples, and from each one of these samples, deriving an estimate from it in isolation.</p>
<p>You: 1 sample of n data points, n->infinity. 1 estimate.</p>
<p>Yudkowsky: n samples of d data points, n->infinity. n estimates.</p></div>
Cyan on "Statistical Bias"
http://lesswrong.com/lw/ha/statistical_bias/a0ul
http://lesswrong.com/lw/ha/statistical_bias/a0ul2013-11-08T05:32:51.775603+11:00
<div class="md"><p>Just to follow up on alex_zag_al's sibling comment, you can have consistent estimators which are biased for any finite sample size, but are aymptotically unbiased, i.e., the bias shrinks to zero as the sample size increases without bound.</p>
<p>(As alex_zag_al notes, EY's explanation of bias is correct. It means that in some situations "do an analysis on all the data" is not equivalent to "do the analysis on disjoint subjects of the data and average the results" -- the former may have a smaller bias than the latter.)</p></div>