Live numbers
1. Haplodiploidy: who is whose relative
Unfertilised eggs become drones (haploid, one set of genes, no father); fertilised eggs become workers or queens (diploid). A drone’s sperm are all copies of the same genes, so daughters of one father are supersisters.
r(workers) = 1/4 + M/2
M = sum_ij p_i p_j rho_ij rho_ii = 1, rho_ij = 1/2 for brother fathers, else 0
one father: r = 3/4 many unrelated fathers: r -> 1/4
p_i are the fathers’ shares of the sperm. Effective number of mates k_e = 1 / sum p_i^2. Gene-dropping through the pedigree (checked below) reproduces the formula.
2. The congregation area as a gas of flyers
contact rate lambda = rho * pi * a^2 * <v_rel>
<v_rel> = ((u+v)^3 - |u-v|^3) / (6 u v) (isotropic headings)
matings ~ Poisson(mu), mu = lambda * t_loiter, at most 20
t_loiter = T_flight - 2 (distance / v_queen + altitude / v_climb)
rho is drones per m3, a an effective capture radius (a fitted stand-in for the pheromone chase, not a measured number), u = 7 m/s drone and v = 6 m/s queen speed (typical). Time-lapse only speeds up the animation.
3. The sex locus
Sex is set by the csd gene. An egg that is homozygous becomes a diploid male, which workers eat. With n equally common alleles the lost share of fertilised eggs is 1/n (≈ 8 % for n = 12, 17 % for n = 6 on a small island).
4. The year
dN/dt = (Nmax/12) s(F) (1 - N/Nmax) - (1/25 + h) N
h = 0.10 /day when forage F < 0.30 after the summer peak, else 0
F is an illustrative nectar-flow curve (late March to late September). Drones are reared while it is high and evicted when it falls: the autumn “drone clear-out”.
Honest simplifications
Real congregation areas hold thousands of drones from many colonies; the density here is a slice of such a cloud, with flyers re-entering on the far side. Real queens mate on one to several flights over days, sperm mixing is uneven (modelled with a Dirichlet evenness slider) and capture involves a pheromone plume and a drone “comet”. The rate constants marked typical in the code are textbook ranges, not measurements of one colony. A mated drone dies; that is part of normal bee biology.
Independent numerical checks