LoslegenKostenlos loslegen

Chi-square test for independence

When it comes to examining statistical dependence on categorical variables without relying on parametric assumptions, chi-square test for independence is a great fit. Examine the signup rate metric's dependence on the landing pages of the homepage dataset by looking at groups A and B only.

The homepage dataset is loaded for you along with the necessary imports.

Diese Übung ist Teil des Kurses

A/B Testing in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

from scipy import stats

# Calculate the number of users in groups A and B
n_A = homepage[homepage['____'] == '____']['____'].____()
n_B = homepage[homepage['____'] == '____']['____'].____()
Code bearbeiten und ausführen