Joint pdfs and Double integrals