Inference of adaptive evolution under fluctuating selection. (a) Statistical evidence for adaptation, as given by the likelihood score difference per locus, Δs, between the input model and the best equilibrium (κ = 0) model as a function of the input selection parameters σ and κ (input μ and t as in the Drosophila data sets below). Contours from bottom to top: 0 (thick line), 5 × 10−4, 5 × 10−3, 0.01, 0.015 (thin lines). (b) Analogous score difference ΔsMK/L based on the McDonald–Kreitman test. Contours as in a, no-inference region (ΔSMK = 0) marked by stripes. (c) Fraction of adaptive changes α̃(σ, κ) as given by Eq. 17, which is correctly reconstructed by the full maximum-likelihood procedure for a sufficiently large number of loci. Contours from bottom to top: 0 (thick line), 0.1, 0.3, 0.7, 0.9 (thin lines). (d) Estimated fraction α̃MK (9) using the McDonald–Kreitman test, which leads to a systematic underestimation. Contours as in c, no-inference region (α̃MK = 0) marked by stripes.