Tools for statistical inference