Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Choosing the Criterion | Performing One More AB Test
A/B Testing in Python

book
Choosing the Criterion

The preprocessed file is already put in the code editor!

As we did with the first A/B test, we will do it now. We need to:

  • Look at the distribution of the data;

  • Choosing the table below decide what criterion to select for the work.

Завдання

Swipe to start coding

  1. Import the seaborn with the sns alias.
  2. Import the scipy.
  3. Import the statsmodels.api with the sm alias.
  4. Build the distplot using the sns library and the 'contact_views_number' column.
  5. Build the qqplot using the sm library and the 'contact_views_number' column.
  6. Perform the normaltest with the 'contact_views_number' column.

Рішення

# Importing the pandas
import pandas as pd
# Import the seaborn
import seaborn as sns
# Import the scipy
import scipy
# Import the statsmodels.api
import statsmodels.api as sm

# Reading the file
df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/1e089012-bfcf-4d61-9ac9-bb649ece39f2/abtest_with_changes.csv')

# Build the distplot
sns.distplot(df.contact_views_number)
# Build the qqplot
sm.qqplot(df.contact_views_number, line = 's')

# Perform the normaltest
print(scipy.stats.normaltest(df.contact_views_number))

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 4
# Importing the pandas
import pandas as pd
# Import the seaborn
import ___ as sns
# Import the scipy
import ___
# Import the statsmodels.api
import ___.api as ___

# Reading the file
df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/1e089012-bfcf-4d61-9ac9-bb649ece39f2/abtest_with_changes.csv')

# Build the distplot
sns.___(df.___)
# Build the qqplot
sm.___(___.___, line = 's')

# Perform the normaltest
print(scipy.stats.___(df.___))

Запитати АІ

expand
ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt