diff --git a/solution.py b/solution.py index 5e3df1e..544920d 100644 --- a/solution.py +++ b/solution.py @@ -1,14 +1,18 @@ import pandas as pd import numpy as np +from statsmodels.stats.proportion import proportions_ztest +from scipy. special import logsumexp -chat_id = 123456 # Ваш chat ID, не меняйте название переменной +chat_id = 919511341 -def solution(x_success: int, - x_cnt: int, - y_success: int, +def solution(x_success: int, + x_cnt: int, + y_success: int, y_cnt: int) -> bool: - # Измените код этой функции - # Это будет вашим решением - # Не меняйте название функции и её аргументы - return ... # Ваш ответ, True или False + tmp = ((x_success+y_success) * y_cnt)/(x_cnt+y_cnt) + sqr = (y_success - tmp)**2/tmp + if sqr < 6.63: + return False + else: + return True