Skip to content

Commit

Permalink
Giathuyet1code2
Browse files Browse the repository at this point in the history
  • Loading branch information
vietchung committed Jan 6, 2025
1 parent 8ad8020 commit fb3f45d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DATA_SCIENCE/Machine learning/Giả thuyết không 1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Tính tỷ lệ sống sót theo giới tính.
Thực hiện kiểm định Chi-square:

Sử dụng kiểm định Chi-square để kiểm tra mối quan hệ giữa giới tính và khả năng sống sót.
Công thức:
```
# Đây là mã lệnh trong Python

```python
from scipy.stats import chi2_contingency

crosstab = pd.crosstab(df['Sex'], df['Survived'])
Expand Down

0 comments on commit fb3f45d

Please sign in to comment.