diagnostics function

Diagnostics on hypothesis testing