What you describe sounds like a SMC-ABC type of problem, but in your case you already have the simulated parameters and a column indicating whether it is a perfect match? In that case, you can plot the histogram of the parameter when the corresponding metrics is equal 0 (or smaller than eps a small positive value), and that would be your posterior distribution of free parameters.
1 Like