TEST FOR DIFFERENCES OF TWO PROPORTIONS GOT FROM TWO DIFFERENT POPULATIONS

Using Python:

Calculate sample proportions and combined proportion

Calculate SE of combined proportion and z calculated value

Calculate Z-critical value and p-value

Plot the curve:

  • Since the abs(z-statistic) > z critical value and p value < 0.05
  • Reject Null hypothesis and conclude that proportions are not equal.  They are statistically different

Recommendation: