Follow the below steps to calculate the most significant sample space

- Select the Confidence interval from the drop-down menu
- Enter the sample size
- Enter the number of possible results
- Enter the conversion rate
- Hit the “
**Calculate**” button to check whether it is statistically significant or not. - Click on the “
**Show Steps**” button to see the step-by-step solution - Click on the “
**reset**” button to erase all inputs.

**Give Feedback**
What do you think of ab test calculator?

Worst

Poor

Average

Good

Excellent

The AB test Calculator calculates the statistical significance of two sample spaces to find out whether the samples are statistically significant or not.

Statistical significance test in which two populations are related to checking if they differ significantly on a characteristic. it is basically a kind of Z-test. The objective of the AB test is to show that two proportions are not the same.

A Z-score expresses a value's relationship to a group of values from the same distribution. The Z-score is calculated in the number of standard deviations from the group's mean. A higher Z-score means the value is more away from the distribution's mean.

- Determine their sample sizes (n
_{1}and n_{2}) - Determine the number of positive results in each group (t
_{1 }and t_{2}) - Calculate the population's proportions using the formulas

** p _{1} = t_{1 }/ n_{1}** and

- Calculate the overall sample proportion

** p = t _{1 }+ t_{2} / n_{1 }+ n_{2}**

- Calculate the Z-score

- Compare the absolute values of the results. If the absolute value of the Z-score is greater than or equal to the absolute value of the alpha level’s Z-score then the samples are statistically significant.

In this section, we have given the step-by-step calculation of the AB test.

**Example 1: **

Compare the following groups and find out whether these are statistically significant or not,

if the confidence interval is 90%

**Group 1 **

Sample size = 40

No. of positive results = 2

Conversion rate = 5%

**Group 2**

Sample size = 12

No. of positive results = 5

Conversion rate = 41.7%

**Solution:**

**Step 1:** Extract the data

Sample size = n_{1} = 40

No. of positive results = t_{1} = 2

The conversion rate in percentage (%) = 5

**Group 2**

Sample size = n_{2} =12

No. of positive results = t_{2 }= 5

The conversion rate in percentage (%) = 41.7

**Step 2:** Apply the formula

**p _{1} = t_{1} / n_{1}**

p_{1} = 2 / 40

p_{1} = 0.05

**p _{2 }= t_{2 }/ n_{2}**

p_{2 }= 5 / 12

p_{2 }= 0.417

**Step 3:** Calculate “p”

p = t_{1}+t_{2} / n_{1}+n_{2}

p= 2+5 / 40 + 12

p = 0.135

**Step 4:** Calculate the Z-score

Z-score = p_{1 }- p_{2 }/ √{p * (1 - p) * (1/n_{1} + 1/n_{2})}

Z-score = 0.05 - 0.417 / √{0.135 * (1 – 0.135) * (1 / 40 + 1 / 12)}

Z-score = -3.263

Alpha level’s z-score = 1.645

**Step 5:** Comparison

For the comparison, compare the absolute value of both the Z-score and Alpha level’s Z-score.

The absolute value of Z-score = 3.263

Absolute value Alpha level’s z-score = 1.645

As the absolute value of “Z-score” is greater than the absolute value of “Alpha level’s z-score” the samples are **“statistically significant”**.

*A/B testing statistics: An intuitive guide for non-mathematicians *| Conversion Sciences.

*A/B testing - A complete guide to statistical testing.* | Towards Data Science.