Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env node
var egg_to_embryo = 0.75;
var embryo_to_blastocyst = 0.50;
var blastocyte_chance = 0.3; // egg_to_embryo * embryo_to_blastocyst;
var debug = false;
function exponent(x, y) {
var exp = 1;
for (var i = 0; i < y; i++) {
exp *= x;
}
return exp;
}
function factorial(n) {
var fact = n;
for (var i = n - 1; i > 0; i--) {
fact *= i;
}
return fact;
}
function nCr(n, r) {
if (r == 0 || r == n) { return 1; }
return factorial(n) / (factorial(n - r) * factorial(r));
}
function chance(pBlastocyte, eggs, blastocytes) {
var success = exponent(pBlastocyte, blastocytes);
var failure = exponent(1 - pBlastocyte, eggs - blastocytes);
var chance = success * failure;
var ways = nCr(eggs, blastocytes);
var probability = chance * ways;
if (debug) {
console.log(eggs + ' eggs in, ' + blastocytes + ' blastocytes out');
console.log(' success: ' + success);
console.log(' failure: ' + failure);
console.log(' chance: ' + chance);
console.log(' ways: ' + ways);
console.log(' probability: ' + probability);
}
return (exponent(pBlastocyte, blastocytes)
* exponent(1 - pBlastocyte, eggs - blastocytes))
* nCr(eggs, blastocytes);
}
for (var eggs = 1; eggs <= 20; eggs++) {
var sum = 0;
for (var blastocytes = eggs; blastocytes >= 0; blastocytes--) {
var prob = chance(blastocyte_chance, eggs, blastocytes);
sum += prob;
console.log(eggs + ' eggs in, ' + blastocytes + ' blastocytes out');
console.log(' probability (exactly ' + blastocytes + '): ' + Math.round(prob * 100) + '%');
console.log(' cumulative probability (at least ' + blastocytes + '): ' + Math.round(sum * 100) + '%');
}
console.log();
}
1 eggs in, 1 blastocytes out
probability (exactly 1): 30%
cumulative probability (at least 1): 30%
1 eggs in, 0 blastocytes out
probability (exactly 0): 70%
cumulative probability (at least 0): 100%
2 eggs in, 2 blastocytes out
probability (exactly 2): 9%
cumulative probability (at least 2): 9%
2 eggs in, 1 blastocytes out
probability (exactly 1): 42%
cumulative probability (at least 1): 51%
2 eggs in, 0 blastocytes out
probability (exactly 0): 49%
cumulative probability (at least 0): 100%
3 eggs in, 3 blastocytes out
probability (exactly 3): 3%
cumulative probability (at least 3): 3%
3 eggs in, 2 blastocytes out
probability (exactly 2): 19%
cumulative probability (at least 2): 22%
3 eggs in, 1 blastocytes out
probability (exactly 1): 44%
cumulative probability (at least 1): 66%
3 eggs in, 0 blastocytes out
probability (exactly 0): 34%
cumulative probability (at least 0): 100%
4 eggs in, 4 blastocytes out
probability (exactly 4): 1%
cumulative probability (at least 4): 1%
4 eggs in, 3 blastocytes out
probability (exactly 3): 8%
cumulative probability (at least 3): 8%
4 eggs in, 2 blastocytes out
probability (exactly 2): 26%
cumulative probability (at least 2): 35%
4 eggs in, 1 blastocytes out
probability (exactly 1): 41%
cumulative probability (at least 1): 76%
4 eggs in, 0 blastocytes out
probability (exactly 0): 24%
cumulative probability (at least 0): 100%
5 eggs in, 5 blastocytes out
probability (exactly 5): 0%
cumulative probability (at least 5): 0%
5 eggs in, 4 blastocytes out
probability (exactly 4): 3%
cumulative probability (at least 4): 3%
5 eggs in, 3 blastocytes out
probability (exactly 3): 13%
cumulative probability (at least 3): 16%
5 eggs in, 2 blastocytes out
probability (exactly 2): 31%
cumulative probability (at least 2): 47%
5 eggs in, 1 blastocytes out
probability (exactly 1): 36%
cumulative probability (at least 1): 83%
5 eggs in, 0 blastocytes out
probability (exactly 0): 17%
cumulative probability (at least 0): 100%
6 eggs in, 6 blastocytes out
probability (exactly 6): 0%
cumulative probability (at least 6): 0%
6 eggs in, 5 blastocytes out
probability (exactly 5): 1%
cumulative probability (at least 5): 1%
6 eggs in, 4 blastocytes out
probability (exactly 4): 6%
cumulative probability (at least 4): 7%
6 eggs in, 3 blastocytes out
probability (exactly 3): 19%
cumulative probability (at least 3): 26%
6 eggs in, 2 blastocytes out
probability (exactly 2): 32%
cumulative probability (at least 2): 58%
6 eggs in, 1 blastocytes out
probability (exactly 1): 30%
cumulative probability (at least 1): 88%
6 eggs in, 0 blastocytes out
probability (exactly 0): 12%
cumulative probability (at least 0): 100%
7 eggs in, 7 blastocytes out
probability (exactly 7): 0%
cumulative probability (at least 7): 0%
7 eggs in, 6 blastocytes out
probability (exactly 6): 0%
cumulative probability (at least 6): 0%
7 eggs in, 5 blastocytes out
probability (exactly 5): 3%
cumulative probability (at least 5): 3%
7 eggs in, 4 blastocytes out
probability (exactly 4): 10%
cumulative probability (at least 4): 13%
7 eggs in, 3 blastocytes out
probability (exactly 3): 23%
cumulative probability (at least 3): 35%
7 eggs in, 2 blastocytes out
probability (exactly 2): 32%
cumulative probability (at least 2): 67%
7 eggs in, 1 blastocytes out
probability (exactly 1): 25%
cumulative probability (at least 1): 92%
7 eggs in, 0 blastocytes out
probability (exactly 0): 8%
cumulative probability (at least 0): 100%
8 eggs in, 8 blastocytes out
probability (exactly 8): 0%
cumulative probability (at least 8): 0%
8 eggs in, 7 blastocytes out
probability (exactly 7): 0%
cumulative probability (at least 7): 0%
8 eggs in, 6 blastocytes out
probability (exactly 6): 1%
cumulative probability (at least 6): 1%
8 eggs in, 5 blastocytes out
probability (exactly 5): 5%
cumulative probability (at least 5): 6%
8 eggs in, 4 blastocytes out
probability (exactly 4): 14%
cumulative probability (at least 4): 19%
8 eggs in, 3 blastocytes out
probability (exactly 3): 25%
cumulative probability (at least 3): 45%
8 eggs in, 2 blastocytes out
probability (exactly 2): 30%
cumulative probability (at least 2): 74%
8 eggs in, 1 blastocytes out
probability (exactly 1): 20%
cumulative probability (at least 1): 94%
8 eggs in, 0 blastocytes out
probability (exactly 0): 6%
cumulative probability (at least 0): 100%
9 eggs in, 9 blastocytes out
probability (exactly 9): 0%
cumulative probability (at least 9): 0%
9 eggs in, 8 blastocytes out
probability (exactly 8): 0%
cumulative probability (at least 8): 0%
9 eggs in, 7 blastocytes out
probability (exactly 7): 0%
cumulative probability (at least 7): 0%
9 eggs in, 6 blastocytes out
probability (exactly 6): 2%
cumulative probability (at least 6): 3%
9 eggs in, 5 blastocytes out
probability (exactly 5): 7%
cumulative probability (at least 5): 10%
9 eggs in, 4 blastocytes out
probability (exactly 4): 17%
cumulative probability (at least 4): 27%
9 eggs in, 3 blastocytes out
probability (exactly 3): 27%
cumulative probability (at least 3): 54%
9 eggs in, 2 blastocytes out
probability (exactly 2): 27%
cumulative probability (at least 2): 80%
9 eggs in, 1 blastocytes out
probability (exactly 1): 16%
cumulative probability (at least 1): 96%
9 eggs in, 0 blastocytes out
probability (exactly 0): 4%
cumulative probability (at least 0): 100%
10 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
10 eggs in, 9 blastocytes out
probability (exactly 9): 0%
cumulative probability (at least 9): 0%
10 eggs in, 8 blastocytes out
probability (exactly 8): 0%
cumulative probability (at least 8): 0%
10 eggs in, 7 blastocytes out
probability (exactly 7): 1%
cumulative probability (at least 7): 1%
10 eggs in, 6 blastocytes out
probability (exactly 6): 4%
cumulative probability (at least 6): 5%
10 eggs in, 5 blastocytes out
probability (exactly 5): 10%
cumulative probability (at least 5): 15%
10 eggs in, 4 blastocytes out
probability (exactly 4): 20%
cumulative probability (at least 4): 35%
10 eggs in, 3 blastocytes out
probability (exactly 3): 27%
cumulative probability (at least 3): 62%
10 eggs in, 2 blastocytes out
probability (exactly 2): 23%
cumulative probability (at least 2): 85%
10 eggs in, 1 blastocytes out
probability (exactly 1): 12%
cumulative probability (at least 1): 97%
10 eggs in, 0 blastocytes out
probability (exactly 0): 3%
cumulative probability (at least 0): 100%
11 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
11 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
11 eggs in, 9 blastocytes out
probability (exactly 9): 0%
cumulative probability (at least 9): 0%
11 eggs in, 8 blastocytes out
probability (exactly 8): 0%
cumulative probability (at least 8): 0%
11 eggs in, 7 blastocytes out
probability (exactly 7): 2%
cumulative probability (at least 7): 2%
11 eggs in, 6 blastocytes out
probability (exactly 6): 6%
cumulative probability (at least 6): 8%
11 eggs in, 5 blastocytes out
probability (exactly 5): 13%
cumulative probability (at least 5): 21%
11 eggs in, 4 blastocytes out
probability (exactly 4): 22%
cumulative probability (at least 4): 43%
11 eggs in, 3 blastocytes out
probability (exactly 3): 26%
cumulative probability (at least 3): 69%
11 eggs in, 2 blastocytes out
probability (exactly 2): 20%
cumulative probability (at least 2): 89%
11 eggs in, 1 blastocytes out
probability (exactly 1): 9%
cumulative probability (at least 1): 98%
11 eggs in, 0 blastocytes out
probability (exactly 0): 2%
cumulative probability (at least 0): 100%
12 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
12 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
12 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
12 eggs in, 9 blastocytes out
probability (exactly 9): 0%
cumulative probability (at least 9): 0%
12 eggs in, 8 blastocytes out
probability (exactly 8): 1%
cumulative probability (at least 8): 1%
12 eggs in, 7 blastocytes out
probability (exactly 7): 3%
cumulative probability (at least 7): 4%
12 eggs in, 6 blastocytes out
probability (exactly 6): 8%
cumulative probability (at least 6): 12%
12 eggs in, 5 blastocytes out
probability (exactly 5): 16%
cumulative probability (at least 5): 28%
12 eggs in, 4 blastocytes out
probability (exactly 4): 23%
cumulative probability (at least 4): 51%
12 eggs in, 3 blastocytes out
probability (exactly 3): 24%
cumulative probability (at least 3): 75%
12 eggs in, 2 blastocytes out
probability (exactly 2): 17%
cumulative probability (at least 2): 91%
12 eggs in, 1 blastocytes out
probability (exactly 1): 7%
cumulative probability (at least 1): 99%
12 eggs in, 0 blastocytes out
probability (exactly 0): 1%
cumulative probability (at least 0): 100%
13 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
13 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
13 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
13 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
13 eggs in, 9 blastocytes out
probability (exactly 9): 0%
cumulative probability (at least 9): 0%
13 eggs in, 8 blastocytes out
probability (exactly 8): 1%
cumulative probability (at least 8): 2%
13 eggs in, 7 blastocytes out
probability (exactly 7): 4%
cumulative probability (at least 7): 6%
13 eggs in, 6 blastocytes out
probability (exactly 6): 10%
cumulative probability (at least 6): 17%
13 eggs in, 5 blastocytes out
probability (exactly 5): 18%
cumulative probability (at least 5): 35%
13 eggs in, 4 blastocytes out
probability (exactly 4): 23%
cumulative probability (at least 4): 58%
13 eggs in, 3 blastocytes out
probability (exactly 3): 22%
cumulative probability (at least 3): 80%
13 eggs in, 2 blastocytes out
probability (exactly 2): 14%
cumulative probability (at least 2): 94%
13 eggs in, 1 blastocytes out
probability (exactly 1): 5%
cumulative probability (at least 1): 99%
13 eggs in, 0 blastocytes out
probability (exactly 0): 1%
cumulative probability (at least 0): 100%
14 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
14 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
14 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
14 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
14 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
14 eggs in, 9 blastocytes out
probability (exactly 9): 1%
cumulative probability (at least 9): 1%
14 eggs in, 8 blastocytes out
probability (exactly 8): 2%
cumulative probability (at least 8): 3%
14 eggs in, 7 blastocytes out
probability (exactly 7): 6%
cumulative probability (at least 7): 9%
14 eggs in, 6 blastocytes out
probability (exactly 6): 13%
cumulative probability (at least 6): 22%
14 eggs in, 5 blastocytes out
probability (exactly 5): 20%
cumulative probability (at least 5): 42%
14 eggs in, 4 blastocytes out
probability (exactly 4): 23%
cumulative probability (at least 4): 64%
14 eggs in, 3 blastocytes out
probability (exactly 3): 19%
cumulative probability (at least 3): 84%
14 eggs in, 2 blastocytes out
probability (exactly 2): 11%
cumulative probability (at least 2): 95%
14 eggs in, 1 blastocytes out
probability (exactly 1): 4%
cumulative probability (at least 1): 99%
14 eggs in, 0 blastocytes out
probability (exactly 0): 1%
cumulative probability (at least 0): 100%
15 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
15 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
15 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
15 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
15 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
15 eggs in, 10 blastocytes out
probability (exactly 10): 0%
cumulative probability (at least 10): 0%
15 eggs in, 9 blastocytes out
probability (exactly 9): 1%
cumulative probability (at least 9): 2%
15 eggs in, 8 blastocytes out
probability (exactly 8): 3%
cumulative probability (at least 8): 5%
15 eggs in, 7 blastocytes out
probability (exactly 7): 8%
cumulative probability (at least 7): 13%
15 eggs in, 6 blastocytes out
probability (exactly 6): 15%
cumulative probability (at least 6): 28%
15 eggs in, 5 blastocytes out
probability (exactly 5): 21%
cumulative probability (at least 5): 48%
15 eggs in, 4 blastocytes out
probability (exactly 4): 22%
cumulative probability (at least 4): 70%
15 eggs in, 3 blastocytes out
probability (exactly 3): 17%
cumulative probability (at least 3): 87%
15 eggs in, 2 blastocytes out
probability (exactly 2): 9%
cumulative probability (at least 2): 96%
15 eggs in, 1 blastocytes out
probability (exactly 1): 3%
cumulative probability (at least 1): 100%
15 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
16 eggs in, 16 blastocytes out
probability (exactly 16): 0%
cumulative probability (at least 16): 0%
16 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
16 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
16 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
16 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
16 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
16 eggs in, 10 blastocytes out
probability (exactly 10): 1%
cumulative probability (at least 10): 1%
16 eggs in, 9 blastocytes out
probability (exactly 9): 2%
cumulative probability (at least 9): 3%
16 eggs in, 8 blastocytes out
probability (exactly 8): 5%
cumulative probability (at least 8): 7%
16 eggs in, 7 blastocytes out
probability (exactly 7): 10%
cumulative probability (at least 7): 18%
16 eggs in, 6 blastocytes out
probability (exactly 6): 16%
cumulative probability (at least 6): 34%
16 eggs in, 5 blastocytes out
probability (exactly 5): 21%
cumulative probability (at least 5): 55%
16 eggs in, 4 blastocytes out
probability (exactly 4): 20%
cumulative probability (at least 4): 75%
16 eggs in, 3 blastocytes out
probability (exactly 3): 15%
cumulative probability (at least 3): 90%
16 eggs in, 2 blastocytes out
probability (exactly 2): 7%
cumulative probability (at least 2): 97%
16 eggs in, 1 blastocytes out
probability (exactly 1): 2%
cumulative probability (at least 1): 100%
16 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
17 eggs in, 17 blastocytes out
probability (exactly 17): 0%
cumulative probability (at least 17): 0%
17 eggs in, 16 blastocytes out
probability (exactly 16): 0%
cumulative probability (at least 16): 0%
17 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
17 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
17 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
17 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
17 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 0%
17 eggs in, 10 blastocytes out
probability (exactly 10): 1%
cumulative probability (at least 10): 1%
17 eggs in, 9 blastocytes out
probability (exactly 9): 3%
cumulative probability (at least 9): 4%
17 eggs in, 8 blastocytes out
probability (exactly 8): 6%
cumulative probability (at least 8): 10%
17 eggs in, 7 blastocytes out
probability (exactly 7): 12%
cumulative probability (at least 7): 22%
17 eggs in, 6 blastocytes out
probability (exactly 6): 18%
cumulative probability (at least 6): 40%
17 eggs in, 5 blastocytes out
probability (exactly 5): 21%
cumulative probability (at least 5): 61%
17 eggs in, 4 blastocytes out
probability (exactly 4): 19%
cumulative probability (at least 4): 80%
17 eggs in, 3 blastocytes out
probability (exactly 3): 12%
cumulative probability (at least 3): 92%
17 eggs in, 2 blastocytes out
probability (exactly 2): 6%
cumulative probability (at least 2): 98%
17 eggs in, 1 blastocytes out
probability (exactly 1): 2%
cumulative probability (at least 1): 100%
17 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
18 eggs in, 18 blastocytes out
probability (exactly 18): 0%
cumulative probability (at least 18): 0%
18 eggs in, 17 blastocytes out
probability (exactly 17): 0%
cumulative probability (at least 17): 0%
18 eggs in, 16 blastocytes out
probability (exactly 16): 0%
cumulative probability (at least 16): 0%
18 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
18 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
18 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
18 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
18 eggs in, 11 blastocytes out
probability (exactly 11): 0%
cumulative probability (at least 11): 1%
18 eggs in, 10 blastocytes out
probability (exactly 10): 1%
cumulative probability (at least 10): 2%
18 eggs in, 9 blastocytes out
probability (exactly 9): 4%
cumulative probability (at least 9): 6%
18 eggs in, 8 blastocytes out
probability (exactly 8): 8%
cumulative probability (at least 8): 14%
18 eggs in, 7 blastocytes out
probability (exactly 7): 14%
cumulative probability (at least 7): 28%
18 eggs in, 6 blastocytes out
probability (exactly 6): 19%
cumulative probability (at least 6): 47%
18 eggs in, 5 blastocytes out
probability (exactly 5): 20%
cumulative probability (at least 5): 67%
18 eggs in, 4 blastocytes out
probability (exactly 4): 17%
cumulative probability (at least 4): 84%
18 eggs in, 3 blastocytes out
probability (exactly 3): 10%
cumulative probability (at least 3): 94%
18 eggs in, 2 blastocytes out
probability (exactly 2): 5%
cumulative probability (at least 2): 99%
18 eggs in, 1 blastocytes out
probability (exactly 1): 1%
cumulative probability (at least 1): 100%
18 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
19 eggs in, 19 blastocytes out
probability (exactly 19): 0%
cumulative probability (at least 19): 0%
19 eggs in, 18 blastocytes out
probability (exactly 18): 0%
cumulative probability (at least 18): 0%
19 eggs in, 17 blastocytes out
probability (exactly 17): 0%
cumulative probability (at least 17): 0%
19 eggs in, 16 blastocytes out
probability (exactly 16): 0%
cumulative probability (at least 16): 0%
19 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
19 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
19 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
19 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 0%
19 eggs in, 11 blastocytes out
probability (exactly 11): 1%
cumulative probability (at least 11): 1%
19 eggs in, 10 blastocytes out
probability (exactly 10): 2%
cumulative probability (at least 10): 3%
19 eggs in, 9 blastocytes out
probability (exactly 9): 5%
cumulative probability (at least 9): 8%
19 eggs in, 8 blastocytes out
probability (exactly 8): 10%
cumulative probability (at least 8): 18%
19 eggs in, 7 blastocytes out
probability (exactly 7): 15%
cumulative probability (at least 7): 33%
19 eggs in, 6 blastocytes out
probability (exactly 6): 19%
cumulative probability (at least 6): 53%
19 eggs in, 5 blastocytes out
probability (exactly 5): 19%
cumulative probability (at least 5): 72%
19 eggs in, 4 blastocytes out
probability (exactly 4): 15%
cumulative probability (at least 4): 87%
19 eggs in, 3 blastocytes out
probability (exactly 3): 9%
cumulative probability (at least 3): 95%
19 eggs in, 2 blastocytes out
probability (exactly 2): 4%
cumulative probability (at least 2): 99%
19 eggs in, 1 blastocytes out
probability (exactly 1): 1%
cumulative probability (at least 1): 100%
19 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
20 eggs in, 20 blastocytes out
probability (exactly 20): 0%
cumulative probability (at least 20): 0%
20 eggs in, 19 blastocytes out
probability (exactly 19): 0%
cumulative probability (at least 19): 0%
20 eggs in, 18 blastocytes out
probability (exactly 18): 0%
cumulative probability (at least 18): 0%
20 eggs in, 17 blastocytes out
probability (exactly 17): 0%
cumulative probability (at least 17): 0%
20 eggs in, 16 blastocytes out
probability (exactly 16): 0%
cumulative probability (at least 16): 0%
20 eggs in, 15 blastocytes out
probability (exactly 15): 0%
cumulative probability (at least 15): 0%
20 eggs in, 14 blastocytes out
probability (exactly 14): 0%
cumulative probability (at least 14): 0%
20 eggs in, 13 blastocytes out
probability (exactly 13): 0%
cumulative probability (at least 13): 0%
20 eggs in, 12 blastocytes out
probability (exactly 12): 0%
cumulative probability (at least 12): 1%
20 eggs in, 11 blastocytes out
probability (exactly 11): 1%
cumulative probability (at least 11): 2%
20 eggs in, 10 blastocytes out
probability (exactly 10): 3%
cumulative probability (at least 10): 5%
20 eggs in, 9 blastocytes out
probability (exactly 9): 7%
cumulative probability (at least 9): 11%
20 eggs in, 8 blastocytes out
probability (exactly 8): 11%
cumulative probability (at least 8): 23%
20 eggs in, 7 blastocytes out
probability (exactly 7): 16%
cumulative probability (at least 7): 39%
20 eggs in, 6 blastocytes out
probability (exactly 6): 19%
cumulative probability (at least 6): 58%
20 eggs in, 5 blastocytes out
probability (exactly 5): 18%
cumulative probability (at least 5): 76%
20 eggs in, 4 blastocytes out
probability (exactly 4): 13%
cumulative probability (at least 4): 89%
20 eggs in, 3 blastocytes out
probability (exactly 3): 7%
cumulative probability (at least 3): 96%
20 eggs in, 2 blastocytes out
probability (exactly 2): 3%
cumulative probability (at least 2): 99%
20 eggs in, 1 blastocytes out
probability (exactly 1): 1%
cumulative probability (at least 1): 100%
20 eggs in, 0 blastocytes out
probability (exactly 0): 0%
cumulative probability (at least 0): 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.