Genentech Interview Question

What is chi-square test used for? What does P-value means? Explain type 1 and type 2 error