This folder contains code that calculates the Drake equation using distributions of estimates (not one-point estimates) for the equation parameters, obtaining a distribution (not a point estimate) of the possible number of detectable alien civilizations in our Galaxy. That is done using forecast data from the Metaculus website.
If you want to know more about all of this and about the process of doing it all, take a look at this post.
Run the Drake_Metaculus.py file (it uses many common libraries: numpy, pandas, matplotlib, scipy, and statsmodels). It will download data from Metaculus's questions about the 7 parameters of the Drake equation. Using the API, the most recent forecast data - the PDFs and CDFs for each parameter - will be parsed and used to calculate
Metaculus has changed the format of the API output twice since I finished most of the code, which broke the parsing and I had to change the code twice in response. This may happen again, so I can't guarantee that the code will always work. But I will try to keep it working.
At the end, you will have three figures, the last and most important one is shown below.
where
and
The Drake equation is usually computed using point estimates for every parameter. However, we are not certain of the value of many parameters, with estimates varying many orders of magnitude. Following Sandberg, Drexler, and Toby Ord's Dissolving the Fermi Paradox, it seems better to use probability density functions and get a distribution for the possible values of
See the links below: