feat: add new post

master
Nuno Sempere 1 year ago
parent 7ce3ae9819
commit 62837cac47

@ -0,0 +1,231 @@
## Packages
library(ggplot2)
library(ggthemes)
## Build the prior
min_95_ci = 1/5000
max_95_ci = 1/100
magic_constant = 1.6448536269514722
mean_lognormal = (log(min_95_ci) + log(max_95_ci))/2
sigma_lognormal = (log(max_95_ci) - log(min_95_ci))/
( 2 * magic_constant)
num_points = 50000 ## 100000
xs = c(0:num_points)/num_points
ys = dlnorm(xs, meanlog = mean_lognormal, sdlog = sigma_lognormal)
ys = ys / sum(ys)
ys[1] = 2/3 ## so that it ends as 40% after normalization: 2/3 / (2/3 + 1) = 0.4
ys = ys / sum(ys)
cat("Checking that sum(ys) = 1")
cat(c("sum(ys) =", sum(ys)))
chicken_v_human = list()
chicken_v_human$xs = xs
chicken_v_human$ys = ys
chicken_v_human$color = c("red", rep("blue", num_points ))
chicken_v_human = as.data.frame(chicken_v_human)
## Plot the prior
title_text = "Prior over human vs chicken relative values"
subtitle_text=""
label_x_axis = "xs"
label_y_axis = "P(x)"
### Plot the prior over the whole x domain
ggplot(data=chicken_v_human, aes(x=xs, y=ys, color=color))+
geom_point(size=0.5, aes(colour=color), show.legend = FALSE)+
labs(
title=title_text,
subtitle=subtitle_text,
x=label_x_axis,
y=label_y_axis
) +
theme_tufte() +
theme(
legend.title = element_blank(),
plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5),
legend.position="bottom",
legend.box="vertical",
axis.text.x=element_text(angle=60, hjust=1),
plot.background=element_rect(fill = "white",colour = NA)
)+
scale_colour_manual(values = c("navyblue", "red"))
getwd() ## Working directory on which the file will be saved. Can be changed with setwd("/your/directory")
height = 5
width = floor(height*(1+sqrt(5))/2)
ggsave("prior.png", width=width, height=height)
### Plot the prior over only part of the x domain
subtitle_text="(zoomed in)"
ggplot(data=chicken_v_human, aes(x=xs, y=ys))+
geom_point(color="navyblue", size=0.05)+
labs(
title=title_text,
subtitle=subtitle_text,
x=label_x_axis,
y=label_y_axis
) +
theme_tufte() +
theme(
legend.title = element_blank(),
plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5),
legend.position="bottom",
legend.box="vertical",
axis.text.x=element_text(angle=60, hjust=1),
plot.background=element_rect(fill = "white",colour = NA)
)+
scale_x_continuous(limits = c(0, 0.05))+
scale_y_continuous(limits = c(0, 0.005))
ggsave("prior-zoomed-in.png", width=width, height=height)
## Construct p(h|x)
p_w = 0.5
rp_estimate = 0.332
### Construct p(h|xW)
chicken_v_human$p_h_cond_x_W = rep(1/num_points, num_points+1)
### Construct p(h|x(not W))
are_within_one_order_of_magnitude = function(p1, p2){
return(abs(log(p1/p2)/log(10)) <= 1)
}
are_within_one_order_of_magnitude(1,10)
are_within_one_order_of_magnitude(0.1,10)
are_within_one_order_of_magnitude(0.1,1)
start.time <- Sys.time()
count = 0
cache = TRUE
if(!cache){
p_h_cond_x_not_W = c()
for(x in (0:num_points)/num_points){
print(count)
count = count + 1
is_within_one_oom_from_x = function(y){
are_within_one_order_of_magnitude(x,y)
}
if(is_within_one_oom_from_x(rp_estimate)){
num_close_to_x = sum(sapply(xs, is_within_one_oom_from_x))
p_h_cond_x_not_W <- c(p_h_cond_x_not_W, 1/num_close_to_x)
}else{
p_h_cond_x_not_W <- c(p_h_cond_x_not_W, 0)
}
}
end.time <- Sys.time()
time.taken <- end.time - start.time
time.taken
}
chicken_v_human$p_h_cond_x_not_W = p_h_cond_x_not_W
### Construct p(h|x) from p(h|xW) and p(h|x(not W))
chicken_v_human$p_h_cond_x = p_w * chicken_v_human$p_h_cond_x_W + (1-p_w)* chicken_v_human$p_h_cond_x_not_W
### plot p(h|x)
title_text = "P(h|x) update"
subtitle_text=""
label_x_axis = "xs"
label_y_axis = "P(h|x)"
ggplot(data=chicken_v_human, aes(x=xs, y=p_h_cond_x, color=color))+
geom_point(size=0.05, aes(colour=color), show.legend = FALSE)+
labs(
title=title_text,
subtitle=subtitle_text,
x=label_x_axis,
y=label_y_axis
) +
theme_tufte() +
theme(
legend.title = element_blank(),
plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5),
legend.position="bottom",
legend.box="vertical",
axis.text.x=element_text(angle=60, hjust=1),
plot.background=element_rect(fill = "white",colour = NA)
)+
scale_colour_manual(values = c("navyblue", "red"))
ggsave("p_h_x_update.png", width=width, height=height)
## Calculate p_h
p_h = sum(chicken_v_human$ys * chicken_v_human$p_h_cond_x)
cat(p_h)
## Calculate p_x_given_h
chicken_v_human$p_x_given_h = chicken_v_human$ys * chicken_v_human$p_h_cond_x / p_h
## Plot p_x_given_h
title_text = "Posterior, P(x|h)"
subtitle_text=""
label_x_axis = "xs"
label_y_axis = "P(x|h)"
ggplot(data=chicken_v_human, aes(x=xs, y=p_x_given_h, color=color))+
geom_point(size=0.5, aes(colour=color), show.legend = FALSE)+
labs(
title=title_text,
subtitle=subtitle_text,
x=label_x_axis,
y=label_y_axis
) +
theme_tufte() +
theme(
legend.title = element_blank(),
plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5),
legend.position="bottom",
legend.box="vertical",
axis.text.x=element_text(angle=60, hjust=1),
plot.background=element_rect(fill = "white",colour = NA)
)+
scale_colour_manual(values = c("navyblue", "red"))
ggsave("posterior.png", width=width, height=height)
### Plot the posterior over only part of the x domain
subtitle_text="(zoomed in)"
ggplot(data=chicken_v_human, aes(x=xs, y=p_x_given_h))+
geom_point(color="navyblue", size=0.05)+
labs(
title=title_text,
subtitle=subtitle_text,
x=label_x_axis,
y=label_y_axis
) +
theme_tufte() +
theme(
legend.title = element_blank(),
plot.title = element_text(hjust = 0.5),
plot.subtitle = element_text(hjust = 0.5),
legend.position="bottom",
legend.box="vertical",
axis.text.x=element_text(angle=60, hjust=1),
plot.background=element_rect(fill = "white",colour = NA)
)+
scale_x_continuous(limits = c(0, 0.1))+
scale_y_continuous(limits = c(0, 0.005))
ggsave("posterior-zoomed-in.png", width=width, height=height)
## Show some indicators
chicken_v_human$p_x_given_h[1]
prior_average_value = sum(chicken_v_human$xs * chicken_v_human$ys)
posterior_average_value = sum(chicken_v_human$xs * chicken_v_human$p_x_given_h)
prior_average_value
posterior_average_value

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex index.md > index.html

