04 Hypothesis test for difference in proportions#

import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import matplotlib.pyplot as plt
import seaborn as sns
from scipy import stats, special

khanacademy

Hypothesis test for difference in proportions fig 1

\[\begin{split}\begin{array}{lll} H_0:\ p=p_0,&&H_1:\ p\neq p_0\\ H_0:\ p=p_0,&&H_1:\ p> p_0\\ H_0:\ p=p_0,&&H_1:\ p< p_0\\ \end{array}\end{split}\]
\[\]
\[\begin{split}\begin{array}{lll} H_0:\ p_1=p_2,&&H_1:\ p_1\neq p_2\\ H_0:\ p_1=p_2,&&H_1:\ p_1> p_2\\ H_0:\ p_1=p_2,&&H_1:\ p_1< p_2\\ \end{array}\end{split}\]