Created
October 13, 2019 12:35
-
-
Save MariaLavrovskaya/c8e9587b083fe6b1c97dda5dc2f2a014 to your computer and use it in GitHub Desktop.
airbnb_12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f_obs = np.array([contingency_table.iloc[0][0:4].values, | |
contingency_table.iloc[1][0:4].values, | |
contingency_table.iloc[2][0:4].values, | |
contingency_table.iloc[3][0:4].values, | |
contingency_table.iloc[4][0:4].values]) | |
from scipy import stats | |
stats.chi2_contingency(f_obs)[0:3] | |
###В связи с этим, мы отрицаем нулевую гипотезу и принимаем альтернативную гипотезу, которая утверждает, что | |
###существует непосредственная взаимосвязь между расположением и типом сдаваемой недвижимости на сайте AIRBNB. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment