codestates / codestates/ds-TIL

[TIL] 윤형준_200915

Open
#245 0 comments 1 reaction 0 assignees View on GitHub
DSFT01
Dominant language
No language data
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

오늘 배우것: Chisquare Test

Chisquare testing이 무얼 하는 것인가? 이것은 Categorical value에 대해 쓰는 것이다.

일단 1 sample test 와 2 samples test, 이렇게 두가지가 있다. 둘은 다른용도로 쓰이고 있다.

첫째, 1 sample test는 한 표본으로 하는 test이다. 이것은 무엇을 하는 것이냐 하면, 우리가 예상하는 frequency와 실제 frequency가 일치하는가 라는 것을 testing하는 것이다.

둘째, 2 sample tests는 두가지 다른 모집단에서 각각 표본을 도출하여, 두 모집단은 상관관계가 있느냐를 testing 하는 것이다.

1 sample test는 파이썬에서 이렇게 사용된다.

```py
from scipy.stats import chisquare

# chisquare() 라는 function안에 array_like_value를 넣어서 계산합니다.
chisquare()
```

2 sample test는 파이썬에서 이렇게 사용된다.

```py
from scipy.stats import chi2_contingency

# chi2_contingency() 라는 function안에 array_like_value를 넣어서 계산합니다.
chi2_contingency()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.