@ -0,0 +1,229 @@
<h1>A Bayesian Adjustment to Rethink Priorities' Welfare Range Estimates</h1>
<p>I was meditating on <a href="https://forum.effectivealtruism.org/posts/Qk3hd6PrFManj8K6o/rethink-priorities-welfare-range-estimates">Rethink Priorities Welfare Range Estimates</a>:</p>
<p><img src="https://i.imgur.com/zJ2JqXE.jpg" alt="" /></p>
<p>Something didn&rsquo;t feel right. As I was meditating on that feeling, suddenly, an apparition of E. T. Jaynes manifested itself, and exclaimed:</p>
<p><img src="https://i.imgur.com/yUAG6oD.png" alt="" /></p>
<p>The way was clear. I should:</p>
<ol>
<li>Come up with a prior over welfare estimates</li>
<li>Come up with an estimate of how likely Rethink Priority&rsquo;s estimates are at each point in the prior</li>
<li>Make a Bayesian update</li>
</ol>
<h3>Three shortcuts on account of my laziness</h3>
<p>To lighten my load, I took certain methodological shortcuts. First, I decided to use probabilities, rather than probability densities.</p>
<p>Taking probabilities instead of limits means that there is some additional clarity. Like, I can deduce Bayes Theorem from:</p>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Note: to correctly render this math, compile this markdown with
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex $1
where /usr/bin/markdown is the discount markdown binary
https://github.com/Orc/discount
http://www.pell.portland.or.us/~orc/Code/discount/
-->
<p>$$ P(A \&amp; B) = P(A) \cdot P(\text{B given A}) $$
$$ P(A \&amp; B) = P(B) \cdot P(\text{A given B}) $$</p>
<p>and therefore</p>
<p>$$ P(A) \cdot P(\text{B given A}) = P(B) \cdot P(\text{A given B}) $$</p>
<p>$$ P(\text{B given A}) = P(B) \cdot \frac{P(\text{A given B})}{P(A) } $$</p>
<p>But for probability densities, is it the case that</p>
<p>$$ d(A \&amp; B) = d(A) \cdot d(\text{B given A})\text{?} $$</p>
<p>Well, yes, but I have to think about limits, wherein, as everyone knows, lie the workings of the devil. So I decided to use a probability distribution over 10,000 possible welfare points, rather than a probability density distribution.</p>
<p>The second shortcut I am taking is to interpret Rethink Priorities&rsquo;s estimates as estimates of the relative value of humans and each species of animal—that is, to take their estimates as saying &ldquo;a human is X times more valuable than a pig/chicken/shrimp/etc&rdquo;. But RP explicitly notes that they are not that, they are just estimates of the range that welfare can take, from the worst experience to the best experience. You&rsquo;d still have to adjust according to what proportion of that range is experienced, e.g., according to how much suffering a chicken in a factory farm experiences as a proportion of its maximum suffering.</p>
<p>And thirdly, I decided to do the Bayesian estimate based on RP&rsquo;s point estimates, rather than on their 90% confidence intervals. I do feel bad about this, because I&rsquo;ve been pushing for more distributions, so it feels a shame to ignore RP&rsquo;s confidence intervals, which could be fitted into e.g., a beta or a lognormal distribution. At the end of this post, I revisit this shortcut.</p>
<p>So in short, my three shortcuts are:</p>
<ol>
<li>use probabilities instead of probability densities</li>
<li>wrongly interpret RP&rsquo;s estimate as giving the tradeoff value between human and animals, rather than their welfare ranges.</li>
<li>use RP&rsquo;s point estimates rather than fitting a distribution to their 90% confidence intervals.</li>
</ol>
<p>These shortcuts mean that you can&rsquo;t literally take this Bayesian estimate seriously. Rather, it&rsquo;s an illustration of how a Bayesian adjustmetn would work. If you are making an important decision which depends on these estimates—e.g., if you are Open Philanthropy or Animal Charity Evaluators and trying to estimate the value of charities corresponding to the amount of animal suffering they prevent—then you should probably commission a complete version of this analysis.</p>
<h3>Focusing on chickens</h3>
<p>For the rest of the post, I will focus on chickens. Updates for other animals should be similar, and focusing on one example lighten my loads.</p>
<p>Coming back to Rethink Priorities' estimates:</p>
<p><img src="https://i.imgur.com/iExw3mP.jpg" alt="" /></p>
<p>Chickens have a welfare range 0.332, i.e., 33.2% as wide as that of humans, according to RP&rsquo;s estimate.</p>
<p>Remember that RP has wide confidence intervals here, so that number in isolation produces a somewhat misleading impression:</p>
<p><img src="https://i.imgur.com/nNbYFOp.png" alt="" /></p>
<h3>Constructing a prior</h3>
<p>So, when I think about how I disvalue chickens' suffering in comparison to how I value human flourishing, moment to moment, I come to something like the following:</p>
<ul>
<li>a 40% that I don&rsquo;t care about chicken suffering at all</li>
<li>a 60% that I care about chicken suffering some relatively small amount, e.g., that I care about a chicken suffering \(\frac{1}{5000} \text{ to } \frac{1}{100}\)th as much as I care about a human being content, moment for moment</li>
</ul>
<p>To those specifications, my prior thus looks like this:</p>
<p><img src="https://i.imgur.com/cQKRZBb.png" alt="Prior over human vs chicken relative values" />
<strong>The lone red point is the probability I assign to 0 value</strong></p>
<p>Zooming in into the blue points, they look like this:</p>
<p><img src="https://i.imgur.com/1LQwt2A.png" alt="Prior over human vs chicken relative values -- zoomed in" /></p>
<p>As I mention before, note that I am not using a probability density, but rather lots of points. In particular, for this simulation, I&rsquo;m using 50,000 points. This will become relevant later.</p>
<h3>Constructing the Bayes factor</h3>
<p>Now, by \(x\) let me represent the point &ldquo;chickens are worth \( x \) as much as human,&rdquo;, and by \(h\) let me represent &ldquo;Rethink Priorities' investigation estimates that chickens are worth \(h\) times as much as humans&rdquo;</p>
<p>Per Bayes' theorem:</p>
<p>$$ P(\text{x given h}) = P(x) \cdot \frac{P(\text{h given x})}{P(h) } $$</p>
<p>As a brief note, I&rsquo;ve been writting &ldquo;\( P( \text{A given B})\)&rdquo; to make this more accessible to some readers. But in what follows I&rsquo;ll use the normal notation &ldquo;\( P(A|B) \)&rdquo;, to mean the same thing, i.e., the probability of A given that we know that B is the case.</p>
<p>So now, I want to estimate \( P(\text{h given x}) \), or \( P(\text{h | x})\). I will divide this estimate in two parts, conditioning on RP&rsquo;s research having gone wrong (\(W\)), and on it having not gone wrong (\( \overline{W} \)):</p>
<p>$$ P(h|x) = P(h | xW) \cdot P(W) + P(h | x \overline{W}) \cdot P(\overline{W}) $$
$$ P(h|x) = P(h | xW) \cdot P(W) + P(h | x \overline{W}) \cdot (1-P(W)) $$</p>
<p>What&rsquo;s the prior probability that RP&rsquo;s research has gone wrong? I don&rsquo;t know, it&rsquo;s a tricky domain with a fair number of moving pieces. On the other hand, RP is generally competent. I&rsquo;m going to say 50%. Note that this is the prior probability, before seing the output of the research. Ideally I&rsquo;d have prerecorded this.</p>
<p>What&rsquo;s \( P(h | xW) \), the probability of getting \( h \) if RP&rsquo;s research has gone wrong? Well, I&rsquo;m using 50,000 possible welfare values, so \( \frac{1}{50000} \)</p>
<p>Conversely, what is, \( P(h | x\overline{W} ) \) the probability of getting \( h \) if RP&rsquo;s research has gone right? Well, this depends on how far away \( h \) is from \( x \).</p>
<ul>
<li>I&rsquo;m going to say that if RP&rsquo;s research had gone right, then \( h \) should be within one order of magnitude to either side of \( x \). If there are \( n(x) \) welfare values within one order of magnitude of \(x\), and \(h\) is amongst them, then \(P(h|x\overline{W}) = \frac{1}{n(x)}\)</li>
<li>Otherwise, if \( h \) is far away from \( x \), and we are conditioning both on \( x \) being the correct moral value and on RP&rsquo;s research being correct, then \(P(h | x\overline{W}) \approx 0\).</li>
</ul>
<p>With this, we can construct \( P(h | x) \). It looks as follows:</p>
<p><img src="https://i.imgur.com/ALZ8SO4.png" alt="probability of h conditional on x, for various xs" /></p>
<p>The wonky increase at the end is because those points don&rsquo;t have as many other points within one order of magnitude of their position. And the sudden drop off is at 0.0332, which is more than one order of magnitude away from the 0.332 estimate. To avoid this, I could have used a function smoother than &ldquo;one order of magnitude away&rdquo;, and I could have used a finer grained mesh, not just 50k points evenly distributed. But I don&rsquo;t think this ends up mattering much.</p>
<p>Now, to complete the <del>death star</del> Bayesian update, we just need \( P(h) \). We can easily get it through</p>
<p>$$ P(h) = \sum P(h | x) \cdot P(x) = 1.005309 \cdot 10^{-5} $$</p>
<p>That is, our original probability that RP would end up with an estimate of 0.332, as opposed to any of the other 50,000 values we are modelling, was \( \approx 1.005309\cdot 10^{-5} \). This would be a neat point to sanity check.</p>
<h3>Applying the Bayesian update</h3>
<p>With \(P(x)\) and \( \frac{P(h|x)}{P(h)} \) in hand, we can now construct \( P(x|h) \), and it looks as follows:</p>
<p><img src="https://i.imgur.com/cy3cTPH.png" alt="posterior" /></p>
<p><img src="https://i.imgur.com/OFhGen3.png" alt="posterior -- zoomed in" /></p>
<h3>Getting a few indicators.</h3>
<p>So for example, the probability assigned to 0 value moves from 40% to 39.788&hellip;%.</p>
<p>We can also calculate our prior and posterior average relative values, as</p>
<p>$$ \text{Prior expected relative value} = \sum x \cdot P(x) \approx 0.00172 $$
$$ \text{Posterior expected relative value} = \sum x \cdot P(x | h) \approx 0.00196 $$</p>
<p>We can also calculate the posterior probability that RP&rsquo;s analysis is wrong. But, wrong in what sense? Well, wrong in the sense of incorrect at describing my, Nuño&rsquo;s, values. But it may well be correct in terms of the tradition and philosophical assumptions that RP is working with, e.g,. some radical anti-speciesist hedonism that I don&rsquo;t share.</p>
<p>So anyways, we can calculate</p>
<p>$$ P(W | h) = \sum P(x) \cdot P(w | hx) $$</p>
<p>And we can calculate \( P(w|hx \) from Bayes:</p>
<p>$$ P(w|hx) = P(W) \cdot \frac{P(h|wx)}{P(h)} $$</p>
<p>But we have all the factors: \( P(W) = 0.5 \), \( P(h | wx) = \frac{1}{50000}\) and \( P(h) = 1.005309 \cdot 10^{-5} \). Note that these factors are constant, so we don&rsquo;t have to actually calculate the sum.</p>
<p>Anyways, in any case, it turns out that</p>
<p>$$ P(W|h) = 0.5 \cdot \frac{\frac{1}{50000}}{1.005309 \cdot 10^{-5}} = 0.9947.. \approx 99.5\%$$</p>
<p>Note that I am in fact abusing RP&rsquo;s estimates, because they are welfare ranges, not relative values. So it <em>should</em> pop out that they are wrong, because I didn&rsquo;t go to the trouble of interpreting them correctly.</p>
<p>In any case, according to the initial prior I constructed, I end up fairly confident that RP&rsquo;s estimate doesn&rsquo;t correctly capture my values. One downside here is that I constructed a fairly confident prior. Am I really 97.5% confident (the left tail of a 95% confidence interval) that the moment-to-moment value of a chicken is below 1% of the moment-to-moment value of a human, according to my values? Well, yes. But if I wasn&rsquo;t, maybe I could mix my initial lognormal prior with a uniform distribution.</p>
<h3>Takeaways</h3>
<p>So, in conclusion, I presented a Bayesian adjustment to RP&rsquo;s estimates of the welfare of different animals. The three moving pieces are:</p>
<ul>
<li>My prior</li>
<li>My likelihood that RP is making a mistake in its analysis</li>
<li>RP&rsquo;s estimate</li>
</ul>
<p>In its writeup, RP writes:</p>
<blockquote><p>“I don&rsquo;t share this projects assumptions. Can&rsquo;t I just ignore the results?”</p>
<p>We dont think so. First, if unitarianism is false, then it would be reasonable to discount our estimates by some factor or other. However, the alternative—hierarchicalism, according to which some kinds of welfare matter more than others or some individuals welfare matters more than others welfare—is very hard to defend. (To see this, consider the many reviews of the most systematic defense of hierarchicalism, which identify deep problems with the proposal.)</p>
<p>Second, and as weve argued, rejecting hedonism might lead you to reduce our non-human animal estimates by ~⅔, but not by much more than that. This is because positively and negatively valenced experiences are very important even on most non-hedonist theories of welfare.</p>
<p>Relatedly, even if you reject both unitarianism and hedonism, our estimates would still serve as a baseline. A version of the Moral Weight Project with different philosophical assumptions would build on the methodology developed and implemented here—not start from scratch.</p></blockquote>
<p>So my main takeaway is that that section is mostly wrong, you can totally ignore these results if you either:</p>
<ul>
<li>have a strong prior that you don&rsquo;t care about certain animals</li>
<li>assign a pretty high probability that RP&rsquo;s analysis has gone wrong at some point</li>
</ul>
<p>But to leave on a positive note, I see making a Bayesian adjustment like the above as a necessary final step, but one that is very generic and that doesn&rsquo;t require the deep expertise and time-intensive effort that RP has been putting into its welfare estimates. So RP has still been producing some very informative estimates, that I hope will influence decisions on this topic.</p>
<h3>Future steps</h3>
<p>I imagine that at some point in its work, RP will post numerical estimates of human vs animal values, of which their welfare ranges are but a component. If so, I&rsquo;ll probably redo this analysis with those factors.</p>
<p>Besides that, it would also be neat to fit RP&rsquo;s 90% confidence interval to a distribution, and update on that distribution, not only on their point estimate.</p>
<h3>Acknowledgements</h3>
<p>Thanks to Rethink Priorities for publishing their estimates so that I and others can play around with them. Generally, I&rsquo;m able to do research on account of being employed by the <a href="https://quantifieduncertainty.org/">Quantified Uncertainty Research Institute</a>, which however wasn&rsquo;t particularly involved in these estimates.</p>
<p>
<section id='isso-thread'>
<noscript>Javascript needs to be activated to view comments.</noscript>
</section>
</p>

@ -0,0 +1,199 @@
A Bayesian Adjustment to Rethink Priorities' Welfare Range Estimates
====================================================================
I was meditating on [Rethink Priorities Welfare Range Estimates](https://forum.effectivealtruism.org/posts/Qk3hd6PrFManj8K6o/rethink-priorities-welfare-range-estimates):
![](https://i.imgur.com/zJ2JqXE.jpg)
Something didn't feel right. Suddenly, an apparition of E. T. Jaynes manifested itself, and exclaimed: <br><br>![](https://i.imgur.com/yUAG6oD.png)
The way was clear. I should:
1. Come up with a prior over welfare estimates
2. Come up with an estimate of how likely Rethink Priority's estimates are at each point in the prior
3. Make a Bayesian update
### Three shortcuts on account of my laziness
To lighten my load, I took certain methodological shortcuts. First, I decided to use probabilities, rather than probability densities.
Taking probabilities instead of limits means that there is some additional clarity. Like, I can deduce Bayes Theorem from:
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Note: to correctly render this math, compile this markdown with
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex $1
where /usr/bin/markdown is the discount markdown binary
https://github.com/Orc/discount
http://www.pell.portland.or.us/~orc/Code/discount/
-->
$$ P(A \& B) = P(A) \cdot P(\text{B given A}) $$
$$ P(A \& B) = P(B) \cdot P(\text{A given B}) $$
and therefore
$$ P(A) \cdot P(\text{B given A}) = P(B) \cdot P(\text{A given B}) $$
$$ P(\text{B given A}) = P(B) \cdot \frac{P(\text{A given B})}{P(A) } $$
But for probability densities, is it the case that
$$ d(A \& B) = d(A) \cdot d(\text{B given A})\text{?} $$
Well, yes, but I have to think about limits, wherein, as everyone knows, lie the workings of the devil. So I decided to use a probability distribution over 10,000 possible welfare points, rather than a probability density distribution.
The second shortcut I am taking is to interpret Rethink Priorities's estimates as estimates of the relative value of humans and each species of animal—that is, to take their estimates as saying "a human is X times more valuable than a pig/chicken/shrimp/etc". But RP explicitly notes that they are not that, they are just estimates of the range that welfare can take, from the worst experience to the best experience. You'd still have to adjust according to what proportion of that range is experienced, e.g., according to how much suffering a chicken in a factory farm experiences as a proportion of its maximum suffering.
And thirdly, I decided to do the Bayesian estimate based on RP's point estimates, rather than on their 90% confidence intervals. I do feel bad about this, because I've been pushing for more distributions, so it feels a shame to ignore RP's confidence intervals, which could be fitted into e.g., a beta or a lognormal distribution. At the end of this post, I revisit this shortcut.
So in short, my three shortcuts are:
1. use probabilities instead of probability densities
2. wrongly interpret RP's estimate as giving the tradeoff value between human and animals, rather than their welfare ranges.
3. use RP's point estimates rather than fitting a distribution to their 90% confidence intervals.
These shortcuts mean that you can't literally take this Bayesian estimate seriously. Rather, it's an illustration of how a Bayesian adjustmetn would work. If you are making an important decision which depends on these estimates—e.g., if you are Open Philanthropy or Animal Charity Evaluators and trying to estimate the value of charities corresponding to the amount of animal suffering they prevent—then you should probably commission a complete version of this analysis.
### Focusing on chickens
For the rest of the post, I will focus on chickens. Updates for other animals should be similar, and focusing on one example lighten my loads.
Coming back to Rethink Priorities' estimates:
![](https://i.imgur.com/iExw3mP.jpg)
Chickens have a welfare range 0.332, i.e., 33.2% as wide as that of humans, according to RP's estimate.
Remember that RP has wide confidence intervals here, so that number in isolation produces a somewhat misleading impression:
![](https://i.imgur.com/nNbYFOp.png)
### Constructing a prior
So, when I think about how I disvalue chickens' suffering in comparison to how I value human flourishing, moment to moment, I come to something like the following:
- a 40% that I don't care about chicken suffering at all
- a 60% that I care about chicken suffering some relatively small amount, e.g., that I care about a chicken suffering \(\frac{1}{5000} \text{ to } \frac{1}{100}\)th as much as I care about a human being content, moment for moment
To those specifications, my prior thus looks like this:
![Prior over human vs chicken relative values](https://i.imgur.com/cQKRZBb.png)
**The lone red point is the probability I assign to 0 value**
Zooming in into the blue points, they look like this:
![Prior over human vs chicken relative values -- zoomed in](https://i.imgur.com/1LQwt2A.png)
As I mention before, note that I am not using a probability density, but rather lots of points. In particular, for this simulation, I'm using 50,000 points. This will become relevant later.
### Constructing the Bayes factor
Now, by \(x\) let me represent the point "chickens are worth \( x \) as much as human,", and by \(h\) let me represent "Rethink Priorities' investigation estimates that chickens are worth \(h\) times as much as humans"
Per Bayes' theorem:
$$ P(\text{x given h}) = P(x) \cdot \frac{P(\text{h given x})}{P(h) } $$
As a brief note, I've been writting "\( P( \text{A given B})\)" to make this more accessible to some readers. But in what follows I'll use the normal notation "\( P(A|B) \)", to mean the same thing, i.e., the probability of A given that we know that B is the case.
So now, I want to estimate \( P(\text{h given x}) \), or \( P(\text{h | x})\). I will divide this estimate in two parts, conditioning on RP's research having gone wrong (\(W\)), and on it having not gone wrong (\( \overline{W} \)):
$$ P(h|x) = P(h | xW) \cdot P(W) + P(h | x \overline{W}) \cdot P(\overline{W}) $$
$$ P(h|x) = P(h | xW) \cdot P(W) + P(h | x \overline{W}) \cdot (1-P(W)) $$
What's the prior probability that RP's research has gone wrong? I don't know, it's a tricky domain with a fair number of moving pieces. On the other hand, RP is generally competent. I'm going to say 50%. Note that this is the prior probability, before seing the output of the research. Ideally I'd have prerecorded this.
What's \( P(h | xW) \), the probability of getting \( h \) if RP's research has gone wrong? Well, I'm using 50,000 possible welfare values, so \( \frac{1}{50000} \)
Conversely, what is, \( P(h | x\overline{W} ) \) the probability of getting \( h \) if RP's research has gone right? Well, this depends on how far away \( h \) is from \( x \).
- I'm going to say that if RP's research had gone right, then \( h \) should be within one order of magnitude to either side of \( x \). If there are \( n(x) \) welfare values within one order of magnitude of \(x\), and \(h\) is amongst them, then \(P(h|x\overline{W}) = \frac{1}{n(x)}\)
- Otherwise, if \( h \) is far away from \( x \), and we are conditioning both on \( x \) being the correct moral value and on RP's research being correct, then \(P(h | x\overline{W}) \approx 0\).
With this, we can construct \( P(h | x) \). It looks as follows:
![probability of h conditional on x, for various xs](https://i.imgur.com/ALZ8SO4.png)
The wonky increase at the end is because those points don't have as many other points within one order of magnitude of their position. And the sudden drop off is at 0.0332, which is more than one order of magnitude away from the 0.332 estimate. To avoid this, I could have used a function smoother than "one order of magnitude away", and I could have used a finer grained mesh, not just 50k points evenly distributed. But I don't think this ends up mattering much.
Now, to complete the ~~death star~~ Bayesian update, we just need \( P(h) \). We can easily get it through
$$ P(h) = \sum P(h | x) \cdot P(x) = 1.005309 \cdot 10^{-5} $$
That is, our original probability that RP would end up with an estimate of 0.332, as opposed to any of the other 50,000 values we are modelling, was \( \approx 1.005309\cdot 10^{-5} \). This would be a neat point to sanity check.
### Applying the Bayesian update
With \(P(x)\) and \( \frac{P(h|x)}{P(h)} \) in hand, we can now construct \( P(x|h) \), and it looks as follows:
![posterior](https://i.imgur.com/cy3cTPH.png)
![posterior -- zoomed in](https://i.imgur.com/OFhGen3.png)
### Getting a few indicators.
So for example, the probability assigned to 0 value moves from 40% to 39.788...%.
We can also calculate our prior and posterior average relative values, as
$$ \text{Prior expected relative value} = \sum x \cdot P(x) \approx 0.00172 $$
$$ \text{Posterior expected relative value} = \sum x \cdot P(x | h) \approx 0.00196 $$
We can also calculate the posterior probability that RP's analysis is wrong. But, wrong in what sense? Well, wrong in the sense of incorrect at describing my, Nuño's, values. But it may well be correct in terms of the tradition and philosophical assumptions that RP is working with, e.g,. some radical anti-speciesist hedonism that I don't share.
So anyways, we can calculate
$$ P(W | h) = \sum P(x) \cdot P(W | hx) $$
And we can calculate \( P(W|hx) \) from Bayes:
$$ P(W|hx) = P(W) \cdot \frac{P(h|Wx)}{P(h)} $$
But we have all the factors: \( P(W) = 0.5 \), \( P(h | Wx) = \frac{1}{50000}\) and \( P(h) = 1.005309 \cdot 10^{-5} \). Note that these factors are constant, so we don't have to actually calculate the sum.
Anyways, in any case, it turns out that
$$ P(W|h) = 0.5 \cdot \frac{\frac{1}{50000}}{1.005309 \cdot 10^{-5}} = 0.9947.. \approx 99.5\%$$
Note that I am in fact abusing RP's estimates, because they are welfare ranges, not relative values. So it *should* pop out that they are wrong, because I didn't go to the trouble of interpreting them correctly.
In any case, according to the initial prior I constructed, I end up fairly confident that RP's estimate doesn't correctly capture my values. One downside here is that I constructed a fairly confident prior. Am I really 97.5% confident (the left tail of a 95% confidence interval) that the moment-to-moment value of a chicken is below 1% of the moment-to-moment value of a human, according to my values? Well, yes. But if I wasn't, maybe I could mix my initial lognormal prior with a uniform distribution.
### Conclusion
So, in conclusion, I presented a Bayesian adjustment to RP's estimates of the welfare of different animals. The three moving pieces are:
- My prior
- My likelihood that RP is making a mistake in its analysis
- RP's estimate
In its writeup, RP writes:
> “I don't share this projects assumptions. Can't I just ignore the results?”
> We dont think so. First, if unitarianism is false, then it would be reasonable to discount our estimates by some factor or other. However, the alternative—hierarchicalism, according to which some kinds of welfare matter more than others or some individuals welfare matters more than others welfare—is very hard to defend. (To see this, consider the many reviews of the most systematic defense of hierarchicalism, which identify deep problems with the proposal.)
> Second, and as weve argued, rejecting hedonism might lead you to reduce our non-human animal estimates by ~⅔, but not by much more than that. This is because positively and negatively valenced experiences are very important even on most non-hedonist theories of welfare.
> Relatedly, even if you reject both unitarianism and hedonism, our estimates would still serve as a baseline. A version of the Moral Weight Project with different philosophical assumptions would build on the methodology developed and implemented here—not start from scratch.
So my main takeaway is that that section is mostly wrong, you can totally ignore these results if you either:
- have a strong prior that you don't care about certain animals, or, more specifically, that their welfare range is narrow.
- assign a pretty high probability that RP's analysis has gone wrong at some point
As for future steps, I imagine that at some point in its work, RP will post numerical estimates of human vs animal values, of which their welfare ranges are but one of many components. If so, I'll probably redo this analysis with those factors. Besides that, it would also be neat to fit RP's 90% confidence interval to a distribution, and update on that distribution, not only on their point estimate.
But to leave on a positive note, I see making a Bayesian adjustment like the above as a necessary final step, but one that is very generic and that doesn't require the deep expertise and time-intensive effort that RP has been putting into its welfare estimates. So RP has still been producing some very informative estimates, that I hope will influence decisions on this topic.
### Acknowledgements
Thanks to Rethink Priorities for publishing their estimates so that I and others can play around with them. Generally, I'm able to do research on account of being employed by the [Quantified Uncertainty Research Institute](https://quantifieduncertainty.org/), which however wasn't particularly involved in these estimates.
<p>
<section id='isso-thread'>
<noscript>Javascript needs to be activated to view comments.</noscript>
</section>
</p>
Loading…
Cancel
Save