{"id":106,"date":"2016-09-19T08:30:22","date_gmt":"2016-09-19T12:30:22","guid":{"rendered":"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/?p=106"},"modified":"2016-09-18T08:03:21","modified_gmt":"2016-09-18T12:03:21","slug":"even-an-informative-prior-doesnt-help-much","status":"publish","type":"post","link":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/blog\/2016\/09\/19\/even-an-informative-prior-doesnt-help-much\/","title":{"rendered":"Even an informative prior doesn&#8217;t help much"},"content":{"rendered":"<p><a href=\"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/index.php\/2016\/08\/31\/inference-from-noisy-data-with-small-samples\/\">Two weeks ago<\/a> I pointed out that you should<\/p>\n<blockquote><p>Be wary of results from studies with small sample sizes, even if the effects are statistically significant.<\/p><\/blockquote>\n<p>Last week I pointed out that <a href=\"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/index.php\/2016\/09\/09\/being-bayesian-wont-save-you\/\">being Bayesian won&#8217;t save you<\/a>. If you were paying close attention, you may have thought to yourself<\/p>\n<blockquote><p>Holsinger&#8217;s characterization of Bayesian inference isn&#8217;t completely fair. The mean effect sizes he simulated were only 0.05, 0.10, and 0.20, but he used a prior with a standard deviation of 1.0 in his analyses. Any Bayesian in her right mind wouldn&#8217;t use a prior that broad, because she&#8217;d have a clue going into the experiment that the effect size was relatively small. She&#8217;d pick a prior that more accurately reflects prior knowledge of the likely results.<\/p><\/blockquote>\n<p>It&#8217;s a fair criticism, so to see how much difference more informative priors make, I re-did the simulations with a Gaussian prior on each mean with a prior mean of 0.0 (as before) and a standard deviation of 2 times the effect size used in the simulation. Here are the results:<\/p>\n<table style=\"width: 100%;\">\n<tbody>\n<tr>\n<th>Mean<\/th>\n<th>Sample size<\/th>\n<th>Power<\/th>\n<th>Wrong sign<\/th>\n<\/tr>\n<tr>\n<td>0.05<\/td>\n<td>10<\/td>\n<td>0\/1000<\/td>\n<td>na<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>50<\/td>\n<td>2\/1000<\/td>\n<td>0\/2<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>100<\/td>\n<td>7\/1000<\/td>\n<td>2\/7<\/td>\n<\/tr>\n<tr>\n<td>0.10<\/td>\n<td>10<\/td>\n<td>1\/1000<\/td>\n<td>0\/1<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>50<\/td>\n<td>0\/1000<\/td>\n<td>na<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>100<\/td>\n<td>0\/1000<\/td>\n<td>na<\/td>\n<\/tr>\n<tr>\n<td>0.20<\/td>\n<td>10<\/td>\n<td>22\/1000<\/td>\n<td>2\/22<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>50<\/td>\n<td>128\/1000<\/td>\n<td>0\/158<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>100<\/td>\n<td>265\/1000<\/td>\n<td>0\/292<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>With a more informative prior, you&#8217;re not likely to say that an effect is positive when it&#8217;s actually negative. There are, however, a couple of things worth noticing when you compare this table to the <a href=\"http:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/index.php\/2016\/09\/09\/being-bayesian-wont-save-you\/\">last one<\/a>.<\/p>\n<ol>\n<li>The more informative prior doesn&#8217;t help much, if at all, with a sample size of 10. The N(0,1) prior got the sign wrong in 7 out of 62 cases where the 95% credible interval on the posterior mean difference did not include 0. The N(0,0.4) prior made the same mistake in 2 out of 22 cases. So it didn&#8217;t make as <strong><em>many<\/em><\/strong> mistakes as the less informative prior, but it made almost the same <strong><em>proportion<\/em><\/strong>. In other words, you&#8217;d be almost as likely to make a sign error with the more informative prior as you are with the less informative prior.<\/li>\n<li>Even with a sample size of 100, you wouldn&#8217;t be &#8220;confident&#8221; that there is a difference very often (only 7 times out of 1000) when the &#8220;true&#8221; difference is small, 0.05, but you&#8217;d make a sign error nearly a third of the time (2 out of 7 cases) .<\/li>\n<\/ol>\n<p>So what does all of this mean? When designing and interpreting an experiment you need to have some idea of how big the between-group differences you might reasonably expect to see are relative to the within-group variation. If the between-group differences are &#8220;small&#8221;, you&#8217;re going to need a &#8220;large&#8221; sample size to be confident about your inferences. If you haven&#8217;t collected your data yet, the message is to plan for &#8220;large&#8221; samples within each group. If you have collected your data and your sample size is small, be very careful about interpreting the sign of any observed differences &#8211; even if they are &#8220;statistically significant.&#8221;<\/p>\n<p>What&#8217;s a &#8220;small&#8221; difference, and what&#8217;s a &#8220;large&#8221; sample? You can play with the R\/Stan code in Github to explore the effects: <a href=\"https:\/\/github.com\/kholsinger\/noisy-data\">https:\/\/github.com\/kholsinger\/noisy-data<\/a>. You can also read Gelman and Carlin (Perspectives on Psychological Science 9:641; 2014 <a href=\"http:\/\/dx.doi.org\/10.1177\/1745691614551642\">http:\/\/dx.doi.org\/10.1177\/1745691614551642<\/a>) for more rigorous advice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two weeks ago I pointed out that you should Be wary of results from studies with small sample sizes, even if the effects are statistically significant. Last week I pointed&#8230; <a class=\"read-more-button\" href=\"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/blog\/2016\/09\/19\/even-an-informative-prior-doesnt-help-much\/\">Read more &gt;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-statistics"],"_links":{"self":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":0,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"wp:attachment":[{"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darwin.eeb.uconn.edu\/uncommon-ground\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}