Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions solution.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import pandas as pd
import numpy as np
from statsmodels.stats.proportion import proportions_ztest


chat_id = 123456 # Ваш chat ID, не меняйте название переменной
chat_id = 402739329 # Ваш chat ID, не меняйте название переменной

def solution(x_success: int,
x_cnt: int,
y_success: int,
y_cnt: int) -> bool:
# Измените код этой функции
# Это будет вашим решением
# Не меняйте название функции и её аргументы
return ... # Ваш ответ, True или False
alpha = 0.06
count = np.array([x_success, y_success])
nobs = np.array([x_cnt, y_cnt])
p_val = proportions_ztest(count, nobs, alternative='larger')[1]
return True if p_val <= alpha else False